Inherits: Resource < Reference < Object
Inherited By: PHashTranslation
Language Translation.
Translations are resources that can be loaded and unloaded on demand. They map a string to another string.
String | locale | "en" |
void | add_message ( String src_message, String xlated_message ) |
void | erase_message ( String src_message ) |
String | get_message ( String src_message ) const |
int | get_message_count ( ) const |
PoolStringArray | get_message_list ( ) const |
Default | "en" |
Setter | set_locale(value) |
Getter | get_locale() |
The locale of the translation.
Adds a message if nonexistent, followed by its translation.
Erases a message.
Returns a message's translation.
Returns the number of existing messages.
Returns all the messages (keys).
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_translation.html