"String-table" container

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
Line 20: Line 20:
 
|-
 
|-
 
|string-table-kr||Korean
 
|string-table-kr||Korean
|-
 
|string-table-it||Italian
 
 
|-
 
|-
 
|string-table-it||Italian
 
|string-table-it||Italian

Revision as of 17:26, 20 August 2013

The "String-table" container is a top-level config.txt file entry that is used to provide localization support. The 'string-table' container always supplies English string data. Whenever the 'string-table' container is supplied, it is also legal to provide equivalent localized variants for one or more locales (eg. 'string-table-de'). It is not legal to provide a localized variant without the base English form (ie. 'string-table-de' without 'string-table'), nor is it legal to provide a localized variant instead of the English form (ie. a 'string-table' which actually contains non-English text.)


The complete set of supported string-table containers are as follows:

string-table English
string-table-cn Traditional Chinese
string-table-c2 Simplified Chinese
string-table-cz Czech
string-table-nl Dutch
string-table-fr French
string-table-de German
string-table-kr Korean
string-table-it Italian
string-table-pl Polish
string-table-ru Russian
string-table-es Spanish
string-table-hu Hungarian
string-table-sv Swedish
string-table-fi Finnish
string-table-da Danish
string-table-no Norwegian
string-table-jp Japanese
string-table-pt Portuguese
string-table-za Afrikaans

"String-table" container Example

The following example shows the use of a "String-table" container including localized variants.

 string-table
 {
   html_description1                     "Current control method is <a href=live://property/control-method>Cab mode</a>."
   html_description2                     "Current control method is <a href=live://property/control-method>DCC mode</a>."
   html_description3                     "Current control method is <a href=live://property/control-method>Ask user</a>."
   driver_default_msg                    "Defaulting to DCC mode for user train."
   description                           "Set the control method (DCC mode or Cab mode) and realism."
 }
 
 string-table-fr
 {
   html_description1                     "Méthode de contrôle actuelle : <a href=live://property/control-method>mode Cabine</a>."
   html_description2                     "Méthode de contrôle actuelle : <a href=live://property/control-method>mode DCC</a>."
   html_description3                     "Méthode de contrôle actuelle : <a href=live://property/control-method>Demander à l'utilisateur</a>."
   driver_default_msg                    "Activation par défaut du mode DCC pour le train de l'utilisateur."
   description                           "Permet de sélectionner la méthode de contrôle (mode DCC ou Cabine) et le niveau de réalisme."
 }
 
 string-table-de
 {
   html_description1                     "Aktuelle Steuerung ist <a href=live://property/control-method>Führerstandsmodus</a>."
   html_description2                     "Aktuelle Steuerung ist <a href=live://property/control-method>Trafo-Modus</a>."
   html_description3                     "Aktuelle Steuerung ist <a href=live://property/control-method>Benutzer fragen</a>."
   driver_default_msg                    "Zurück zum Trafo-Modus für den Zug des Benutzers."
   description                           "Steuerungs-Methode (Trafo- oder Führerstands-Modus) und Realismus auswählen."
 }


See Also

Personal tools