changeset 105:e598c0d2584d

Re #203: Translate WarFoundry * Fix translation names (beginning of broken translations should have been "equipNumber" not equipAmount" * Follow convention of default text being lower case * Add Snowblizz's Swedish translation to the project - will be available in next version (although users will need to manually change the language for now)
author IBBoard <dev@ibboard.co.uk>
date Sat, 28 Nov 2009 15:22:57 +0000
parents c5e5a79edb06
children 3fae39208d06
files IBBoard.WarFoundry.GUI.WinForms.csproj UI/EquipmentAmountControl.cs translations/en.translation translations/se.translation
diffstat 4 files changed, 111 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/IBBoard.WarFoundry.GUI.WinForms.csproj	Sun Nov 22 21:02:09 2009 +0000
+++ b/IBBoard.WarFoundry.GUI.WinForms.csproj	Sat Nov 28 15:22:57 2009 +0000
@@ -199,6 +199,9 @@
     <None Include="translations\en.translation">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
+    <None Include="translations\se.translation">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </None>
     <None Include="WarFoundry.exe.log4net">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
--- a/UI/EquipmentAmountControl.cs	Sun Nov 22 21:02:09 2009 +0000
+++ b/UI/EquipmentAmountControl.cs	Sat Nov 28 15:22:57 2009 +0000
@@ -276,8 +276,8 @@
 
 			if (decEquipAmount > percentage.Maximum)
 			{
-				string percentageTooLarge = Translation.GetTranslation("equipPercentageTooLarge", "The current percentage ({0}%) was larger than the maximum for the equipment item ({1}%). The maximum value will be used instead.", equipAmount, percentage.Maximum);
-				string percentageTooLargeTitle = Translation.GetTranslation("equipPercentageTooLargeTitle", "Equipment percentage too large");
+				string percentageTooLarge = Translation.GetTranslation("equipPercentageTooLarge", "the current percentage ({0}%) was larger than the maximum for the equipment item ({1}%) - the maximum value will be used instead", equipAmount, percentage.Maximum);
+				string percentageTooLargeTitle = Translation.GetTranslation("equipPercentageTooLargeTitle", "equipment percentage too large");
 				MessageBox.Show(ParentForm, percentageTooLarge, percentageTooLargeTitle);
 				decEquipAmount = percentage.Maximum;
 				log.Debug("Limited equipment amount to " + decEquipAmount);
@@ -285,8 +285,8 @@
 			}
 			else if (decEquipAmount < percentage.Minimum)
 			{
-				string percentageTooSmall = Translation.GetTranslation("equipPercentageTooSmall", "The current percentage ({0}%) was smaller than the minimum for the equipment item ({1}%). The minimum value will be used instead.", equipAmount, percentage.Minimum);
-				string percentageTooSmallTitle = Translation.GetTranslation("equipPercentageTooSmallTitle", "Equipment percentage too small");
+				string percentageTooSmall = Translation.GetTranslation("equipPercentageTooSmall", "the current percentage ({0}%) was smaller than the minimum for the equipment item ({1}%) - the minimum value will be used instead", equipAmount, percentage.Minimum);
+				string percentageTooSmallTitle = Translation.GetTranslation("equipPercentageTooSmallTitle", "equipment percentage too small");
 				MessageBox.Show(ParentForm, percentageTooSmall, percentageTooSmallTitle);
 				decEquipAmount = percentage.Minimum;
 				log.Debug("Limited equipment amount to " + decEquipAmount);
@@ -303,8 +303,8 @@
 
 			if (equipAmount > numeric.Maximum)
 			{
-				string amountTooLarge = Translation.GetTranslation("equipNumberTooLarge", "The current amount ({0}) was larger than the maximum for the equipment item ({1}). The maximum value will be used instead.", equipAmount, numeric.Maximum);
-				string amountTooLargeTitle = Translation.GetTranslation("equipNumberTooLargeTitle", "Equipment amount too large");
+				string amountTooLarge = Translation.GetTranslation("equipNumberTooLarge", "the current amount ({0}) was larger than the maximum for the equipment item ({1}) - the maximum value will be used instead", equipAmount, numeric.Maximum);
+				string amountTooLargeTitle = Translation.GetTranslation("equipNumberTooLargeTitle", "equipment amount too large");
 				MessageBox.Show(ParentForm, amountTooLarge, amountTooLargeTitle);
 				equipAmount = (int)numeric.Maximum;
 				log.Debug("Limited equipment amount to " + equipAmount);
@@ -312,8 +312,8 @@
 			}
 			else if (equipAmount < numeric.Minimum)
 			{
-				string amountTooSmall = Translation.GetTranslation("equipNumberTooSmall", "The current amount ({0}) was smaller than the minimum for the equipment item ({1}). The minimum value will be used instead.", equipAmount, numeric.Minimum);
-				string amountTooSmallTitle = Translation.GetTranslation("equipNumberTooSmallTitle", "Equipment amount too small");
+				string amountTooSmall = Translation.GetTranslation("equipNumberTooSmall", "the current amount ({0}) was smaller than the minimum for the equipment item ({1}) - the minimum value will be used instead", equipAmount, numeric.Minimum);
+				string amountTooSmallTitle = Translation.GetTranslation("equipNumberTooSmallTitle", "equipment amount too small");
 				MessageBox.Show(ParentForm, amountTooSmall, amountTooSmallTitle);
 				equipAmount = (int) numeric.Minimum;
 				log.Debug("Limited equipment amount to " + equipAmount);
--- a/translations/en.translation	Sun Nov 22 21:02:09 2009 +0000
+++ b/translations/en.translation	Sat Nov 28 15:22:57 2009 +0000
@@ -45,10 +45,10 @@
 	<translation id="equipPercentageTooLargeTitle">Equipment percentage too large</translation>
 	<translation id="equipPercentageTooSmall">The current percentage ({0}%) was smaller than the minimum for the equipment item ({1}%). The minimum value will be used instead.</translation>
 	<translation id="equipPercentageTooSmallTitle">Equipment percentage too small</translation>
-	<translation id="equipAmountTooLarge">The current amount ({0}) was larger than the maximum for the equipment item ({1}). The maximum value will be used instead.</translation>
-	<translation id="equipAmountTooLargeTitle">Equipment amount too large</translation>
-	<translation id="equipAmountTooSmall">The current amount ({0}) was smaller than the minimum for the equipment item ({1}). The minimum value will be used instead.</translation>
-	<translation id="equipAmountTooSmallTitle">Equipment amount too small</translation>
+	<translation id="equipNumberTooLarge">The current amount ({0}) was larger than the maximum for the equipment item ({1}). The maximum value will be used instead.</translation>
+	<translation id="equipNumberTooLargeTitle">Equipment amount too large</translation>
+	<translation id="equipNumberTooSmall">The current amount ({0}) was smaller than the minimum for the equipment item ({1}). The minimum value will be used instead.</translation>
+	<translation id="equipNumberTooSmallTitle">Equipment amount too small</translation>
 	<translation id="FrmEditUnitEquipment">Edit {0} for {1}</translation>
 	<translation id="FrmAbout">About WarFoundry</translation>
 	<translation id="lblVersion">Version: {0}</translation>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/translations/se.translation	Sat Nov 28 15:22:57 2009 +0000
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<translations xmlns="http://ibboard.co.uk/translation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" lang="en">
+	<translation id="menuFile">&amp;Arkiv</translation>
+	<translation id="menuEdit">&amp;Redigera</translation>
+	<translation id="menuHelp">&amp;Hjälp</translation>
+	<translation id="miNewArmy">&amp;Skapa ny armé</translation>
+	<translation id="miOpenArmy">&amp;Öppna sparad armé</translation>
+	<translation id="miSaveArmy">&amp;Spara armé</translation>
+	<translation id="miSaveArmyAs">Spara armé &amp;som...</translation>
+	<translation id="miExportArmyAs">&amp;Exportera armé</translation>
+	<translation id="miExportArmyAsBasicHTML">Normal HTML</translation>
+	<translation id="miCloseArmy">&amp;Stäng armé</translation>
+	<translation id="miReloadFiles">&amp;Läs in filer på nytt</translation>
+	<translation id="miExit">A&amp;vsluta</translation>
+	<translation id="miUndo">&amp;Återställ</translation>
+	<translation id="miRedo">&amp;Gör om</translation>
+	<translation id="miAbout">&amp;Om</translation>
+	<translation id="bttnOkay">OK</translation>
+	<translation id="bttnCancel">Avbryt</translation>
+	<translation id="bttnNewArmy">Skapa ny armé</translation>
+	<translation id="bttnOpenArmy">Öppna sparad armé</translation>
+	<translation id="bttnSaveArmy">Spara armé</translation>
+	<translation id="ArmyTree">Arméöversikt</translation>
+	<translation id="miDeleteUnit">&amp;Ta bort enhet</translation>
+	<translation id="miEditUnit">&amp;Redigera enhet</translation>
+	<translation id="openArmyDialog">Öppna armé</translation>
+	<translation id="saveArmyDialog">Spara armé</translation>
+	<translation id="armyFileFilter">WarFoundry arméfiler (*.army)</translation>
+	<translation id="statusPanelPoints">{0} poäng / {1} poäng</translation>
+	<translation id="defaultUnitName">Enhet av {0} {1}</translation>
+	<translation id="FrmNewArmy">Skapa ny armé</translation>
+	<translation id="lblGameSystem">Spelsystem:</translation>
+	<translation id="lblRaceList">Raser:</translation>
+	<translation id="lblArmyName">Arménamn:</translation>
+	<translation id="lblArmySize">Armé torlek:</translation>
+	<translation id="bttnSelectRace">Skapa armé</translation>
+	<translation id="FrmNewUnit">Lägg till en ny {0}</translation>
+	<translation id="lblUnitList">Enheter:</translation>
+	<translation id="bttnSelectUnit">Skapa enhet</translation>
+	<translation id="FrmNewUnitEquipment">Ny utrustning för {0}</translation>
+	<translation id="lblAmount">Antal:</translation>
+	<translation id="lblItem">Utrustning:</translation>
+	<translation id="rbEquipAll">Utrusta alla</translation>
+	<translation id="equipPercentageTooLarge">Den numvarande procenten ({0}%) är större än det maximala tillåtna värdet för utrustningen ({1}%). Det maximala värdet kommer att användas istället.</translation>
+	<translation id="equipPercentageTooLargeTitle">Utrustningsprocenten för stor</translation>
+	<translation id="equipPercentageTooSmall"> Den numvarande procenten ({0}%) är mindre än det tillåtna minimivärdet för utrustningen ({1}%). Minimivärdet kommer att användas istället.</translation>
+	<translation id="equipPercentageTooSmallTitle">Utrustningsprocenten för liten</translation>
+	<translation id="equipNumberTooLarge">Det nuvarande antalet ({0}) är större än det maximalt tillåtna antalet för utrustningen ({1}). Det maximala antalet kommer att användas istället.</translation>
+	<translation id="equipNumberTooLargeTitle">Utrustningens antal för stort</translation>
+	<translation id="equipNumberTooSmall"> Det nuvarande antalet ({0}) är mindre än det tillåtna minimiantalet för utrustningen({1}). Minimivärdet kommer att användas istället.</translation>
+	<translation id="equipNumberTooSmallTitle">Utrustningens antal för litet</translation>
+	<translation id="FrmEditUnitEquipment">Ändra {0} för {1}</translation>
+	<translation id="FrmAbout">Om WarFoundry</translation>
+	<translation id="lblVersion">Version: {0}</translation>
+	<translation id="lblDevelopers">Utvecklare:</translation>
+	<translation id="lblThanks">Tack till:</translation>
+	<translation id="FrmUnit">{0}</translation>
+	<translation id="lblUnitSize">Storlek:</translation>
+	<translation id="lblEquip">Utrustning:</translation>
+	<translation id="bttnAddWeapon">Lägg till</translation>
+	<translation id="lblAbilities">Förmågor:</translation>
+	<translation id="lblNotes">Anteckningar:</translation>
+	<translation id="bttnRemoveWeapon">Ta bort</translation>
+	<translation id="bttnReplaceWeapon">Ersätt</translation>
+	<translation id="bttnEditWeapon">Redigera</translation>
+	<translation id="equipmentAmountWithCost">{0} ({1} för {2} poäng var)</translation>
+	<translation id="equipmentAmountWithZeroCost">{0} ({1} gratis)</translation>
+	<translation id="equipmentChoiceAmountAll">För alla ({1})</translation>
+	<translation id="equipmentChoiceAmountPercentage">För {0}% ({1})</translation>
+	<translation id="equipmentChoiceAmountNumber">{0}</translation>
+	<translation id="InvalidRaceFileBoxTitle">Ogiltig rasfil</translation>
+	<translation id="InvalidArmyFileBoxTitle">Ogiltig arméfil</translation>
+	<translation id="SaveChangesQuestion">Armén "{0}" har ändrats.
+Vill du spara ändringarna innan armén stängs?</translation>
+	<translation id="SaveChangesTitle">Osparade förändringar</translation>
+	<translation id="SaveFailed">WarFoundry kunde inte spara filen. Var god och kontrollera loggen för mera detaljer.</translation>
+	<translation id="SaveFailedTitle">Filen kunde inte sparas</translation>
+	<translation id="armyHtmlExportEquipAmountAll">alla ({1})</translation>
+	<translation id="armyHtmlExportEquipAmountPercentage">{0}% ({1})</translation>
+	<translation id="armyHtmlExportEquipAmountRatio">{0} för {1}</translation>
+	<translation id="equipmentAmountAll">alla ({1})</translation>
+	<translation id="equipmentAmountPercentage">{0}% ({1})</translation>
+	<translation id="equipmentAmountNumber">{0}</translation>
+	<translation id="setEquipmentAmountCommandDescription">Ändra {0} amount för {1} till {2}</translation>
+	<translation id="setEquipmentAmountCommandUndoDescription">Ändra {0} amount för {1} till {2}</translation>
+	<translation id="replaceUnitEquipmentCommandDescription">Ersätt {0} med {1} för {2}</translation>
+	<translation id="replaceUnitEquipmentCommandUndoDescription">Ersätt {0} med {1} för {2}</translation>
+	<translation id="createAndAddUnitCommandDescription">Lägg till enhet av {0}</translation>
+	<translation id="createAndAddUnitCommandUndoDescription">Ta bort enhet av {0}</translation>
+	<translation id="removeUnitCommandDescription">Ta bort {0}</translation>
+	<translation id="removeUnitCommandUndoDescription">Lägg till på nytt {0}</translation>
+	<translation id="setUnitNameCommandDescription">Byt namn från "{0}" till "{1}"</translation>
+	<translation id="setUnitNameCommandUndoDescription">Byt namn från "{0}" till "{1}"</translation>
+	<translation id="setUnitSizeCommandDescription">Ändra storleken på {0} till {1}</translation>
+	<translation id="setUnitSizeCommandUndoDescription"> Ändra storleken på {0} till {1}</translation>
+</translations>