I18N.pl: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
m (add note about string files)
(fix link)
Line 28: Line 28:
Once the script is finished, it will replace as much hard-coded strings like "Silver Key" with string temlates like "#str_20000" and place these in a FM-specific dictionary. These dictionaries are put into a sep. PK4 file under the directory '''strings/fm/'''.  
Once the script is finished, it will replace as much hard-coded strings like "Silver Key" with string temlates like "#str_20000" and place these in a FM-specific dictionary. These dictionaries are put into a sep. PK4 file under the directory '''strings/fm/'''.  


See '''[[Internationalization#FM_specific_dictionaries|here]]''' for examples and how to translate these files.
See '''[[I18N - Translating Fan Missions|here]]''' for examples and how to translate these files.


== See also ==
== See also ==


* [[Internationalization]] - Main article
* [[Internationalization]] - Main article
* [[I18N - Translating Fan Missions|Translating Fan Missions]]
* [http://strawberryperl.com/ Strawberry Perl].
* [http://strawberryperl.com/ Strawberry Perl].
* [http://bloodgate.com/mirrors/tdm/pub/scripts/ The script itself]
* [http://bloodgate.com/mirrors/tdm/pub/scripts/ The script itself]


{{editing}}
{{editing}}

Revision as of 16:28, 21 October 2011

Introduction

The script fm_translate.pl separates the main FM data from all the texts and other assets that need to be changed in order for translation.

Requirements

Usage

On a console (a "DOS Window" under Windows):

perl fm_translate.pl --english fms/outpost/outpost.pk4 --french fms/avant_poste.pk4

The output packages will be created under output, as:

output/outpost.pk4
output/outpost_i18n.pk4

The FM dictionaries

Once the script is finished, it will replace as much hard-coded strings like "Silver Key" with string temlates like "#str_20000" and place these in a FM-specific dictionary. These dictionaries are put into a sep. PK4 file under the directory strings/fm/.

See here for examples and how to translate these files.

See also