er2.tryLocalize 1
Resolves a localization key into the language the player is using. Text starting with # is looked up in the mission localization file; anything else is returned unchanged, so it is safe to pass any string through it.
Return value
| Return Type | Description |
|---|---|
| string | The localized text, or the original text when it was not a key. |
Parameters
| Parameter | Type | Description |
|---|---|---|
| 1 | string | The text to resolve. Only strings starting with # are looked up. |
| 2 | Table | Optional table of values to substitute into the localized string. |
Examples
No examples available.
