updating res files

This commit is contained in:
churrufli
2019-04-10 00:44:52 +02:00
parent da4f1ade9d
commit fdf3d3588e
5 changed files with 183 additions and 53 deletions

View File

@@ -8,6 +8,7 @@ import forge.interfaces.IButton;
import forge.quest.IVQuestStats;
import forge.screens.home.*;
import forge.toolbox.*;
import forge.util.Localizer;
import net.miginfocom.swing.MigLayout;
import javax.swing.*;
@@ -21,10 +22,11 @@ import java.awt.*;
public enum VSubmenuDuels implements IVSubmenu<CSubmenuDuels>, IVQuestStats {
SINGLETON_INSTANCE;
final Localizer localizer = Localizer.getInstance();
// Fields used with interface IVDoc
private DragCell parentCell;
private final DragTab tab = new DragTab("Quest Duels");
private final DragTab tab = new DragTab(localizer.getMessage("lblQuestDuels"));
// Other fields
private final JPanel pnlStats = new JPanel();
@@ -35,8 +37,8 @@ public enum VSubmenuDuels implements IVSubmenu<CSubmenuDuels>, IVQuestStats {
private final StartButton btnStart = new StartButton();
private final FComboBoxWrapper<String> cbxPet = new FComboBoxWrapper<>();
private final FComboBoxWrapper<String> cbxMatchLength = new FComboBoxWrapper<>();
private final FCheckBox cbPlant = new FCheckBox("Summon Plant");
private final FLabel lblZep = new FLabel.Builder().text("Launch Zeppelin").fontSize(14).build();
private final FCheckBox cbPlant = new FCheckBox(localizer.getMessage("cbSummonPlant"));
private final FLabel lblZep = new FLabel.Builder().text(localizer.getMessage("cbLaunchZeppelin")).fontSize(14).build();
private final FLabel lblWorld = new FLabel.Builder()
.icon(FSkin.getIcon(FSkinProp.ICO_QUEST_MAP))
@@ -56,24 +58,24 @@ public enum VSubmenuDuels implements IVSubmenu<CSubmenuDuels>, IVQuestStats {
private final FLabel lblWinStreak = new FLabel.Builder()
.icon(FSkin.getIcon(FSkinProp.ICO_QUEST_PLUSPLUS))
.fontSize(15).build();
private final LblHeader lblTitle = new LblHeader("Quest Mode: Duels");
private final LblHeader lblTitle = new LblHeader(localizer.getMessage("lblQuestModeDuels"));
private final FLabel lblInfo = new FLabel.Builder().text("Select your next duel.")
private final FLabel lblInfo = new FLabel.Builder().text(localizer.getMessage("lblSelectNextDuel"))
.fontStyle(Font.BOLD).fontSize(16)
.fontAlign(SwingConstants.LEFT).build();
private final FLabel lblCurrentDeck = new FLabel.Builder()
.text("Current deck hasn't been set yet.")
.text(localizer.getMessage("lblNoDuelDeck"))
.fontSize(12).build();
private final FLabel lblNextChallengeInWins = new FLabel.Builder()
.text("Next challenge in wins hasn't been set yet.")
.text(localizer.getMessage("lblNextChallengeNotYet"))
.fontSize(12).build();
private final FLabel btnUnlock = new FLabel.ButtonBuilder().text("Unlock Sets").fontSize(16).build();
private final FLabel btnTravel = new FLabel.ButtonBuilder().text("Travel").fontSize(16).build();
private final FLabel btnBazaar = new FLabel.ButtonBuilder().text("Bazaar").fontSize(16).build();
private final FLabel btnSpellShop = new FLabel.ButtonBuilder().text("Spell Shop").fontSize(16).build();
private final FLabel btnUnlock = new FLabel.ButtonBuilder().text(localizer.getMessage("btnUnlockSets")).fontSize(16).build();
private final FLabel btnTravel = new FLabel.ButtonBuilder().text(localizer.getMessage("btnTravel")).fontSize(16).build();
private final FLabel btnBazaar = new FLabel.ButtonBuilder().text(localizer.getMessage("btnBazaar")).fontSize(16).build();
private final FLabel btnSpellShop = new FLabel.ButtonBuilder().text(localizer.getMessage("btnSpellShop")).fontSize(16).build();
VSubmenuDuels() {

View File

@@ -17,6 +17,7 @@ import forge.screens.home.EMenuGroup;
import forge.screens.home.IVSubmenu;
import forge.screens.home.VHomeUI;
import forge.toolbox.*;
import forge.util.Localizer;
import forge.util.storage.IStorage;
import net.miginfocom.swing.MigLayout;
import org.apache.commons.lang3.text.WordUtils;
@@ -36,79 +37,77 @@ import java.util.Map;
*/
public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
SINGLETON_INSTANCE;
final Localizer localizer = Localizer.getInstance();
// Fields used with interface IVDoc
private DragCell parentCell;
private final DragTab tab = new DragTab("Quest Data");
private final DragTab tab = new DragTab(localizer.getMessage("lblQuestData"));
private final FLabel lblTitle = new FLabel.Builder()
.text("Load Quest Data").fontAlign(SwingConstants.CENTER)
.opaque(true).fontSize(16).build();
private final FLabel lblTitleNew = new FLabel.Builder().text("Start a new Quest")
.opaque(true).fontSize(16).build();
private final FLabel lblOldQuests = new FLabel.Builder().text("Old quest data? Put into \""
+ ForgeConstants.QUEST_SAVE_DIR.replace('\\', '/') + "\" and restart Forge.")
.fontAlign(SwingConstants.CENTER).fontSize(12).build();
private final FLabel lblTitleNew = new FLabel.Builder().text(localizer.getMessage("lblStartanewQuest")).opaque(true).fontSize(16).build();
String str=new String( ForgeConstants.QUEST_SAVE_DIR.replace('\\', '/'));
private final FLabel lblOldQuests = new FLabel.Builder().text(localizer.getMessage("lblOldQuestData").replace("%n",str)).fontAlign(SwingConstants.CENTER).fontSize(12).build();
private final QuestFileLister lstQuests = new QuestFileLister();
private final FScrollPane scrQuests = new FScrollPane(lstQuests, false);
private final JPanel pnlOptions = new JPanel();
/* First column */
private final FRadioButton radEasy = new FRadioButton("Easy");
private final FRadioButton radMedium = new FRadioButton("Medium");
private final FRadioButton radHard = new FRadioButton("Hard");
private final FRadioButton radExpert = new FRadioButton("Expert");
private final FCheckBox boxFantasy = new FCheckBox("Fantasy Mode");
private final FCheckBox boxCommander = new FCheckBox("Commander Subformat");
private final FRadioButton radEasy = new FRadioButton(localizer.getMessage("rbEasy"));
private final FRadioButton radMedium = new FRadioButton(localizer.getMessage("rbMedium"));
private final FRadioButton radHard = new FRadioButton(localizer.getMessage("rbHard"));
private final FRadioButton radExpert = new FRadioButton(localizer.getMessage("rbExpert"));
private final FCheckBox boxFantasy = new FCheckBox(localizer.getMessage("rbFantasyMode"));
private final FCheckBox boxCommander = new FCheckBox(localizer.getMessage("rbCommanderSubformat"));
private final FLabel lblStartingWorld = new FLabel.Builder().text("Starting world:").build();
private final FLabel lblStartingWorld = new FLabel.Builder().text(localizer.getMessage("lblStartingWorld") + ":").build();
private final FComboBoxWrapper<QuestWorld> cbxStartingWorld = new FComboBoxWrapper<>();
/* Second column */
private final FLabel lblStartingPool = new FLabel.Builder().text("Starting pool:").build();
private final FLabel lblStartingPool = new FLabel.Builder().text(localizer.getMessage("lblStartingPool") + ":").build();
private final FComboBoxWrapper<StartingPoolType> cbxStartingPool = new FComboBoxWrapper<>();
private final FLabel lblUnrestricted = new FLabel.Builder().text("All cards will be available to play.").build();
private final FLabel lblUnrestricted = new FLabel.Builder().text(localizer.getMessage("lblAllCardsAvailable")).build();
private final FLabel lblPreconDeck = new FLabel.Builder().text("Starter/Event deck:").build();
private final FLabel lblPreconDeck = new FLabel.Builder().text(localizer.getMessage("lblStarterEventdeck")).build();
private final FComboBoxWrapper<String> cbxPreconDeck = new FComboBoxWrapper<>();
private final FLabel lblFormat = new FLabel.Builder().text("Sanctioned format:").build();
private final FLabel lblFormat = new FLabel.Builder().text(localizer.getMessage("lblSanctionedformat")).build();
private final FComboBoxWrapper<GameFormat> cbxFormat = new FComboBoxWrapper<>();
private final FLabel lblCustomDeck = new FLabel.Builder().text("Custom deck:").build();
private final FLabel lblCustomDeck = new FLabel.Builder().text(localizer.getMessage("lblCustomdeck")).build();
private final FComboBoxWrapper<Deck> cbxCustomDeck = new FComboBoxWrapper<>();
private final FLabel btnDefineCustomFormat = new FLabel.Builder().opaque(true).hoverable(true).text("Define custom format").build();
private final FLabel btnSelectFormat = new FLabel.Builder().opaque(true).hoverable(true).text("Select format").build();
private final FLabel btnDefineCustomFormat = new FLabel.Builder().opaque(true).hoverable(true).text(localizer.getMessage("lblDefineCustomFormat")).build();
private final FLabel btnSelectFormat = new FLabel.Builder().opaque(true).hoverable(true).text(localizer.getMessage("lblSelectFormat")).build();
private final FCheckBox boxCompleteSet = new FCheckBox("Start with all cards in selected sets");
private final FCheckBox boxAllowDuplicates = new FCheckBox("Allow duplicate cards");
private final FCheckBox boxCompleteSet = new FCheckBox(localizer.getMessage("lblStartWithAllCards"));
private final FCheckBox boxAllowDuplicates = new FCheckBox(localizer.getMessage("lblAllowDuplicateCards"));
private final FLabel lblPreferredColor = new FLabel.Builder().text("Starting pool distribution:").build();
private final FLabel btnPreferredColors = new FLabel.Builder().opaque(true).hoverable(true).text("Choose Distribution").build();
private final FLabel lblPreferredColor = new FLabel.Builder().text(localizer.getMessage("lblStartingPoolDistribution")).build();
private final FLabel btnPreferredColors = new FLabel.Builder().opaque(true).hoverable(true).text(localizer.getMessage("lblChooseDistribution")).build();
private final FLabel btnPrizeDefineCustomFormat = new FLabel.Builder().opaque(true).hoverable(true).text("Define custom format").build();
private final FLabel btnPrizeDefineCustomFormat = new FLabel.Builder().opaque(true).hoverable(true).text(localizer.getMessage("lblDefineCustomFormat")).build();
private final FLabel btnPrizeSelectFormat = new FLabel.Builder().opaque(true).hoverable(true).text("Select format").build();
private final FLabel btnPrizeSelectFormat = new FLabel.Builder().opaque(true).hoverable(true).text(localizer.getMessage("lblSelectFormat")).build();
private final FLabel lblPrizedCards = new FLabel.Builder().text("Prized cards:").build();
private final FLabel lblPrizedCards = new FLabel.Builder().text(localizer.getMessage("lblPrizedCards")).build();
private final FComboBoxWrapper<Object> cbxPrizedCards = new FComboBoxWrapper<>();
private final FLabel lblPrizeFormat = new FLabel.Builder().text("Sanctioned format:").build();
private final FLabel lblPrizeFormat = new FLabel.Builder().text(localizer.getMessage("lblSanctionedformat")).build();
private final FComboBoxWrapper<GameFormat> cbxPrizeFormat = new FComboBoxWrapper<>();
private final FLabel lblPrizeUnrestricted = new FLabel.Builder().text("All cards will be available to win.").build();
private final FLabel lblPrizeSameAsStarting = new FLabel.Builder().text("Only sets in starting pool will be available.").build();
private final FLabel lblPrizeUnrestricted = new FLabel.Builder().text(localizer.getMessage("lblAllCardsAvailableWin")).build();
private final FLabel lblPrizeSameAsStarting = new FLabel.Builder().text(localizer.getMessage("lblOnlySetsInStarting")).build();
private final FCheckBox cboAllowUnlocks = new FCheckBox("Allow unlock of additional editions");
private final FCheckBox cboAllowUnlocks = new FCheckBox(localizer.getMessage("lblAllowUnlockAdEd"));
private final FLabel btnEmbark = new FLabel.Builder().opaque(true)
.fontSize(16).hoverable(true).text("Embark!").build();
.fontSize(16).hoverable(true).text(localizer.getMessage("lblEmbark")).build();
/* Listeners */
private final ActionListener alStartingPool = new ActionListener() {
@@ -203,8 +202,8 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
difficultyPanel.add(radExpert, difficulty_constraints);
radEasy.setSelected(true);
boxCompleteSet.setToolTipText("You will start the quest with 4 of each card in the sets you have selected.");
boxAllowDuplicates.setToolTipText("When your starting pool is generated, duplicates of cards may be included.");
boxCompleteSet.setToolTipText(localizer.getMessage("lblboxCompleteSet"));
boxAllowDuplicates.setToolTipText(localizer.getMessage("lblboxAllowDuplicates"));
cbxStartingPool.addItem(StartingPoolType.Complete);
cbxStartingPool.addItem(StartingPoolType.Sanctioned);
@@ -220,7 +219,7 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
alStartingPool.actionPerformed(null);
alPrizesPool.actionPerformed(null);
cbxPrizedCards.addItem("Same as starting pool");
cbxPrizedCards.addItem(localizer.getMessage("lblSameAsStartingPool"));
cbxPrizedCards.addItem(StartingPoolType.Complete);
cbxPrizedCards.addItem(StartingPoolType.Sanctioned);
cbxPrizedCards.addItem(StartingPoolType.Casual);
@@ -395,7 +394,7 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
*/
@Override
public String getMenuTitle() {
return "New / Load Quest";
return localizer.getMessage("lblNewLoadQuest");
}
/* (non-Javadoc)

View File

@@ -353,9 +353,52 @@ lblPlaneswalkerDesc=Each player has a Planeswalker card which can be cast at any
lblPlanechase=Planechase
lblPlanechaseDesc=Plane cards apply global effects. The Plane card changes when a player rolls \"Planeswalk\" on the planar die.
lblArchenemyDesc=One player is the Archenemy and fights the other players by playing Scheme cards.
lblArchenemyRumble=
lblArchenemyRumble=Archenemy Rumble
lblArchenemyRumbleDesc=All players are Archenemies and can play Scheme cards.
lblMomirBasic=Momir Basic
lblMomirBasicDesc=Each player has a deck containing 60 basic lands and the Momir Vig avatar.
lblMoJhoSto=MoJhoSto
lblMoJhoStoDesc=Each player has a deck containing 60 basic lands and the Momir Vig, Jhoira of the Ghitu, and Stonehewer Giant avatars.
#VSubmenuDuels.java
lblQuestDuels=Quest Duels
lblQuestModeDuels=Quest Mode: Duels
lblSelectNextDuel=Select your next duel.
lblNoDuelDeck=Current deck hasn't been set yet.
lblNextChallengeNotYet=Next challenge in wins hasn't been set yet.
btnUnlockSets=Unlock Sets
btnTravel=Travel
btnBazaar=Bazaar
btnSpellShop=Spell Shop
cbSummonPlant=Summon Plant
cbLaunchZeppelin=Launch Zeppelin
#VSubmenuQuest.java
lblQuestData=Quest Data
lblStartanewQuest=Start a new Quest
lblOldQuestData=Old quest data? Put into %n and restart Forge.
rbEasy=Easy
rbMedium=Medium
rbHard=Hard
rbExpert=Expert
rbFantasyMode=Fantasy Mode
rbCommanderSubformat=Commander Subformat
lblStartingWorld=Starting World
lblStartingPool=Starting Pool
lblAllCardsAvailable=All cards will be available to play.
lblStarterEventdeck=Starter/Event deck:
lblSanctionedformat=Sanctioned format:
lblCustomdeck=Custom deck
lblDefineCustomFormat=Define custom format
lblSelectFormat=Select format
lblStartWithAllCards=Start with all cards in selected sets
lblAllowDuplicateCards=Allow duplicate cards
lblStartingPoolDistribution=Starting pool distribution
lblChooseDistribution=Choose Distribution
lblPrizedCards=Prized cards
lblAllCardsAvailableWin =All cards will be available to win.
lblOnlySetsInStarting="Only sets in starting pool will be available.
lblAllowUnlockAdEd=Allow unlock of additional editions
lblEmbark=Embark!
lblboxCompleteSet=You will start the quest with 4 of each card in the sets you have selected.
lblboxAllowDuplicates=When your starting pool is generated, duplicates of cards may be included.
lblSameAsStartingPool=Same as starting pool
lblNewLoadQuest=New / Load Quest

View File

@@ -343,7 +343,7 @@ lblPuzzleDesc=Solve a puzzle from the given game state
lblDeckManager=Deck Manager
lblVanguardDesc=Each player has a special \"Avatar\" card that affects the game.
lblCommander=Commander
lblCommanderDesc=Each player has a legendary \"General\" card which can be cast at any time and determines deck colors.
lblCommanderDesc=Each player has a legendary "General" card which can be cast at any time and determines deck colors.
lblTinyLeaders=Tiny Leaders
lblTinyLeadersDesc=Each player has a legendary \"General\" card which can be cast at any time and determines deck colors. Each card must have CMC less than 4.
lblBrawl=Brawl
@@ -353,9 +353,52 @@ lblPlaneswalkerDesc=Each player has a Planeswalker card which can be cast at any
lblPlanechase =Planechase
lblPlanechaseDesc=Plane cards apply global effects. The Plane card changes when a player rolls \"Planeswalk\" on the planar die.
lblArchenemyDesc=One player is the Archenemy and fights the other players by playing Scheme cards.
lblArchenemyRumble=
lblArchenemyRumble=Archenemy Rumble
lblArchenemyRumbleDesc=All players are Archenemies and can play Scheme cards.
lblMomirBasic=Momir Basic
lblMomirBasicDesc=Each player has a deck containing 60 basic lands and the Momir Vig avatar.
lblMoJhoSto=MoJhoSto
lblMoJhoStoDesc=Each player has a deck containing 60 basic lands and the Momir Vig, Jhoira of the Ghitu, and Stonehewer Giant avatars.
#VSubmenuDuels.java
lblQuestDuels=Quest Duels
lblQuestModeDuels=Quest Mode: Duels
lblSelectNextDuel=Select your next duel.
lblNoDuelDeck=Current deck hasn't been set yet.
lblNextChallengeNotYet=Next challenge in wins hasn't been set yet.
btnUnlockSets=Unlock Sets
btnTravel=Travel
btnBazaar=Bazaar
btnSpellShop=Spell Shop
cbSummonPlant=Summon Plant
cbLaunchZeppelin=Launch Zeppelin
#VSubmenuQuest.java
lblQuestData=Quest Data
lblStartanewQuest=Start a new Quest
lblOldQuestData=Old quest data? Put into %n and restart Forge.
rbEasy=Easy
rbMedium=Medium
rbHard=Hard
rbExpert=Expert
rbFantasyMode=Fantasy Mode
rbCommanderSubformat=Commander Subformat
lblStartingWorld=Starting World
lblStartingPool=Starting Pool
lblAllCardsAvailable=All cards will be available to play.
lblStarterEventdeck=Starter/Event deck:
lblSanctionedformat=Sanctioned format:
lblCustomdeck=Custom deck
lblDefineCustomFormat=Define custom format
lblSelectFormat=Select format
lblStartWithAllCards=Start with all cards in selected sets
lblAllowDuplicateCards=Allow duplicate cards
lblStartingPoolDistribution=Starting pool distribution
lblChooseDistribution=Choose Distribution
lblPrizedCards=Prized cards
lblAllCardsAvailableWin =All cards will be available to win.
lblOnlySetsInStarting=Only sets in starting pool will be available.
lblAllowUnlockAdEd=Allow unlock of additional editions
lblEmbark=Embark!
lblboxCompleteSet=You will start the quest with 4 of each card in the sets you have selected.
lblboxAllowDuplicates=When your starting pool is generated, duplicates of cards may be included.
lblSameAsStartingPool=Same as starting pool
lblNewLoadQuest=New / Load Quest

View File

@@ -356,6 +356,49 @@ lblArchenemyDesc=Un jugador es el Archienemigo y lucha contra los otros jugadore
lblArchenemyRumble=Archenemy Rumble
lblArchenemyRumbleDesc=Todos los jugadores son Archienemigos y pueden jugar cartas de Fenómenos.
lblMomirBasic=Momir Basic
lblMomirBasicDesc=Each player has a deck containing 60 basic lands and the Momir Vig avatar.
lblMomirBasicDesc=Cada jugador tiene un mazo que contiene 60 tierras básicas y el avatar de Momir Vig.
lblMoJhoSto=MoJhoSto
lblMoJhoStoDesc=Cada jugador tiene un mazo que contiene 60 tierras básicas y los avatares Momir Vig, Jhoira of the Ghitu, y Stonehewer Giant avatar
lblMoJhoStoDesc=Cada jugador tiene un mazo que contiene 60 tierras básicas y los avatares Momir Vig, Jhoira of the Ghitu, y Stonehewer Giant.
#VSubmenuDuels.java
lblQuestDuels=Duelos de Aventura
lblQuestModeDuels=Modo Quest: Duelos
lblSelectNextDuel=Select your next duel.
lblNoDuelDeck=Current deck hasn't been set yet.
lblNextChallengeNotYet=Next challenge in wins hasn't been set yet.
btnUnlockSets=Unlock Sets
btnTravel=Travel
btnBazaar=Bazaar
btnSpellShop=Spell Shop
cbSummonPlant=Summon Plant
cbLaunchZeppelin=Launch Zeppelin
#VSubmenuQuest.java
lblQuestData=Quest Data
lblStartanewQuest=Start a new Quest
lblOldQuestData=Old quest data? Put into %n and restart Forge.
rbEasy=Easy
rbMedium=Medium
rbHard=Hard
rbExpert=Expert
rbFantasyMode=Fantasy Mode
rbCommanderSubformat=Commander Subformat
lblStartingWorld=Starting World
lblStartingPool=Starting Pool
lblAllCardsAvailable=All cards will be available to play.
lblStarterEventdeck=Starter/Event deck:
lblSanctionedformat=Sanctioned format:
lblCustomdeck=Custom deck
lblDefineCustomFormat=Define custom format
lblSelectFormat=Select format
lblStartWithAllCards=Start with all cards in selected sets
lblAllowDuplicateCards=Allow duplicate cards
lblStartingPoolDistribution=Starting pool distribution
lblChooseDistribution=Choose Distribution
lblPrizedCards=Prized cards
lblAllCardsAvailableWin=All cards will be available to win.
lblOnlySetsInStarting="Only sets in starting pool will be available.
lblAllowUnlockAdEd=Allow unlock of additional editions
lblEmbark=Embark!
lblboxCompleteSet=You will start the quest with 4 of each card in the sets you have selected.
lblboxAllowDuplicates=When your starting pool is generated, duplicates of cards may be included.
lblSameAsStartingPool=Same as starting pool
lblNewLoadQuest=New / Load Quest