Update of /cvsroot/rails/18xx/rails/ui/swing
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv20366/rails/ui/swing
Modified Files:
ORWindow.java ReportWindow.java
Log Message:
Localised some hardcoded text
Index: ReportWindow.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/ui/swing/ReportWindow.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** ReportWindow.java 3 Dec 2008 20:16:39 -0000 1.8
--- ReportWindow.java 11 Dec 2008 20:10:25 -0000 1.9
***************
*** 9,12 ****
--- 9,13 ----
import rails.game.GameManager;
import rails.game.ReportBuffer;
+ import rails.util.LocalText;
/**
***************
*** 50,54 ****
setSize(400, 400);
setLocation(600, 400);
! setTitle("Rails: Game log");
final JFrame frame = this;
--- 51,55 ----
setSize(400, 400);
setLocation(600, 400);
! setTitle(LocalText.getText("GameReportTitle"));
final JFrame frame = this;
Index: ORWindow.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/ui/swing/ORWindow.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** ORWindow.java 3 Dec 2008 20:16:39 -0000 1.19
--- ORWindow.java 11 Dec 2008 20:10:25 -0000 1.20
***************
*** 18,21 ****
--- 18,22 ----
import rails.game.OperatingRound;
import rails.game.action.*;
+ import rails.util.LocalText;
/**
***************
*** 74,78 ****
orUIManager.init(this);
! setTitle("Rails: Map");
setLocation(10, 10);
setVisible(false);
--- 75,79 ----
orUIManager.init(this);
! setTitle(LocalText.getText("MapWindowTitle"));
setLocation(10, 10);
setVisible(false);
***************
*** 155,158 ****
--- 156,161 ----
public void activate(OperatingRound or) {
orPanel.recreate(or);
+ setTitle(LocalText.getText("MapWindowORTitle",
+ gameUIManager.getGameManager().getCompositeORNumber()));
pack();
if (lastBounds != null) {
***************
*** 178,181 ****
--- 181,185 ----
orPanel.finish();
upgradePanel.finish();
+ setTitle(LocalText.getText("MapWindowTitle"));
}
}
|