Image Uploader Scripting API
Functions
internalization.h File Reference

Functions

string tr (string key, string englishText)
 

Detailed Description

Translating scripts into different languages

Function Documentation

◆ tr()

string tr ( string  key,
string  englishText 
)

Translates a string to the current language.

key represents an id of this message, should be like "scriptname.some_key1.some_key2". You should use string literal only for both arguments! Do not form them dynamically. scriptname should be the same as your script file (without .nut extension).

Translated strings should be stored in json file Scripts/Lang/<language_name>.json. language_name should be the same as in program's translation filename Lang<language_name>.lng

Aliases for this function: Translate() (you can these functions in your code).

Since
1.3.1