Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
changeset 100:23b1c3bdc525
Re #308: Make GTK# UI translatable
* Add more missing translations (English versions) to French translation file
* Change name of "Basic HTML export" to match WinForms translation
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 16 Jan 2011 20:01:21 +0000 |
parents | 8777e4f64d8e |
children | cfd2d9f490bc |
files | gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.cs gtk-gui/gui.stetic translations/fr.translation |
diffstat | 3 files changed, 13 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.cs Sun Jan 16 19:50:48 2011 +0000 +++ b/gtk-gui/IBBoard.WarFoundry.GUI.GTK.FrmMainWindow.cs Sun Jan 16 20:01:21 2011 +0000 @@ -27,7 +27,7 @@ private global::Gtk.Action goDown; private global::Gtk.Action add; private global::Gtk.Action miExportArmyAs; - private global::Gtk.Action miExportAsBasicHtml; + private global::Gtk.Action miExportArmyAsBasicHTML; private global::Gtk.Action miPreferences; private global::Gtk.VBox vbox1; private global::Gtk.MenuBar menubar1; @@ -112,9 +112,9 @@ this.miExportArmyAs.Sensitive = false; this.miExportArmyAs.ShortLabel = global::Mono.Unix.Catalog.GetString("Export army as..."); w1.Add(this.miExportArmyAs, null); - this.miExportAsBasicHtml = new global::Gtk.Action("miExportAsBasicHtml", global::Mono.Unix.Catalog.GetString("Basic HTML"), null, null); - this.miExportAsBasicHtml.ShortLabel = global::Mono.Unix.Catalog.GetString("Basic HTML"); - w1.Add(this.miExportAsBasicHtml, null); + this.miExportArmyAsBasicHTML = new global::Gtk.Action("miExportArmyAsBasicHTML", global::Mono.Unix.Catalog.GetString("Basic HTML"), null, null); + this.miExportArmyAsBasicHTML.ShortLabel = global::Mono.Unix.Catalog.GetString("Basic HTML"); + w1.Add(this.miExportArmyAsBasicHTML, null); this.miPreferences = new global::Gtk.Action("miPreferences", global::Mono.Unix.Catalog.GetString("preferences"), null, "gtk-preferences"); this.miPreferences.ShortLabel = global::Mono.Unix.Catalog.GetString("preferences"); w1.Add(this.miPreferences, null); @@ -127,7 +127,7 @@ this.vbox1 = new global::Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild - this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='menuFile' action='menuFile'><menuitem name='miNewArmy' action='miNewArmy'/><menuitem name='miOpenArmy' action='miOpenArmy'/><menuitem name='miSaveArmy' action='miSaveArmy'/><menuitem name='miSaveArmyAs' action='miSaveArmyAs'/><menu name='miExportArmyAs' action='miExportArmyAs'><menuitem name='miExportAsBasicHtml' action='miExportAsBasicHtml'/></menu><menuitem name='miCloseArmy' action='miCloseArmy'/><separator/><menuitem name='miReloadFiles' action='miReloadFiles'/><separator/><menuitem name='miExit' action='miExit'/></menu><menu name='menuEdit' action='menuEdit'><menuitem name='miUndo' action='miUndo'/><menuitem name='miRedo' action='miRedo'/><separator/><menuitem name='miPreferences' action='miPreferences'/></menu><menu name='menuHelp' action='menuHelp'><menuitem name='miAbout' action='miAbout'/></menu></menubar></ui>"); + this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='menuFile' action='menuFile'><menuitem name='miNewArmy' action='miNewArmy'/><menuitem name='miOpenArmy' action='miOpenArmy'/><menuitem name='miSaveArmy' action='miSaveArmy'/><menuitem name='miSaveArmyAs' action='miSaveArmyAs'/><menu name='miExportArmyAs' action='miExportArmyAs'><menuitem name='miExportArmyAsBasicHTML' action='miExportArmyAsBasicHTML'/></menu><menuitem name='miCloseArmy' action='miCloseArmy'/><separator/><menuitem name='miReloadFiles' action='miReloadFiles'/><separator/><menuitem name='miExit' action='miExit'/></menu><menu name='menuEdit' action='menuEdit'><menuitem name='miUndo' action='miUndo'/><menuitem name='miRedo' action='miRedo'/><separator/><menuitem name='miPreferences' action='miPreferences'/></menu><menu name='menuHelp' action='menuHelp'><menuitem name='miAbout' action='miAbout'/></menu></menubar></ui>"); this.menubar1 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); @@ -209,7 +209,7 @@ this.bttnSaveArmy.Activated += new global::System.EventHandler(this.saveTBButtonActivated); this.bttnUndo.Activated += new global::System.EventHandler(this.undoTBButtonActivated); this.bttnRedo.Activated += new global::System.EventHandler(this.redoTBButtonActivated); - this.miExportAsBasicHtml.Activated += new global::System.EventHandler(this.OnMiExportAsBasicHtmlActivated); + this.miExportArmyAsBasicHTML.Activated += new global::System.EventHandler(this.OnMiExportAsBasicHtmlActivated); this.miPreferences.Activated += new global::System.EventHandler(this.miPreferencesClicked); this.treeUnits.RowActivated += new global::Gtk.RowActivatedHandler(this.ArmyRowActivated); this.treeUnits.PopupMenu += new global::Gtk.PopupMenuHandler(this.OnTreeUnitsPopupMenu);
--- a/gtk-gui/gui.stetic Sun Jan 16 19:50:48 2011 +0000 +++ b/gtk-gui/gui.stetic Sun Jan 16 20:01:21 2011 +0000 @@ -152,7 +152,7 @@ <property name="ShortLabel" translatable="yes">Export army as...</property> <property name="StockId">gtk-convert</property> </action> - <action id="miExportAsBasicHtml"> + <action id="miExportArmyAsBasicHTML"> <property name="Type">Action</property> <property name="Label" translatable="yes">Basic HTML</property> <property name="ShortLabel" translatable="yes">Basic HTML</property> @@ -182,7 +182,7 @@ <node type="Menuitem" action="miSaveArmy" /> <node type="Menuitem" action="miSaveArmyAs" /> <node type="Menu" action="miExportArmyAs"> - <node type="Menuitem" action="miExportAsBasicHtml" /> + <node type="Menuitem" action="miExportArmyAsBasicHTML" /> </node> <node type="Menuitem" action="miCloseArmy" /> <node type="Separator" />
--- a/translations/fr.translation Sun Jan 16 19:50:48 2011 +0000 +++ b/translations/fr.translation Sun Jan 16 20:01:21 2011 +0000 @@ -109,7 +109,7 @@ <translation id="requirementUnitTypeAtLeastSingle">{1} {0}</translation> <translation id="requirementUnitTypeAtLeastJoiner">{0}, {1}</translation> <translation id="requirementUnitTypeAtLeast">{0} peut être sélectionné seulement si l'objet suivant est sélectionné : {1}</translation> -<!-- TODO: Check and/or correct the following additions --> +<!-- TODO: Check and correct or translate the following additions --> <translation id="IBBoard.WarFoundry.GUI.GTK.FrmPreferences">Préférences</translation> <translation id="languagePrefSection">Langue</translation> <translation id="lblLanguage">Langue:</translation> @@ -131,4 +131,8 @@ <translation id="OpenFailed">WarFoundry ne peut pas ouvrir le fichier. Veillez vérifier le log pour plus d'informations</translation> <translation id="OpenFailedTitle">Échec de la ouvrir du fichier</translation> <translation id="bttnSave">Sauvegarder</translation> +<translation id="exportBasicHtmlDialogTitle">Export army</translation> +<translation id="exportBasicHtmlCancel">Cancel</translation> +<translation id="exportBasicHtmlExport">Export</translation> +<translation id="exportBasicHtmlHtmlFilter">HTML pages (*.html)</translation> </translations>