Image Uploader Scripting API
Loading...
Searching...
No Matches
Functions
internalization.h File Reference

Functions

string tr (string key, string englishText)
 

Detailed Description

Internationalization

Function Documentation

◆ tr()

string tr ( string  key,
string  englishText 
)

Translates a string to the current language.

Parameters
keyrepresents an id of this message, should be like "scriptname.some_key1.some_key2". scriptname should be the same as your script file (without .nut extension).
englishTextdeprecated since 1.4.2 Translated strings should be stored in json file Scripts/Lang/<language_name>.json.

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

Since
1.3.1