Difference between revisions of "Modules/localize"

From MSX Game Library

< Modules

(Annexe)
Line 1: Line 1:
 
The {{MOD|localize}} module handle translation in several langage of your application. This module is very small in size and very efficient.
 
The {{MOD|localize}} module handle translation in several langage of your application. This module is very small in size and very efficient.
 +
 +
== Usage ==
 +
  
 
== Dependencies ==
 
== Dependencies ==
 
Dependency on other modules: ''None''.
 
Dependency on other modules: ''None''.
 
== Usage ==
 
  
 
== Settings ==
 
== Settings ==
Line 20: Line 21:
 
Note: If <tt>LocFiles</tt> is empty (default value), the localization process is disabled.
 
Note: If <tt>LocFiles</tt> is empty (default value), the localization process is disabled.
  
== Annexe ==
+
== Appendix ==
 
* See also: Sample program {{SAMPLE|s_loc}}
 
* See also: Sample program {{SAMPLE|s_loc}}
  

Revision as of 11:31, 24 November 2023

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

Usage

Dependencies

Dependency on other modules: None.

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.

Appendix

  • See also: Sample program s_loc

Documentation