User Tools

Site Tools


set_language

This is an old revision of the document!


Set Language


Switches the active language used for message translation. The two-letter ISO 639-1 code should be used (e.g. “en” for English, “fr” for French, etc.). See https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for a list of codes. This function was primarily implemented for localization debugging. The language setting can be adjusted at any time from the Options menu.

set_language(locale_code)
ArgumentDescriptionTypeRequired
locale_codeTwo-letter code representing the desired language.StringYes

Example:

set_language("en")

Results: The language used for translation is switched to English.

Use the Set Language function in your game's startup script to force a specific translation for testing purposes.


Editor Node:

set_language.1495305929.txt.gz · Last modified: 2017/05/20 11:45 by justin