Translation File Definition

Each translation file will be encoded using information from field languages - encoding and have following syntax:

Header:

################################################################################
#                                                                              #
#                Simutrans Scenario Specific Translation File                  #
#                           Scenario: <version_name>                           #
#                    Language: <language_id> <language_name>                   #
#                           Encoding: <lng_encoding>                           #
#                            Fonts: <font1>, <font2>                           #
#                         Date Created: <current_date>                         #
#                                                                              #
#                                   authors:                                   #
#                            <real_name> <user_id>                             #
#                    <email>, <note>, Texts translated: <n>                    #
#                                                                              #
################################################################################

Where the words in <> mean the reference to the entries in the database, and the #n means the number of texts for this language and version, this author has a relation “wrote” with. The two lines for author will be repeated for every author who has a relation translate with this language.

Immediately after the header the translations will follow. One line (odd line) will be the object name and the second line (even) will be the translation text (on one line). The translations will be sorted alphabetically according to the obj_name, and they will be grouped by an attribute obj. Before each group, following lines will be printed:

#------------------------------------<obj>--------------------------------------
#------------------------------------<obj>--------------------------------------

Texts for objects <obj>, “building” and “tree”, will go through line breaking facility. Other texts will be outputted exactly like they are stored.

 
   
   
   
 



SimuTranslator: ©2004-2005 SimuTranslator Team
Documentation: ©2004-2005 Tomáš Kubeš
SimuTranslator documentation home