Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
changeset 138:18d607b0249b
Re #203: Translate to multiple languages
* Add French translation from Dreadaxe
Re #88: Complete initial WinForms UI
* Resize new army form and text widgets on unit form to allow space for longer French translations
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 06 Apr 2010 13:13:24 +0000 |
parents | ce63500e0ec1 |
children | b3eec7735006 |
files | FrmNewArmy.cs FrmUnit.cs IBBoard.WarFoundry.GUI.WinForms.csproj translations/fr.translation |
diffstat | 4 files changed, 138 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/FrmNewArmy.cs Sat Apr 03 20:06:33 2010 +0000 +++ b/FrmNewArmy.cs Tue Apr 06 13:13:24 2010 +0000 @@ -107,10 +107,12 @@ // // lstRaces // + this.lstRaces.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.lstRaces.DisplayMember = "Name"; - this.lstRaces.Location = new System.Drawing.Point(110, 33); + this.lstRaces.Location = new System.Drawing.Point(141, 33); this.lstRaces.Name = "lstRaces"; - this.lstRaces.Size = new System.Drawing.Size(248, 121); + this.lstRaces.Size = new System.Drawing.Size(265, 121); this.lstRaces.TabIndex = 7; this.lstRaces.SelectedIndexChanged += new System.EventHandler(this.lstRaces_SelectedIndexChanged); // @@ -129,18 +131,20 @@ // this.lblRaceList.Location = new System.Drawing.Point(12, 33); this.lblRaceList.Name = "lblRaceList"; - this.lblRaceList.Size = new System.Drawing.Size(92, 80); + this.lblRaceList.Size = new System.Drawing.Size(123, 80); this.lblRaceList.TabIndex = 5; this.lblRaceList.Text = "race list"; this.lblRaceList.TextAlign = System.Drawing.ContentAlignment.TopRight; // // bttnSelectRace // + this.bttnSelectRace.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.bttnSelectRace.Enabled = false; this.bttnSelectRace.FlatStyle = System.Windows.Forms.FlatStyle.System; this.bttnSelectRace.Location = new System.Drawing.Point(254, 231); this.bttnSelectRace.Name = "bttnSelectRace"; - this.bttnSelectRace.Size = new System.Drawing.Size(104, 24); + this.bttnSelectRace.Size = new System.Drawing.Size(152, 24); this.bttnSelectRace.TabIndex = 4; this.bttnSelectRace.Text = "create army"; this.bttnSelectRace.Click += new System.EventHandler(this.bttnSelectRace_Click); @@ -149,16 +153,18 @@ // this.lblArmyName.Location = new System.Drawing.Point(12, 163); this.lblArmyName.Name = "lblArmyName"; - this.lblArmyName.Size = new System.Drawing.Size(92, 17); + this.lblArmyName.Size = new System.Drawing.Size(123, 17); this.lblArmyName.TabIndex = 8; this.lblArmyName.Text = "army name"; this.lblArmyName.TextAlign = System.Drawing.ContentAlignment.TopRight; // // txtArmyName // - this.txtArmyName.Location = new System.Drawing.Point(110, 160); + this.txtArmyName.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtArmyName.Location = new System.Drawing.Point(141, 160); this.txtArmyName.Name = "txtArmyName"; - this.txtArmyName.Size = new System.Drawing.Size(248, 20); + this.txtArmyName.Size = new System.Drawing.Size(265, 20); this.txtArmyName.TabIndex = 9; this.txtArmyName.TextChanged += new System.EventHandler(this.txtArmyName_TextChanged); // @@ -166,7 +172,7 @@ // this.lblArmySize.Location = new System.Drawing.Point(12, 188); this.lblArmySize.Name = "lblArmySize"; - this.lblArmySize.Size = new System.Drawing.Size(92, 18); + this.lblArmySize.Size = new System.Drawing.Size(123, 18); this.lblArmySize.TabIndex = 10; this.lblArmySize.Text = "army size"; this.lblArmySize.TextAlign = System.Drawing.ContentAlignment.TopRight; @@ -178,7 +184,7 @@ 0, 0, 0}); - this.armySize.Location = new System.Drawing.Point(110, 186); + this.armySize.Location = new System.Drawing.Point(141, 186); this.armySize.Maximum = new decimal(new int[] { 1000000, 0, @@ -198,27 +204,27 @@ // this.lblGameSystem.Location = new System.Drawing.Point(12, 9); this.lblGameSystem.Name = "lblGameSystem"; - this.lblGameSystem.Size = new System.Drawing.Size(92, 18); + this.lblGameSystem.Size = new System.Drawing.Size(123, 18); this.lblGameSystem.TabIndex = 12; this.lblGameSystem.Text = "game system"; this.lblGameSystem.TextAlign = System.Drawing.ContentAlignment.TopRight; // // gameSystems // + this.gameSystems.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.gameSystems.DisplayMember = "Name"; this.gameSystems.FormattingEnabled = true; - this.gameSystems.Location = new System.Drawing.Point(110, 6); + this.gameSystems.Location = new System.Drawing.Point(141, 6); this.gameSystems.Name = "gameSystems"; - this.gameSystems.Size = new System.Drawing.Size(248, 21); + this.gameSystems.Size = new System.Drawing.Size(265, 21); this.gameSystems.TabIndex = 13; this.gameSystems.SelectedValueChanged += new System.EventHandler(this.gameSystems_SelectedValueChanged); // // FrmNewArmy // - this.AcceptButton = this.bttnSelectRace; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); - this.CancelButton = this.bttnCancel; - this.ClientSize = new System.Drawing.Size(370, 267); + this.ClientSize = new System.Drawing.Size(418, 267); this.Controls.Add(this.gameSystems); this.Controls.Add(this.lblGameSystem); this.Controls.Add(this.armySize);
--- a/FrmUnit.cs Sat Apr 03 20:06:33 2010 +0000 +++ b/FrmUnit.cs Tue Apr 06 13:13:24 2010 +0000 @@ -249,9 +249,9 @@ // lblUnitSize // this.lblUnitSize.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.lblUnitSize.Location = new System.Drawing.Point(452, 8); + this.lblUnitSize.Location = new System.Drawing.Point(426, 8); this.lblUnitSize.Name = "lblUnitSize"; - this.lblUnitSize.Size = new System.Drawing.Size(72, 23); + this.lblUnitSize.Size = new System.Drawing.Size(98, 23); this.lblUnitSize.TabIndex = 0; this.lblUnitSize.Text = "unit size"; this.lblUnitSize.TextAlign = System.Drawing.ContentAlignment.TopRight; @@ -327,7 +327,7 @@ // this.lblPoints.Location = new System.Drawing.Point(358, 8); this.lblPoints.Name = "lblPoints"; - this.lblPoints.Size = new System.Drawing.Size(88, 21); + this.lblPoints.Size = new System.Drawing.Size(77, 21); this.lblPoints.TabIndex = 12; this.lblPoints.Text = "(points)"; //
--- a/IBBoard.WarFoundry.GUI.WinForms.csproj Sat Apr 03 20:06:33 2010 +0000 +++ b/IBBoard.WarFoundry.GUI.WinForms.csproj Tue Apr 06 13:13:24 2010 +0000 @@ -210,6 +210,9 @@ <None Include="translations\en.translation"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> + <None Include="translations\fr.translation"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </None> <None Include="translations\it.translation"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/translations/fr.translation Tue Apr 06 13:13:24 2010 +0000 @@ -0,0 +1,111 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<translations lang="en" xmlns="http://ibboard.co.uk/translation"> + <translation id="menuFile">&Fichier</translation> + <translation id="menuEdit">&Édition</translation> + <translation id="menuHelp">&Aide</translation> + <translation id="miNewArmy">&Créer une armée</translation> + <translation id="miOpenArmy">&Ouvrir une armée</translation> + <translation id="miSaveArmy">&Enregistrer une armée</translation> + <translation id="miSaveArmyAs">Enregistrer une armée sous…</translation> + <translation id="miExportArmyAs">&Exporter une armée</translation> + <translation id="miExportArmyAsBasicHTML">HTML Basic</translation> + <translation id="miCloseArmy">&Fermer une armée</translation> + <translation id="miReloadFiles">&Recharger les fichiers</translation> + <translation id="miExit">&Sortir</translation> + <translation id="miUndo">&Annuler</translation> + <translation id="miRedo">&Rétablir</translation> + <translation id="miAbout">&À propos</translation> + <translation id="bttnOkay">OK</translation> + <translation id="bttnCancel">Annuler</translation> + <translation id="bttnNewArmy">Créer une armée</translation> + <translation id="bttnOpenArmy">Ouvrir une armée</translation> + <translation id="bttnSaveArmy">Sauvegarder une armée</translation> + <translation id="bttnUndo">Annuler</translation> + <translation id="bttnRedo">Rétablir</translation> + <translation id="ArmyTree">Arborescence de l'armée</translation> + <translation id="miDeleteUnit">&Supprimer une unité</translation> + <translation id="miEditUnit">&Éditer une unité</translation> + <translation id="openArmyDialog">Ouvrir une armée</translation> + <translation id="saveArmyDialog">Sauvegarder une armée</translation> + <translation id="armyFileFilter">WarFoundry Army Files (*.army)</translation> + <translation id="statusPanelPoints">{0} pts / {1} pts</translation> + <translation id="statusPanelPointsToolTip">Nombre de point d'armée actuel</translation> + <translation id="defaultUnitName">Unité de {0} {1}</translation> + <translation id="FrmNewArmy">Créer une nouvelle armée</translation> + <translation id="lblGameSystem">Système de jeux :</translation> + <translation id="lblRaceList">Races :</translation> + <translation id="lblArmyName">Nom de l'armée :</translation> + <translation id="lblArmySize">Taille de l'armée :</translation> + <translation id="bttnSelectRace">Créer une armée</translation> + <translation id="FrmNewUnit">Ajouter un nouveau choix {0}</translation> + <translation id="lblUnitList">Types d'unité :</translation> + <translation id="bttnSelectUnit">Créer une unité</translation> + <translation id="FrmNewUnitEquipment">Nouvelle équipement pour {0}</translation> + <translation id="lblAmount">Quantité :</translation> + <translation id="lblItem">Équipement :</translation> + <translation id="rbEquipAll">Tout équiper</translation> + <translation id="equipPercentageTooLarge">Le pourcentage actuel ({0}%) est trop important par rapport au maximum d'équipement accordé ({1}%). La valeur maximum sera utilisée à la place.</translation> + <translation id="equipPercentageTooLargeTitle">Le pourcentage d'équipement est trop important</translation> + <translation id="equipPercentageTooSmall">Le pourcentage actuel ({0}%) est trop faible par rapport au minimum d'équipement demandé ({1}%). La valeur minimum sera utilisée à la place.</translation> + <translation id="equipPercentageTooSmallTitle">Pourcentage d'équipement trop petit</translation> + <translation id="equipNumberTooLarge">La valeur en point ({0}) est trop importante par rapport au maximum d'équipement accordé ({1}). La valeur maximum sera utilisée à la place.</translation> + <translation id="equipNumberTooLargeTitle">Pourcentage d'équipement trop petit</translation> + <translation id="equipNumberTooSmall">La valeur en point ({0}) est trop faible par rapport au minimum d'équipement demandé ({1}). La valeur minimum sera utilisée à la place.</translation> + <translation id="equipNumberTooSmallTitle">Nombre de point d'équipement trop faible</translation> + <translation id="FrmEditUnitEquipment">Édition {0} pour {1}</translation> + <translation id="FrmAbout">À propos de WarFoundry</translation> + <translation id="lblVersion">Version : {0}</translation> + <translation id="lblDevelopers">Développeurs :</translation> + <translation id="lblThanks">Remerciement :</translation> + <translation id="FrmUnit">{0}</translation> + <translation id="lblUnitSize">Taille d'unité :</translation> + <translation id="lblEquip">Équipement :</translation> + <translation id="bttnAddWeapon">Ajouter</translation> + <translation id="lblAbilities">Capacités :</translation> + <translation id="lblNotes">Notes :</translation> + <translation id="bttnRemoveWeapon">Supprimer</translation> + <translation id="bttnReplaceWeapon">Remplacer</translation> + <translation id="bttnEditWeapon">Éditer</translation> + <translation id="equipmentAmountWithCost">{0} ({1} à {2} pts chacun)</translation> + <translation id="equipmentAmountWithZeroCost">{0} ({1} gratuit)</translation> + <translation id="equipmentChoiceAmountAll">pour ({1})</translation> + <translation id="equipmentChoiceAmountPercentage">pour {0}% ({1})</translation> + <translation id="equipmentChoiceAmountNumber">{0}</translation> + <translation id="InvalidRaceFileBoxTitle">Fichier de race invalide</translation> + <translation id="InvalidArmyFileBoxTitle">Fichier d'armée invalide</translation> + <translation id="SaveChangesQuestion">L'armée "{0}" a été modifiée. Sauvegarder les changements avant de fermer ?</translation> + <translation id="SaveChangesTitle">Changements non-sauvegardés</translation> + <translation id="SaveFailed">WarFoundry ne peut pas sauvegarder le fichier. Veillez vérifier le log pour plus d'informations</translation> + <translation id="SaveFailedTitle">Échec de la sauvegarde du fichier</translation> + <translation id="armyHtmlOutputBodyHeader">{0} - {1} pts</translation> + <translation id="armyHtmlOutputTableHeaderUnitName">Nom</translation> + <translation id="armyHtmlOutputTableHeaderUnitNotes">Notes</translation> + <translation id="armyHtmlOutputTableHeaderUnitPoints">Points</translation> + <translation id="armyHtmlExportEquipAmountAll">tout ({1})</translation> + <translation id="armyHtmlExportEquipAmountPercentage">{0}% ({1})</translation> + <translation id="armyHtmlExportEquipAmountNumber">{0}</translation> + <translation id="armyHtmlExportEquipAmountRatio">{0} pour {1}</translation> + <translation id="equipmentAmountAll">tout ({1})</translation> + <translation id="equipmentAmountPercentage">{0}% ({1})</translation> + <translation id="equipmentAmountNumber">{0}</translation> + <translation id="setEquipmentAmountCommandDescription">Fixer {0} la quantité {1} par {2}</translation> + <translation id="setEquipmentAmountCommandUndoDescription">Fixer {0} la quantité {1} par {2}</translation> + <translation id="replaceUnitEquipmentCommandDescription">Remplacer {0} de {1} par {2}</translation> + <translation id="replaceUnitEquipmentCommandUndoDescription">Remplacer {0} de {1} par {2}</translation> + <translation id="createAndAddUnitCommandDescription">Ajouter une unité de {0}</translation> + <translation id="createAndAddUnitCommandUndoDescription">Supprimer une unité de {0}</translation> + <translation id="removeUnitCommandDescription">Supprimer {0}</translation> + <translation id="removeUnitCommandUndoDescription">Rajouter {0}</translation> + <translation id="setUnitNameCommandDescription">Renommer "{0}" par "{1}"</translation> + <translation id="setUnitNameCommandUndoDescription">Renommer "{0}" par "{1}"</translation> + <translation id="setUnitSizeCommandDescription">Changer la taille de {0} par {1}</translation> + <translation id="setUnitSizeCommandUndoDescription">Changer la taille {0} par {1}</translation> + <translation id="requirementAND">{0}; et {1}</translation> + <translation id="requirementOR">{0}; ou {1}</translation> + <translation id="requirementUnitExcludes">{0} peut être sélectionné si aucun des objets suivants ne sont selectionnés : {1}</translation> + <translation id="requirementUnitMaxNumber">{1} peut être sélectionné {0} fois</translation> + <translation id="requirementUnitMinNumber">{1} doit être sélectionné au moins {0} fois</translation> + <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> +</translations> \ No newline at end of file