From ebdd53234367707aed40ae4f65e7623cf6e165d9 Mon Sep 17 00:00:00 2001 From: CCTV-1 Date: Fri, 7 Feb 2020 12:27:57 +0800 Subject: [PATCH] translate group --- .../main/java/forge/itemmanager/GroupDef.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/forge-gui/src/main/java/forge/itemmanager/GroupDef.java b/forge-gui/src/main/java/forge/itemmanager/GroupDef.java index 2fc2578911e..9e0808c2f45 100644 --- a/forge-gui/src/main/java/forge/itemmanager/GroupDef.java +++ b/forge-gui/src/main/java/forge/itemmanager/GroupDef.java @@ -15,9 +15,10 @@ import forge.deck.DeckProxy; import forge.item.InventoryItem; import forge.item.PaperCard; import forge.model.FModel; +import forge.util.Localizer; public enum GroupDef { - COLOR("Color", getColorGroups(), + COLOR("lblColor", getColorGroups(), new Function() { @Override public ColumnDef apply(final Integer groupIndex) { @@ -36,7 +37,7 @@ public enum GroupDef { return -1; } }), - COLOR_IDENTITY("Color Identity", getColorGroups(), + COLOR_IDENTITY("lblColorIdentity", getColorGroups(), new Function() { @Override public ColumnDef apply(final Integer groupIndex) { @@ -55,7 +56,7 @@ public enum GroupDef { return -1; } }), - SET("Set", getSetGroups(), + SET("lblSet", getSetGroups(), new Function() { @Override public ColumnDef apply(final Integer groupIndex) { @@ -74,7 +75,7 @@ public enum GroupDef { return -1; } }), - DEFAULT("Default", + DEFAULT("lblDefault", new String[] { "Creatures", "Spells", "Lands" }, new Function() { @Override @@ -104,7 +105,7 @@ public enum GroupDef { } }), - CARD_TYPE("Type", + CARD_TYPE("lblType", new String[] { "Planeswalker", "Creature", "Sorcery", "Instant", "Artifact", "Enchantment", "Land", "Tribal instant" }, new Function() { @Override @@ -148,7 +149,7 @@ public enum GroupDef { return -1; } }), - PW_DECK_SORT("Planeswalker Deck Sort", + PW_DECK_SORT("lblPlaneswalkerDeckSort", new String[] { "Planeswalker", "Rares", "Creature", "Land", "Other Spells" }, new Function() { @Override @@ -178,7 +179,7 @@ public enum GroupDef { return -1; } }), - CARD_RARITY("Rarity", + CARD_RARITY("lblRarity", new String[] { "Mythic Rares", "Rares", "Uncommons", "Commons", "Basic Lands" }, new Function() { @Override @@ -210,7 +211,7 @@ public enum GroupDef { }); GroupDef(String name0, String[] groups0, Function fnGetPileByOverride0, Function fnGroupItem0) { - this.name = name0; + this.name = Localizer.getInstance().getMessage(name0); this.groups = groups0; this.fnGetPileByOverride = fnGetPileByOverride0; this.fnGroupItem = fnGroupItem0;