changeset 2:74df258710fe

Fixes #8 - Update SWF version of WarFoundry * Add translations file and copy on build * Add names to controls in FrmMain
author IBBoard <dev@ibboard.co.uk>
date Sat, 27 Dec 2008 19:20:26 +0000
parents 42cf06b8f897
children 8935971e307c
files FrmMain.cs IBBoard.WarFoundry.csproj translations/en.translation
diffstat 3 files changed, 89 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- a/FrmMain.cs	Sat Dec 27 18:39:37 2008 +0000
+++ b/FrmMain.cs	Sat Dec 27 19:20:26 2008 +0000
@@ -43,44 +43,44 @@
 
 		private FrmArmyTree armyTree;
 		private FrmDebugOutput debugWindow;
-        private string loadedFilePath;
-
-		private IBBoard.Windows.Forms.ColorableStatusBar statusBar;
+        private string loadedFilePath;
+
+        private System.ComponentModel.IContainer components;
 		private System.Windows.Forms.ToolBar toolBar;
-		private System.Windows.Forms.MainMenu mainMenu;
-		private IBBoard.Windows.Forms.IBBMenuItem menuFile;
-		private IBBoard.Windows.Forms.IBBMenuItem menuHelp;
 		private IBBoard.Windows.Forms.IBBToolBarButton bttnNewArmy;
 		private System.Windows.Forms.ImageList buttonIcons;
 		private IBBoard.Windows.Forms.IBBToolBarButton bttnSaveArmy;
 		private System.Windows.Forms.OpenFileDialog openArmyDialog;
-		private System.Windows.Forms.SaveFileDialog saveArmyDialog;
-		private IBBoard.Windows.Forms.IBBMenuItem miExit;
-		private IBBoard.Windows.Forms.IBBToolBarButton bttnOpenArmy;
-		private IBBoard.Windows.Forms.IBBMenuItem miAbout;
-		private System.ComponentModel.IContainer components;
+		private System.Windows.Forms.SaveFileDialog saveArmyDialog;
+        private IBBoard.Windows.Forms.IBBToolBarButton bttnOpenArmy;
+        private IBBoard.Windows.Forms.IBBToolBarButton bttnSep1;
+        private IBBoard.Windows.Forms.IBBToolBarButton bttnUndo;
+        private IBBoard.Windows.Forms.IBBToolBarButton bttnRedo;
+        private System.Windows.Forms.MainMenu mainMenu;
+        private IBBoard.Windows.Forms.IBBMenuItem menuFile;
 		private IBBoard.Windows.Forms.IBBMenuItem miNewArmy;
-		private IBBoard.Windows.Forms.IBBMenuItem miOpenArmy;
-		private IBBoard.Windows.Forms.IBBMenuItem miCloseArmy;
-		private IBBoard.Windows.Forms.IBBMenuItem miSaveArmy;
-		private IBBoard.Windows.Forms.IBBMenuItem miSaveArmyAs;
-		private IBBoard.Windows.Forms.IBBMenuItem miChangeSystem;
-		private IBBoard.Windows.Forms.IBBToolBarButton bttnSep1;
-		private IBBoard.Windows.Forms.IBBToolBarButton bttnUndo;
-		private IBBoard.Windows.Forms.IBBToolBarButton bttnRedo;
+		private IBBoard.Windows.Forms.IBBMenuItem miOpenArmy;
+        private IBBoard.Windows.Forms.IBBMenuItem miCloseArmy;
+		private IBBoard.Windows.Forms.IBBMenuItem miSaveArmy;
+        private IBBoard.Windows.Forms.IBBMenuItem miSaveArmyAs;
+        private System.Windows.Forms.MenuItem miSep2;
+        private IBBoard.Windows.Forms.IBBMenuItem miChangeSystem;
+        private System.Windows.Forms.MenuItem miSep1;
+        private IBBoard.Windows.Forms.IBBMenuItem miReloadFiles;
+        private System.Windows.Forms.MenuItem miSep3;
+        private IBBoard.Windows.Forms.IBBMenuItem miExit;
 		private IBBoard.Windows.Forms.IBBMenuItem menuEdit;
-		private IBBoard.Windows.Forms.IBBMenuItem miUndo;
-		private IBBoard.Windows.Forms.IBBMenuItem miRedo;
-		private IBBoard.Windows.Forms.IBBMenuItem miDebugWindow;
-		private System.Windows.Forms.MenuItem miSep1;
-		private System.Windows.Forms.MenuItem miSep2;
-		private System.Windows.Forms.MenuItem miSep3;
+		private IBBoard.Windows.Forms.IBBMenuItem miUndo;
+        private IBBoard.Windows.Forms.IBBMenuItem miRedo;
+        private IBBoard.Windows.Forms.IBBMenuItem menuHelp;
+        private IBBoard.Windows.Forms.IBBMenuItem miDebugWindow;
+        private IBBoard.Windows.Forms.IBBMenuItem miAbout;
 		private IBBoard.Windows.Forms.ColorableStatusBarPanel sbMainPanel;
 		private IBBoard.Windows.Forms.ColorableStatusBarPanel sbErrorPanel;
 		private IBBoard.Windows.Forms.ColorableStatusBarPanel sbPointsPanel;
 		private System.Windows.Forms.ContextMenu undoMenu;
-		private System.Windows.Forms.ContextMenu redoMenu;
-		private IBBoard.Windows.Forms.IBBMenuItem miReloadFiles;
+		private System.Windows.Forms.ContextMenu redoMenu;
+        private IBBoard.Windows.Forms.ColorableStatusBar statusBar;
 		private System.Windows.Forms.Timer statusBarTimer;
 		private System.Windows.Forms.Panel pnlRight;
 
@@ -331,22 +331,21 @@
             // 
             this.bttnNewArmy.Enabled = false;
             this.bttnNewArmy.ImageIndex = 0;
-            this.bttnNewArmy.Name = "";
+            this.bttnNewArmy.Name = "bttnNewArmy";
             // 
             // bttnOpenArmy
             // 
             this.bttnOpenArmy.ImageIndex = 2;
-            this.bttnOpenArmy.Name = "";
+            this.bttnOpenArmy.Name = "bttnOpenArmy";
             // 
             // bttnSaveArmy
             // 
             this.bttnSaveArmy.Enabled = false;
             this.bttnSaveArmy.ImageIndex = 1;
-            this.bttnSaveArmy.Name = "";
+            this.bttnSaveArmy.Name = "bttnSaveArmy";
             // 
             // bttnSep1
             // 
-            this.bttnSep1.Name = "";
             this.bttnSep1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
             // 
             // bttnUndo
@@ -354,7 +353,7 @@
             this.bttnUndo.DropDownMenu = this.undoMenu;
             this.bttnUndo.Enabled = false;
             this.bttnUndo.ImageIndex = 3;
-            this.bttnUndo.Name = "";
+            this.bttnUndo.Name = "bttnUndo";
             this.bttnUndo.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
             // 
             // bttnRedo
@@ -362,7 +361,7 @@
             this.bttnRedo.DropDownMenu = this.redoMenu;
             this.bttnRedo.Enabled = false;
             this.bttnRedo.ImageIndex = 4;
-            this.bttnRedo.Name = "";
+            this.bttnRedo.Name = "bttnRedo";
             this.bttnRedo.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
             // 
             // buttonIcons
@@ -400,18 +399,21 @@
             this.miSep3,
             this.miExit});
             this.menuFile.Text = "&file";
+            this.menuFile.Name = "menuFile";
             // 
             // miNewArmy
             // 
             this.miNewArmy.Index = 0;
             this.miNewArmy.Text = "&new army";
             this.miNewArmy.Click += new System.EventHandler(this.miNewArmy_Click);
+            this.miNewArmy.Name = "miNewArmy";
             // 
             // miOpenArmy
             // 
             this.miOpenArmy.Index = 1;
             this.miOpenArmy.Text = "&open army";
             this.miOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click);
+            this.miOpenArmy.Name = "miOpenArmy";
             // 
             // miSaveArmy
             // 
@@ -419,6 +421,7 @@
             this.miSaveArmy.Index = 2;
             this.miSaveArmy.Text = "&save army";
             this.miSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click);
+            this.miSaveArmy.Name = "miSaveArmy";
             // 
             // miSaveArmyAs
             // 
@@ -426,6 +429,7 @@
             this.miSaveArmyAs.Index = 3;
             this.miSaveArmyAs.Text = "save army &as...";
             this.miSaveArmyAs.Click += new System.EventHandler(this.miSaveArmyAs_Click);
+            this.miSaveArmyAs.Name = "miSaveArmyAs";
             // 
             // miCloseArmy
             // 
@@ -433,6 +437,7 @@
             this.miCloseArmy.Index = 4;
             this.miCloseArmy.Text = "&close army";
             this.miCloseArmy.Click += new System.EventHandler(this.miCloseArmy_Click);
+            this.miCloseArmy.Name = "miCloseArmy";
             // 
             // miSep1
             // 
@@ -444,6 +449,7 @@
             this.miChangeSystem.Index = 6;
             this.miChangeSystem.Text = "change &game system";
             this.miChangeSystem.Click += new System.EventHandler(this.miChangeSystem_Click);
+            this.miChangeSystem.Name = "miChangeSystem";
             // 
             // miSep2
             // 
@@ -455,6 +461,7 @@
             this.miReloadFiles.Index = 8;
             this.miReloadFiles.Text = "&reload files";
             this.miReloadFiles.Click += new System.EventHandler(this.miReloadFiles_Click);
+            this.miReloadFiles.Name = "miReloadFiles";
             // 
             // miSep3
             // 
@@ -466,6 +473,7 @@
             this.miExit.Index = 10;
             this.miExit.Text = "e&xit";
             this.miExit.Click += new System.EventHandler(this.miExit_Click);
+            this.miExit.Name = "miExit";
             // 
             // menuEdit
             // 
@@ -474,6 +482,7 @@
             this.miUndo,
             this.miRedo});
             this.menuEdit.Text = "&edit";
+            this.menuEdit.Name = "menuEdit";
             // 
             // miUndo
             // 
@@ -481,6 +490,7 @@
             this.miUndo.Index = 0;
             this.miUndo.Text = "&undo";
             this.miUndo.Click += new System.EventHandler(this.miUndo_Click);
+            this.miUndo.Name = "miUndo";
             // 
             // miRedo
             // 
@@ -488,6 +498,7 @@
             this.miRedo.Index = 1;
             this.miRedo.Text = "&redo";
             this.miRedo.Click += new System.EventHandler(this.miRedo_Click);
+            this.miRedo.Name = "miRedo";
             // 
             // menuHelp
             // 
@@ -496,18 +507,21 @@
             this.miAbout,
             this.miDebugWindow});
             this.menuHelp.Text = "&help";
+            this.menuHelp.Name = "menuHelp";
             // 
             // miAbout
             // 
             this.miAbout.Enabled = false;
             this.miAbout.Index = 0;
             this.miAbout.Text = "&about";
+            this.miAbout.Name = "miAbout";
             // 
             // miDebugWindow
             // 
             this.miDebugWindow.Index = 1;
             this.miDebugWindow.Text = "&debug";
             this.miDebugWindow.Click += new System.EventHandler(this.miDebugWindow_Click);
+            this.miDebugWindow.Name = "miDebugWindow";
             // 
             // saveArmyDialog
             // 
--- a/IBBoard.WarFoundry.csproj	Sat Dec 27 18:39:37 2008 +0000
+++ b/IBBoard.WarFoundry.csproj	Sat Dec 27 19:20:26 2008 +0000
@@ -178,6 +178,9 @@
       <DependentUpon>FrmUnit.cs</DependentUpon>
     </EmbeddedResource>
     <None Include="app.config" />
+    <None Include="translations\en.translation">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </None>
     <None Include="WarFoundry.exe.manifest" />
   </ItemGroup>
   <ItemGroup>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/translations/en.translation	Sat Dec 27 19:20:26 2008 +0000
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE translations SYSTEM "dtds/translation.dtd">
+<translations lang="en">
+<translation id="menuFile">&amp;File</translation>
+<translation id="menuEdit">&amp;Edit</translation>
+<translation id="menuHelp">&amp;Help</translation>
+<translation id="miNewArmy">&amp;Create army</translation>
+<translation id="miOpenArmy">&amp;Open army</translation>
+<translation id="miExit">E&amp;xit</translation>
+<translation id="miAbout">&amp;About</translation>
+<translation id="miSaveArmy">&amp;Save army</translation>
+<translation id="miSaveArmyAs">Save army &amp;as...</translation>
+<translation id="miCloseArmy">&amp;Close army</translation>
+<translation id="miChangeSystem">Change &amp;game system</translation>
+<translation id="miUndo">&amp;Undo</translation>
+<translation id="miRedo">&amp;Redo</translation>
+<translation id="armyFileFilter">WarFoundry Army Files (*.army)</translation>
+<translation id="bttnSelectRace">Create army</translation>
+<translation id="bttnCancel">Cancel</translation>
+<translation id="bttnSelectUnit">Create unit</translation>
+<translation id="lblUnitList">Unit types:</translation>
+<translation id="lblRaceList">Races:</translation>
+<translation id="lblArmyName">Army name:</translation>
+<translation id="bttnSelectSystem">Select system</translation>
+<translation id="lblSystemList">Game systems:</translation>
+<translation id="FrmSelectSystem">Game system selection</translation>
+<translation id="ArmyTree">Army tree</translation>
+<translation id="FrmNewArmy">Create new army</translation>
+<translation id="saveArmyDialog">Save army</translation>
+<translation id="lblArmySize">Army size:</translation>
+<translation id="defaultUnitName">Unit of {0} {1}</translation>
+<translation id="bttnNewArmy">Create army</translation>
+<translation id="bttnOpenArmy">Open army</translation>
+<translation id="bttnSaveArmy">Save army</translation>
+<translation id="statusPanelPoints">{0} pts / {1} pts</translation>
+<translation id="miReloadFiles">&amp;Reload files</translation>
+<translation id="miDebugWindow">&amp;Debug information</translation>
+<translation id="FrmNewUnit">Add New {0} Choice</translation>
+</translations>
\ No newline at end of file