Open main menu

Difference between revisions of "HOWTO-Translate ScummVM GUI"

(→‎Existing translations: Update status and add Spanish and Ukrainian translations to the list.)
Line 15: Line 15:
== Using the translation in ScummVM ==
== Using the translation in ScummVM ==


ScummVM does not use the po files directly. They need to be compiled in the application instead. To use or test your translation you will therefore need to compile ScummVM. This involves the following steps:
ScummVM does not use the po files directly. They need to be transformed into a ''translations.dat'' file instead. To use or test your translation you will therefore need regenerate that file. This involves the following steps:
# Get ScummVM source code if you don't already have it.
# Get ScummVM source code if you don't already have it.
# Make your translation available
# Make your translation available
##move or copy your po file into the scummvm source code po/ directory.
##move or copy your po file into the scummvm source code po/ directory.
## run "''make update-translations''" (you need to have [http://www.perl.org/ perl] and [http://www.gnu.org/software/gettext/ gettext] installed to do this).
## run "''make translations-dat''" (you need to have [http://www.perl.org/ perl] installed to do this).
# [[Compiling_ScummVM|Compile ScummVM]] (with translation support, which is the default).
 
This will update the ''translations.dat'' file in gui/themes/. For ScummVM to find it you might have to copy it somewhere else (e.g. in the directory where the ScummVM executable resides).
 
You can also update the template files and all po files from the source code (to make sure the list of messages to translate is up to date). To do so, in the ScummVM source code directory type "''make update-translations''" (you need to have [http://www.perl.org/ perl] and [http://www.gnu.org/software/gettext/ gettext] installed to do this). This will also automatically regenerate the ''translations.dat'' file.


== Proposing your translation to the team ==
== Proposing your translation to the team ==
TrustedUser
2,147

edits