OR Localization
#61
Posted 21 February 2014 - 11:34 PM
In the header there was UTF-8, I downloaded the file again and the problem disappear...
Thank you Peter for extending the ORTS.pot with the key command descriptions!
#62
Posted 22 February 2014 - 12:04 AM
#63
Posted 22 February 2014 - 06:10 AM
#64
Posted 22 February 2014 - 06:36 AM
Cheers, Markus
#65
Posted 22 February 2014 - 06:44 AM
#66
Posted 22 February 2014 - 07:57 AM
Csantucci, on 22 February 2014 - 06:44 AM, said:
Well it hasn't been updated.
Most of the time, the translators (who don't have Visual C# Express) will not have to care about the compilation (if they don't need to test the translations).
Now, the compilation is done automatically each time Open Rails is compiled.
So, the commands in the manual are no longer used by developers.
#67
Posted 22 February 2014 - 08:03 AM
Cheers, Markus
#68
Posted 22 February 2014 - 10:10 AM
Launch POedit and disable the generation of MO files (they are useless for Open Rails).
Open the File >> Preferences menu.
In Editor, disable “Automatically compile .mo file on save”.
With POEdit, click on “Create new translation”.
Select the POT model (e.g. start with menu.pot) . It's located in the downloaded Open Rails pack at : Source\Locales
Sometimes, there are errors when you load the model. Don't care.
Select the language of your translation file.
Save the initialized PO file.
You can now translate the strings with POEdit.
In order to be a lot quicker, you can:
Go to the next sentence: Ctrl + Enter.
Copy the source text: Ctrl + B.
Save your modifications (your .po file is now complete).
Repeat this for all .pot files.
Send all the generated .po file to Peter (gpz).
Done
Peter will do what else is needed to insert the new language in the package, if he's still willing to to that ;)
I hope I was correct and complete.
#69
Posted 22 February 2014 - 10:26 AM
But if you want to test it create in the Program directory a batch file like this:
..\Source\3rdPartyLibs\GNU.Gettext.Msgfmt.exe -l it -r Menu -d .\ -L GNU.Gettext.dll ..\Source\Locales\Menu\it.po ..\Source\3rdPartyLibs\GNU.Gettext.Msgfmt.exe -l it -r RunActivity -d .\ -L GNU.Gettext.dll ..\Source\Locales\RunActivity\it.po ..\Source\3rdPartyLibs\GNU.Gettext.Msgfmt.exe -l it -r ORTS -d .\ -L GNU.Gettext.dll ..\Source\Locales\ORTS\it.po
of course change all the occurences of 'it' with the iso code of your language.
Running this script you create the dlls for your language; leaving 'System' in the language selection all translated string will appear in the program. Then send the .po files to Peter ;)
#70
Posted 22 February 2014 - 10:34 AM
Cheers, and ;) for the detailed explanation!
Markus
PS: Bookmarked this thread :)