User Tools

Site Tools


translation

This is an old revision of the document!


How to translate romcenter to your language ?

First, check in romcenter if your transation is not yet available.

Translation

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.

Translating strings

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

Compiling new translation resources

Once the translation is done, you must compile the resx file to a satellite assembly for romcenter to use it.

    .resx --(resgen.exe)-> .resources --(al.exe)-> .dll

Commands to generate a satellite assembly from a string resource file:

Replace the XX by your language code (see here:http://www.csharp-examples.net/culture-names/)

resgen.exe /useSourcePath /compile romcenter.XX.resx,RomCenter.Localization.Resx.romcenter.XX.resources
al.exe /culture:XX /out:RomCenter.Localization.resources.dll /platform:AnyCPU /template:..\RomCenter.Localization.dll /embed:RomCenter.Localization.Resx.romcenter.XX.resources

This will generate the assembly RomCenter.Localization.dll

Testing translation

Copy this file into romcenter\XX\
Run romcenter
Go into File/options and change language.      

Help and support: http://forum.romcenter.com

translation.1533588657.txt.gz · Last modified: 2018/08/06 22:50 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