NSX (Translation string files)

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "== Introduction == Translation strings file is .NSX files that stores string translations in the form string_id=translated_string. Group are used as prefixes to st...")
 
 
(12 intermediate revisions by one user not shown)
Line 1: Line 1:
== Introduction ==
+
[[NSX | NSX file]] that store string translations in the form: ''string_id''=''translated_string''.
  
Translation strings file is [[NSX | .NSX files]] that stores string translations in the form string_id=translated_string.
+
This files are only used in [[Translation | translation packs]].
  
Group are used as prefixes to string ids to make code shorter.
+
{{tip|Groups are used as prefixes for string ids to make code shorter.}}
  
 
Example:
 
Example:
Line 12: Line 12:
 
  bpp=Bits Per Pixel
 
  bpp=Bits Per Pixel
  
defines 3 strings:
+
creates 3 strings:
  
 
  menu_option_res=Resolutions
 
  menu_option_res=Resolutions
Line 29: Line 29:
 
  loadgame    ="LOAD GAME"
 
  loadgame    ="LOAD GAME"
 
  savegame    ="SAVE GAME"
 
  savegame    ="SAVE GAME"
 +
 +
[[Category:File formats]]
 +
{{finished}}

Latest revision as of 23:37, 30 July 2012

NSX file that store string translations in the form: string_id=translated_string.

This files are only used in translation packs.

Tip: Groups are used as prefixes for string ids to make code shorter.

Example:

[menu_option]
res=Resolutions
windowed=Windowed
bpp=Bits Per Pixel

creates 3 strings:

menu_option_res=Resolutions
menu_option_windowed=Windowed
menu_option_bpp=Bits Per Pixel

Example of strings file contents:

[menu_btn]
yes         ="YES"
no          ="NO"
back        ="BACK"
newgame     ="NEW GAME"
startgame   ="START GAME"
options     ="OPTIONS"
loadgame    ="LOAD GAME"
savegame    ="SAVE GAME"
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox