Difference between revisions of "Modules/localize"

From MSX Game Library

< Modules

(Settings)
Line 7: Line 7:
  
 
== Settings ==
 
== Settings ==
=== MSXgl configuration ===
 
=== Build tool configuration ===
 
  
 +
The localization process can be customized in your Build tool configuration file, <tt>project_config.js</tt>:
 
  //-- List files to be localized (array)
 
  //-- List files to be localized (array)
 
  LocFiles = [ "file1.ini", "file2.ini" ];
 
  LocFiles = [ "file1.ini", "file2.ini" ];
Line 18: Line 17:
 
  //-- Localization structure name (string)
 
  //-- Localization structure name (string)
 
  LocStruct = "g_LocData";
 
  LocStruct = "g_LocData";
 +
 +
Note: If <tt>LocFiles</tt> is empty (default value), the localization process is disabled.
  
 
== Annexe ==
 
== Annexe ==

Revision as of 11:24, 24 November 2023

The localize module handle translation in several langage of your application. This module is very small in size and very efficient.

Dependencies

Dependency on other modules: None.

Usage

Settings

The localization process can be customized in your Build tool configuration file, project_config.js:

//-- List files to be localized (array)
LocFiles = [ "file1.ini", "file2.ini" ];

//-- Localization output filename (string)
LocOutput = "localization.h";

//-- Localization structure name (string)
LocStruct = "g_LocData";

Note: If LocFiles is empty (default value), the localization process is disabled.

Annexe

  • See also: Sample program {{SAMPLE|s_loc

Documentation