HelpUsTranslate: Difference between revisions

No edit summary
John (talk | contribs)
No edit summary
Line 4: Line 4:
Remember to let us know which language, the incorrect phrase and the correct translation. A screenshot would be really helpful.
Remember to let us know which language, the incorrect phrase and the correct translation. A screenshot would be really helpful.


== Translation Tools ==
== Translation Tools (Available from Alpha 14) ==
If you would like to look a further under the hood, and maybe contribute your own fixes or translations, it can be useful to enable the translator tools.
If you would like to look a further under the hood, and maybe contribute your own fixes or translations, it can be useful to enable the translator tools.


=== Translator Assist ===
=== Translator Assist ===
In preferences.txt ( On Windows, %APPLOCALDATA%\Introversion\LastStarship\preferences.txt ) there is a preference called <code>TranslatorAssist</code> .  
In preferences.txt ( On Windows, <code>%APPLOCALDATA%\Introversion\LastStarship\preferences.txt</code> and <code>~/Library/Application Support/LastStarship/preferences.txt</code> on Mac OS X ) there is a preference called <code>TranslatorAssist</code> .  
[[File:Image.png|thumb]]
[[File:Image.png|thumb]]
 
[[File:LanguageKeys.png|thumb]]
 
If you set this true, it will enable two hot keys in the game:
If you set this true, it will enable two hot keys in the game:


* Pressing <code>Alt</code> will display the English text instead of the currently loaded language. Actually this is implemented by temporarily loading the English language strings and then, when <code>Alt</code> is released, reloading the language.
* Pressing <code>Alt</code> will display the English text instead of the currently loaded language. Actually this is implemented by temporarily loading the English language strings and then, when <code>Alt</code> is released, reloading the language.
* Pressing <code>Ctrl</code> will display the name of the key instead of the actual translated phrase (or English fallback).
* Pressing <code>Ctrl</code> will display the name of the key instead of the actual translated phrase (or English fallback).
*
 
=== Contributing Translations ===
In the same directory as preferences.txt, you will find a folder called <code>language</code>
 
It contains sub-directories for each language currently supported by the game.
 
* preferences.txt
* language
** french
*** original.csv
** german
*** original.csv
** spanish
*** original.csv
 
You will see that in each language directory there is a file called <code>original.csv</code> . These are the original translations bundled with the game.
 
'''DO NOT EDIT''' <code>original.csv</code>, '''because the game will overwrite them at every start'''.
 
Instead start a new file called '''language.csv'''
 
You can copy just the lines that you want to change from <code>original.csv</code> into <code>language.csv</code>, or you can copy all the whole contents of <code>original.csv</code>.
 
=== Example: Fixing an incorrect translation in French ===
 
=== Example: Starting a new Portuguese translation ===