User Tools

Site Tools


translation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
translation [2012/06/03 18:56] – [How to translate romcenter to your language ?] romcentertranslation [2021/02/28 18:35] (current) romcenter
Line 1: Line 1:
 ====== How to translate romcenter to your language ? ====== ====== How to translate romcenter to your language ? ======
  
-{{:translate1.png?200|}}+First, check in romcenter if your transation is not yet available.
  
-First, [[http://www.romcenter.com/forum/viewforum.php?f=5|go to the forum]] and check if your transation is not yet available.+====== Translation ======
  
-All required files are included in romcenter distribution in "romcenter/languages/template" folder.+Romcenter strings are stored in a resource file located in romcenter\resx folder. You can edit existing files or create a new one by copying an romcenter.resx and adding your language code.
  
-:!: Romcenter uses <country>.mo files located in "romcenter/languages/"+===== Translating strings =====
  
-To change the current language in romcenter, go to "romcenter/languages/", and rename the language you want to <your_country>.mo.+With a text editor 
 +With a resource editor: There are several free resx editors. I recommend using the standalone version of (https://github.com/tom-englert/ResXResourceManager/releases)It can do an automatic pre-translation using google translate 
 +Other tool: Zeta Resource Editor
  
-Ex: To use German language in france, save fr.mo to fr-bak.mo, and rename de.mo to fr.mo.+===== Compiling new translation resources =====
  
-To use english language (default)rename \languages\ to \languages_bak\. +Once the translation is doneyou must compile the resx file to a satellite assembly for romcenter to use it.
-===== Prepare environment =====+
  
-  * Install [[http://www.poedit.net|poedit (freeware)]]+      .resx -> .resources -> .dll
  
-===== Locate <country>.po file and open it =====+To compile resx file, resgen.exe and al.exe are used (provided in romcenter Resx folder). 
 +Commands to generate a satellite assembly (.dll) from a string resource file (.resx):
  
-If you want to update an existing <country_code>.po file: +(Replace the XX by your language code (see here:http://www.csharp-examples.net/culture-names/))
-  * Locate it and open it +
-  * Go to "Catalog/update from pot" +
-  * Select templatexxx.pot and click 'ok'. This will sync the strings with the latest romcenter release.+
  
-If you want to create a new translation: +  resgen.exe /useSourcePath /compile romcenter.XX.resx,RomCenter.Localization.Resx.romcenter.XX.resources
-  * Copy templatexxx.pot to <contry_code>.po (find the country code in the code.txt file) +
-  * Open <contry_code>.po+
  
-{{:poedit.png?200|}} +  al.exe /culture:XX /out:RomCenter.Localization.resources.dll /platform:AnyCPU /template:..\RomCenter.Localization.dll /embed:RomCenter.Localization.Resx.romcenter.XX.resources
-  +
-===== Translate ===== +
-  * Fill the missing translations and check the other ones +
-  * Save the fileThis will produce a compiled file (.mo)+
  
-===== Test ===== +This will generate the assembly RomCenter.Localization.dll
-  * Copy this .mo in romcenter\languages\<contry_code>.mo (find the country code in the code.txt file)+
  
-{{:translate2.png?200|}}+===== Testing translation =====
  
-  Run romcenter. Strings must now be translated. +  Copy this file into romcenter\XX\ 
-  * Verify all forms, menus and messages to see if it's correct. +  Run romcenter 
-  * Post the new file in the forum for distribution+  Go into File/options and change language     
  
- + Help and support: [[http://forum.romcenter.com]]
- Help and support: [[http://www.romcenter.com/forum/viewforum.php?f=5|Forum]]+
translation.txt · Last modified: 2021/02/28 18:35 by romcenter

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki