Table of Contents
This article in not completed. Contact support if you have any related questions: support@alinit.org
Translation file name #
File name must contain the language code and the language region code. Translation file should have .utsdata extension and UTF-8 encoding.
Such a file can be edited in any the most popular text editors.
Example file name:
en-us.utsdata //US English
//en - lang code
//- - separator
//us - region
Translation file structure #
Example translation file structure (US English, en-us.utsdata)
$lang:US English
$version: 1
@ok_text:OK
@choose_lang_text:Choose your language from the list below:
@new_game_button:New game
@settings_button:Settings
@about_button:About
@quit_button:Quit
@choose_line_button:ok | choose line
@max_speed_text:Max. speed
@cars_total_text:Cars (total)
@controller_text:Controller
@cab_preview_button:Cab
@interior_preview_button:Interior
@score_text:Score
@passengers_text:Passengers
@speed_limit_text:Speed Limit
@current_speed_text:Speed
@cab_camera_button:Cab camera
@interior_camera_button:Interior
@station_camera_button:Station
@controller_panel_header:Controller
@head_light_button:Head Light
@cab_light_button:Cab Light
@doors_button:Doors
@horn_button:Horn
@stop_pos_header:Stop position control
@express_train_notifiaction:This is express train. Skip this station.
@view_pos_header:<- View position ->
$lang – use to set full language name
$version – internal file version
// – comment
@ – indicates string key (do not modify!)
@@ – multiline string
First line structure #
$lang:US English
//$A:B
//Where
//$A - language name service key
// : - separator
// B - language name service key value
Single line structure #
$lang:US English
@ok_text:OK
@choose_lang_text:Choose your language from the list below:
@new_game_button:New game
@settings_button:Settings
//@A:B
//Where
//@A - string ID (key)
// : - separator
// B - string value (single line)
Multiline text structure #
@ok_text:OK
@@:click me!
@@:do it now!
//@@:click me! - second line for @ok_text
//@@:do it now! - third line for @ok_text
//OUTPUT
/*
OK
click me!
do it now!
*/