# HG changeset patch # User IBBoard # Date 1327147004 0 # Node ID f7b0cdb54c9cc2f762fd70c575aecd27032710a3 # Parent c06d0865ff27a2d7e29d1ca2fb88d2bf67e7c58f Re #203: Translate WarFoundry * Swap buttons to IBB versions so that they're translatable * Add translations to English text diff -r c06d0865ff27 -r f7b0cdb54c9c FrmArmyTree.Designer.cs --- a/FrmArmyTree.Designer.cs Sat Jan 21 11:36:23 2012 +0000 +++ b/FrmArmyTree.Designer.cs Sat Jan 21 11:56:44 2012 +0000 @@ -36,10 +36,10 @@ this.miEditUnit = new IBBoard.Windows.Forms.IBBToolStripMenuItem(); this.miDeleteUnit = new IBBoard.Windows.Forms.IBBToolStripMenuItem(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.bttnEdit = new System.Windows.Forms.ToolStripButton(); - this.bttnDelete = new System.Windows.Forms.ToolStripButton(); this.miAddUnit = new IBBoard.Windows.Forms.IBBToolStripMenuItem(); this.bttnAdd = new IBBoard.Windows.Forms.IBBToolStripButton(); + this.bttnEdit = new IBBoard.Windows.Forms.IBBToolStripButton(); + this.bttnDelete = new IBBoard.Windows.Forms.IBBToolStripButton(); this.toolStripContainer1.ContentPanel.SuspendLayout(); this.toolStripContainer1.TopToolStripPanel.SuspendLayout(); this.toolStripContainer1.SuspendLayout(); @@ -127,28 +127,6 @@ this.toolStrip1.Size = new System.Drawing.Size(112, 25); this.toolStrip1.TabIndex = 0; // - // bttnEdit - // - this.bttnEdit.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.bttnEdit.Enabled = false; - this.bttnEdit.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.gtk_edit; - this.bttnEdit.ImageTransparentColor = System.Drawing.Color.Magenta; - this.bttnEdit.Name = "bttnEdit"; - this.bttnEdit.Size = new System.Drawing.Size(23, 22); - this.bttnEdit.Text = "toolStripButton1"; - this.bttnEdit.Click += new System.EventHandler(this.bttnEdit_Click); - // - // bttnDelete - // - this.bttnDelete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.bttnDelete.Enabled = false; - this.bttnDelete.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.edit_delete; - this.bttnDelete.ImageTransparentColor = System.Drawing.Color.Magenta; - this.bttnDelete.Name = "bttnDelete"; - this.bttnDelete.Size = new System.Drawing.Size(23, 22); - this.bttnDelete.Text = "toolStripButton2"; - this.bttnDelete.Click += new System.EventHandler(this.bttnDelete_Click); - // // miAddUnit // this.miAddUnit.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.list_add; @@ -160,13 +138,36 @@ // bttnAdd // this.bttnAdd.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bttnAdd.Enabled = false; this.bttnAdd.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.list_add; this.bttnAdd.ImageTransparentColor = System.Drawing.Color.Magenta; this.bttnAdd.Name = "bttnAdd"; this.bttnAdd.Size = new System.Drawing.Size(23, 22); - this.bttnAdd.Text = "ibbToolStripButton1"; + this.bttnAdd.Text = "add unit"; this.bttnAdd.Click += new System.EventHandler(this.bttnAdd_Click); // + // bttnEdit + // + this.bttnEdit.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bttnEdit.Enabled = false; + this.bttnEdit.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.gtk_edit; + this.bttnEdit.ImageTransparentColor = System.Drawing.Color.Magenta; + this.bttnEdit.Name = "bttnEdit"; + this.bttnEdit.Size = new System.Drawing.Size(23, 22); + this.bttnEdit.Text = "edit"; + this.bttnEdit.Click += new System.EventHandler(this.bttnEdit_Click); + // + // bttnDelete + // + this.bttnDelete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bttnDelete.Enabled = false; + this.bttnDelete.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.edit_delete; + this.bttnDelete.ImageTransparentColor = System.Drawing.Color.Magenta; + this.bttnDelete.Name = "bttnDelete"; + this.bttnDelete.Size = new System.Drawing.Size(23, 22); + this.bttnDelete.Text = "delete"; + this.bttnDelete.Click += new System.EventHandler(this.bttnDelete_Click); + // // FrmArmyTree // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -194,8 +195,6 @@ private System.Windows.Forms.ToolStripContainer toolStripContainer1; private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton bttnEdit; - private System.Windows.Forms.ToolStripButton bttnDelete; private System.Windows.Forms.TreeView treeView; private System.Windows.Forms.ContextMenuStrip contextMenuStrip; private Windows.Forms.IBBToolStripMenuItem miEditArmy; @@ -203,5 +202,7 @@ private Windows.Forms.IBBToolStripMenuItem miDeleteUnit; private Windows.Forms.IBBToolStripMenuItem miAddUnit; private Windows.Forms.IBBToolStripButton bttnAdd; + private Windows.Forms.IBBToolStripButton bttnEdit; + private Windows.Forms.IBBToolStripButton bttnDelete; } } \ No newline at end of file diff -r c06d0865ff27 -r f7b0cdb54c9c translations/en.translation --- a/translations/en.translation Sat Jan 21 11:36:23 2012 +0000 +++ b/translations/en.translation Sat Jan 21 11:56:44 2012 +0000 @@ -26,8 +26,12 @@ Undo Redo Army Tree + &Add unit + &Delete unit + &Edit &Delete unit &Edit unit + &Add unit Open Army Save Army WarFoundry Army Files (*.army)