translated

This commit is contained in:
jendave
2011-08-06 09:01:26 +00:00
parent d9dd9f6b3c
commit a7271e384e
6 changed files with 76 additions and 14 deletions

View File

@@ -116,6 +116,10 @@ NewGame/options/cardScale=Karten vergr
NewGame/options/generate/title=Deckgenerator NewGame/options/generate/title=Deckgenerator
NewGame/options/generate/removeSmall=1/1 und 0/X Kreaturen entfernen NewGame/options/generate/removeSmall=1/1 und 0/X Kreaturen entfernen
NewGame/options/generate/removeArtifacts=Artefakte entfernen NewGame/options/generate/removeArtifacts=Artefakte entfernen
NewGame/gametype=Spieltyp
NewGame/library=Bibliothek
NewGame/settings=Einstellungen
NewGame/new_game=Neues Spiel NewGame/new_game=Neues Spiel
NewGame/constructed_text=Konstruiert (Einfach) - Benutze alle Karten um den Computer zu besiegen 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<72>gbaren Karten NewGame/sealed_text=Sealed Deck (Mittel) - Erstelle dein Deck aus 75 verf<72>gbaren Karten
@@ -129,3 +133,15 @@ NewGame/milling=Milling = Loss Condition
NewGame/questmode=Quest Mode NewGame/questmode=Quest Mode
NewGame/startgame=Spiel starten 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

View File

@@ -115,6 +115,10 @@ NewGame/options/cardScale=Scale card images larger than original
NewGame/options/generate/title=Generate Deck NewGame/options/generate/title=Generate Deck
NewGame/options/generate/removeSmall=Remove 1/1 and 0/X Creatures NewGame/options/generate/removeSmall=Remove 1/1 and 0/X Creatures
NewGame/options/generate/removeArtifacts=Remove Artifacts" NewGame/options/generate/removeArtifacts=Remove Artifacts"
NewGame/gametype=Game Type
NewGame/library=Library
NewGame/settings=Settings
NewGame/new_game=New Game NewGame/new_game=New Game
NewGame/constructed_text=Constructed (Easy) - Use all of the cards to defeat the computer 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 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/milling=Milling = Loss Condition
NewGame/questmode=Quest Mode NewGame/questmode=Quest Mode
NewGame/startgame=Start Game 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

View File

@@ -22,6 +22,7 @@ import javax.swing.JPanel;
import forge.properties.ForgeProps; import forge.properties.ForgeProps;
import forge.properties.NewConstants.QUEST; import forge.properties.NewConstants.QUEST;
import forge.properties.NewConstants.LANG.Gui_DownloadPrices.DOWNLOADPRICES;
public class Gui_DownloadPrices extends JFrame { public class Gui_DownloadPrices extends JFrame {
@@ -45,7 +46,7 @@ public class Gui_DownloadPrices extends JFrame {
private void initialize() { private void initialize() {
this.setSize(386, 200); this.setSize(386, 200);
setContentPane(getJContentPane()); setContentPane(getJContentPane());
setTitle("Update Prices"); setTitle(ForgeProps.getLocalized(DOWNLOADPRICES.TITLE));
} }
/** /**
@@ -70,7 +71,7 @@ public class Gui_DownloadPrices extends JFrame {
private JButton getJButton() { private JButton getJButton() {
if (jButton == null) { if (jButton == null) {
jButton = new JButton(); jButton = new JButton();
jButton.setText("Start Update"); jButton.setText(ForgeProps.getLocalized(DOWNLOADPRICES.START_UPDATE));
jButton.setLocation(new Point(120, 46)); jButton.setLocation(new Point(120, 46));
jButton.setSize(158, 89); jButton.setSize(158, 89);
@@ -94,7 +95,7 @@ public class Gui_DownloadPrices extends JFrame {
.openConnection(p).getInputStream()); .openConnection(p).getInputStream());
out = new BufferedOutputStream(new FileOutputStream(f)); out = new BufferedOutputStream(new FileOutputStream(f));
jButton.setText("Downloading"); jButton.setText(ForgeProps.getLocalized(DOWNLOADPRICES.DOWNLOADING));
jContentPane.paintImmediately(jButton.getBounds()); jContentPane.paintImmediately(jButton.getBounds());
@@ -145,7 +146,7 @@ public class Gui_DownloadPrices extends JFrame {
line = inBR.readLine(); line = inBR.readLine();
line = inBR.readLine(); line = inBR.readLine();
jButton.setText("Compiling"); jButton.setText(ForgeProps.getLocalized(DOWNLOADPRICES.COMPILING));
jContentPane.paintImmediately(jButton.getBounds()); jContentPane.paintImmediately(jButton.getBounds());
x = 0; x = 0;

View File

@@ -332,11 +332,11 @@ public class Gui_NewGame extends JFrame implements NewConstants, NewConstants.LA
private void jbInit() throws Exception { private void jbInit() throws Exception {
border1 = BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)); 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)); 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)); 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.setText(ForgeProps.getLocalized(NEW_GAME_TEXT.NEW_GAME));
titleLabel.setFont(new java.awt.Font("Dialog", 0, 26)); titleLabel.setFont(new java.awt.Font("Dialog", 0, 26));
titleLabel.setHorizontalAlignment(SwingConstants.CENTER); titleLabel.setHorizontalAlignment(SwingConstants.CENTER);

View File

@@ -25,6 +25,7 @@ import net.miginfocom.swing.MigLayout;
import forge.error.ErrorViewer; import forge.error.ErrorViewer;
import forge.properties.ForgeProps; import forge.properties.ForgeProps;
import forge.properties.NewConstants; import forge.properties.NewConstants;
import forge.properties.NewConstants.LANG.Gui_WinLose.WINLOSE_TEXT;
public class Gui_WinLose extends JFrame implements NewConstants { public class Gui_WinLose extends JFrame implements NewConstants {
@@ -136,12 +137,12 @@ public class Gui_WinLose extends JFrame implements NewConstants {
restartButton.setEnabled(false); restartButton.setEnabled(false);
//show Wins and Loses //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" //show "You Won" or "You Lost"
if(winLose.didWinRecently()) if(winLose.didWinRecently())
{ {
titleLabel.setText("You Won"); titleLabel.setText(ForgeProps.getLocalized(WINLOSE_TEXT.WIN));
int game = 0; int game = 0;
if (winLose.getWinTurns()[0] != 0) if (winLose.getWinTurns()[0] != 0)
@@ -163,7 +164,7 @@ public class Gui_WinLose extends JFrame implements NewConstants {
} }
else else
{ {
titleLabel.setText("You Lost"); titleLabel.setText(ForgeProps.getLocalized(WINLOSE_TEXT.LOSE));
//System.out.println("You lost by turn: " + AllZone.Phase.getTurn()); //System.out.println("You lost by turn: " + AllZone.Phase.getTurn());
} }
}//setup(); }//setup();
@@ -173,21 +174,21 @@ public class Gui_WinLose extends JFrame implements NewConstants {
border1 = BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)); border1 = BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140));
titleLabel.setFont(new java.awt.Font("Dialog", 0, 26)); titleLabel.setFont(new java.awt.Font("Dialog", 0, 26));
titleLabel.setHorizontalAlignment(SwingConstants.CENTER); titleLabel.setHorizontalAlignment(SwingConstants.CENTER);
titleLabel.setText("You Won"); titleLabel.setText(ForgeProps.getLocalized(WINLOSE_TEXT.WIN));
this.getContentPane().setLayout(new MigLayout("fill")); this.getContentPane().setLayout(new MigLayout("fill"));
continueButton.setText("Continue Match"); continueButton.setText(ForgeProps.getLocalized(WINLOSE_TEXT.CONTINUE));
continueButton.addActionListener(new java.awt.event.ActionListener() { continueButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
continueButton_actionPerformed(e); continueButton_actionPerformed(e);
} }
}); });
restartButton.setText("Restart Match"); restartButton.setText(ForgeProps.getLocalized(WINLOSE_TEXT.RESTART));
restartButton.addActionListener(new java.awt.event.ActionListener() { restartButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
restartButton_actionPerformed(e); restartButton_actionPerformed(e);
} }
}); });
quitButton.setText("Quit Match"); quitButton.setText(ForgeProps.getLocalized(WINLOSE_TEXT.QUIT));
quitButton.addActionListener(new java.awt.event.ActionListener() { quitButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
quitButton_actionPerformed(e); quitButton_actionPerformed(e);

View File

@@ -264,8 +264,12 @@ public interface NewConstants {
} }
} }
public static interface Gui_NewGame { public static interface Gui_NewGame {
public static interface NEW_GAME_TEXT { 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 NEW_GAME = "%s/NewGame/new_game";
public static final String CONSTRUCTED_TEXT = "%s/NewGame/constructed_text"; public static final String CONSTRUCTED_TEXT = "%s/NewGame/constructed_text";
public static final String SEALED_TEXT = "%s/NewGame/sealed_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 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";
}
}
} }
} }