From a7271e384e4b6530832ffe42e599032021492c6c Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 09:01:26 +0000 Subject: [PATCH] translated --- res/lang/de.properties | 16 +++++++++++++++ res/lang/en.properties | 17 ++++++++++++++++ src/forge/Gui_DownloadPrices.java | 9 +++++---- src/forge/Gui_NewGame.java | 6 +++--- src/forge/Gui_WinLose.java | 15 +++++++------- src/forge/properties/NewConstants.java | 27 ++++++++++++++++++++++++++ 6 files changed, 76 insertions(+), 14 deletions(-) diff --git a/res/lang/de.properties b/res/lang/de.properties index 4702cfd4f37..d69a0df924a 100644 --- a/res/lang/de.properties +++ b/res/lang/de.properties @@ -116,6 +116,10 @@ NewGame/options/cardScale=Karten vergr NewGame/options/generate/title=Deckgenerator NewGame/options/generate/removeSmall=1/1 und 0/X Kreaturen entfernen NewGame/options/generate/removeArtifacts=Artefakte entfernen + +NewGame/gametype=Spieltyp +NewGame/library=Bibliothek +NewGame/settings=Einstellungen NewGame/new_game=Neues Spiel NewGame/constructed_text=Konstruiert (Einfach) - Benutze alle Karten um den Computer zu besiegen NewGame/sealed_text=Sealed Deck (Mittel) - Erstelle dein Deck aus 75 verfügbaren Karten @@ -129,3 +133,15 @@ NewGame/milling=Milling = Loss Condition NewGame/questmode=Quest Mode NewGame/startgame=Spiel starten +WinLose/won=Siege: +WinLose/lost=, Niederlagen: +WinLose/win=Gewonnen +WinLose/lose=Verloren +WinLose/continue=Weiter +WinLose/restart=Neu Starten +WinLose/quit=Verlassen + +DownloadPrices/title=Preise Aktualisieren +DownloadPrices/startupdate=Starte Update +DownloadPrices/downloading=Downloade +DownloadPrices/compiling=Compiling diff --git a/res/lang/en.properties b/res/lang/en.properties index 964aa3b6393..fb505fc51ef 100644 --- a/res/lang/en.properties +++ b/res/lang/en.properties @@ -115,6 +115,10 @@ NewGame/options/cardScale=Scale card images larger than original NewGame/options/generate/title=Generate Deck NewGame/options/generate/removeSmall=Remove 1/1 and 0/X Creatures NewGame/options/generate/removeArtifacts=Remove Artifacts" + +NewGame/gametype=Game Type +NewGame/library=Library +NewGame/settings=Settings NewGame/new_game=New Game NewGame/constructed_text=Constructed (Easy) - Use all of the cards to defeat the computer NewGame/sealed_text=Sealed Deck (Medium) - Create your deck from 75 available cards @@ -127,3 +131,16 @@ NewGame/ailand=Stack AI Land NewGame/milling=Milling = Loss Condition NewGame/questmode=Quest Mode NewGame/startgame=Start Game + +WinLose/won=Won: +WinLose/lost=, Lost: +WinLose/win=You Win +WinLose/lose=You Lost +WinLose/continue=Continue +WinLose/restart=Restart +WinLose/quit=Quit + +DownloadPrices/title=Update Prices +DownloadPrices/startupdate=Start Update +DownloadPrices/downloading=Downloading +DownloadPrices/compiling=Compiling diff --git a/src/forge/Gui_DownloadPrices.java b/src/forge/Gui_DownloadPrices.java index 92e97434004..970e9b0f069 100644 --- a/src/forge/Gui_DownloadPrices.java +++ b/src/forge/Gui_DownloadPrices.java @@ -22,6 +22,7 @@ import javax.swing.JPanel; import forge.properties.ForgeProps; import forge.properties.NewConstants.QUEST; +import forge.properties.NewConstants.LANG.Gui_DownloadPrices.DOWNLOADPRICES; public class Gui_DownloadPrices extends JFrame { @@ -45,7 +46,7 @@ public class Gui_DownloadPrices extends JFrame { private void initialize() { this.setSize(386, 200); setContentPane(getJContentPane()); - setTitle("Update Prices"); + setTitle(ForgeProps.getLocalized(DOWNLOADPRICES.TITLE)); } /** @@ -70,7 +71,7 @@ public class Gui_DownloadPrices extends JFrame { private JButton getJButton() { if (jButton == null) { jButton = new JButton(); - jButton.setText("Start Update"); + jButton.setText(ForgeProps.getLocalized(DOWNLOADPRICES.START_UPDATE)); jButton.setLocation(new Point(120, 46)); jButton.setSize(158, 89); @@ -94,7 +95,7 @@ public class Gui_DownloadPrices extends JFrame { .openConnection(p).getInputStream()); out = new BufferedOutputStream(new FileOutputStream(f)); - jButton.setText("Downloading"); + jButton.setText(ForgeProps.getLocalized(DOWNLOADPRICES.DOWNLOADING)); jContentPane.paintImmediately(jButton.getBounds()); @@ -145,7 +146,7 @@ public class Gui_DownloadPrices extends JFrame { line = inBR.readLine(); line = inBR.readLine(); - jButton.setText("Compiling"); + jButton.setText(ForgeProps.getLocalized(DOWNLOADPRICES.COMPILING)); jContentPane.paintImmediately(jButton.getBounds()); x = 0; diff --git a/src/forge/Gui_NewGame.java b/src/forge/Gui_NewGame.java index 8105d417969..a6262d0c431 100644 --- a/src/forge/Gui_NewGame.java +++ b/src/forge/Gui_NewGame.java @@ -332,11 +332,11 @@ public class Gui_NewGame extends JFrame implements NewConstants, NewConstants.LA private void jbInit() throws Exception { border1 = BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)); - titledBorder1 = new TitledBorder(border1, "Game Type"); + titledBorder1 = new TitledBorder(border1, ForgeProps.getLocalized(NEW_GAME_TEXT.GAMETYPE)); border2 = BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)); - titledBorder2 = new TitledBorder(border2, "Library"); + titledBorder2 = new TitledBorder(border2, ForgeProps.getLocalized(NEW_GAME_TEXT.LIBRARY)); border3 = BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)); - titledBorder3 = new TitledBorder(border3, "Settings"); + titledBorder3 = new TitledBorder(border3, ForgeProps.getLocalized(NEW_GAME_TEXT.SETTINGS)); titleLabel.setText(ForgeProps.getLocalized(NEW_GAME_TEXT.NEW_GAME)); titleLabel.setFont(new java.awt.Font("Dialog", 0, 26)); titleLabel.setHorizontalAlignment(SwingConstants.CENTER); diff --git a/src/forge/Gui_WinLose.java b/src/forge/Gui_WinLose.java index a7237419607..716826af6d1 100644 --- a/src/forge/Gui_WinLose.java +++ b/src/forge/Gui_WinLose.java @@ -25,6 +25,7 @@ import net.miginfocom.swing.MigLayout; import forge.error.ErrorViewer; import forge.properties.ForgeProps; import forge.properties.NewConstants; +import forge.properties.NewConstants.LANG.Gui_WinLose.WINLOSE_TEXT; public class Gui_WinLose extends JFrame implements NewConstants { @@ -136,12 +137,12 @@ public class Gui_WinLose extends JFrame implements NewConstants { restartButton.setEnabled(false); //show Wins and Loses - statsLabel.setText("Won: " + winLose.getWin() + ", Lost: " + winLose.getLose()); + statsLabel.setText(ForgeProps.getLocalized(WINLOSE_TEXT.WON) + winLose.getWin() + ForgeProps.getLocalized(WINLOSE_TEXT.LOST) + winLose.getLose()); //show "You Won" or "You Lost" if(winLose.didWinRecently()) { - titleLabel.setText("You Won"); + titleLabel.setText(ForgeProps.getLocalized(WINLOSE_TEXT.WIN)); int game = 0; if (winLose.getWinTurns()[0] != 0) @@ -163,7 +164,7 @@ public class Gui_WinLose extends JFrame implements NewConstants { } else { - titleLabel.setText("You Lost"); + titleLabel.setText(ForgeProps.getLocalized(WINLOSE_TEXT.LOSE)); //System.out.println("You lost by turn: " + AllZone.Phase.getTurn()); } }//setup(); @@ -173,21 +174,21 @@ public class Gui_WinLose extends JFrame implements NewConstants { border1 = BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)); titleLabel.setFont(new java.awt.Font("Dialog", 0, 26)); titleLabel.setHorizontalAlignment(SwingConstants.CENTER); - titleLabel.setText("You Won"); + titleLabel.setText(ForgeProps.getLocalized(WINLOSE_TEXT.WIN)); this.getContentPane().setLayout(new MigLayout("fill")); - continueButton.setText("Continue Match"); + continueButton.setText(ForgeProps.getLocalized(WINLOSE_TEXT.CONTINUE)); continueButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { continueButton_actionPerformed(e); } }); - restartButton.setText("Restart Match"); + restartButton.setText(ForgeProps.getLocalized(WINLOSE_TEXT.RESTART)); restartButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { restartButton_actionPerformed(e); } }); - quitButton.setText("Quit Match"); + quitButton.setText(ForgeProps.getLocalized(WINLOSE_TEXT.QUIT)); quitButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { quitButton_actionPerformed(e); diff --git a/src/forge/properties/NewConstants.java b/src/forge/properties/NewConstants.java index 66ce1d13b81..48f93416cac 100644 --- a/src/forge/properties/NewConstants.java +++ b/src/forge/properties/NewConstants.java @@ -264,8 +264,12 @@ public interface NewConstants { } } + public static interface Gui_NewGame { public static interface NEW_GAME_TEXT { + public static final String GAMETYPE = "%s/NewGame/gametype"; + public static final String LIBRARY = "%s/NewGame/library"; + public static final String SETTINGS = "%s/NewGame/settings"; public static final String NEW_GAME = "%s/NewGame/new_game"; public static final String CONSTRUCTED_TEXT = "%s/NewGame/constructed_text"; public static final String SEALED_TEXT = "%s/NewGame/sealed_text"; @@ -310,5 +314,28 @@ public interface NewConstants { public static interface ERRORS {} } + + public static interface Gui_WinLose { + public static interface WINLOSE_TEXT { + public static final String WON = "%s/WinLose/won"; + public static final String LOST = "%s/WinLose/lost"; + public static final String WIN = "%s/WinLose/win"; + public static final String LOSE = "%s/WinLose/lose"; + public static final String CONTINUE = "%s/WinLose/continue"; + public static final String RESTART = "%s/WinLose/restart"; + public static final String QUIT = "%s/WinLose/quit"; + } + } + + public static interface Gui_DownloadPrices { + public static interface DOWNLOADPRICES { + public static final String TITLE = "%s/DownloadPrices/title"; + public static final String START_UPDATE = "%s/DownloadPrices/startupdate"; + public static final String DOWNLOADING = "%s/DownloadPrices/downloading"; + public static final String COMPILING = "%s/DownloadPrices/compiling"; + } + } + } } +