This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
set_language [2017/05/14 16:36] – justin | set_language [2017/08/22 07:29] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Switches the active language used for message translation. The two-letter ISO 639-1 code should be used (e.g. " | + | Switches the active language used for message translation. This function was primarily implemented for localization debugging. The language setting can be adjusted at any time from the [[Options |
<code python> | <code python> | ||
Line 9: | Line 9: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |locale_code|Two-letter code representing the desired language.|[[String]]|Yes| | + | |locale_code|Code representing the desired language.|[[String]]|Yes| |
====Example: | ====Example: | ||
Line 15: | Line 15: | ||
set_language(" | set_language(" | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Set Language** function in your startup script to force a specific translation for testing purposes. | + | Use the **Set Language** function in your game's [[startup script]] to force a specific translation for testing purposes. |
</ | </ | ||
Line 30: | Line 30: | ||
<WRAP half column> | <WRAP half column> | ||
- | ====Visual Demo:==== | ||
- | {{: | ||
</ | </ | ||
</ | </ |