class_translation - vkbsb/godot GitHub Wiki
Translation
####Inherits: Resource ####Category: Core
Brief Description
Language Translation.
Member Functions
- void set_locale ( String locale )
- String get_locale ( ) const
- void add_message ( String src_message, String xlated_message )
- String get_message ( String src_message ) const
- void erase_message ( String src_message )
- StringArray get_message_list ( ) const
- int get_message_count ( ) const
Description
Translations are resources that can be loaded/unloaded on demand. They map a string to another string.
Member Function Description
set_locale
- void set_locale ( String locale )
Set the locale of the translation.
get_locale
- String get_locale ( ) const
Return the locale of the translation.
add_message
Add a message for translation.
get_message
Return a message for translation.
erase_message
- void erase_message ( String src_message )
Erase a message.
get_message_list
- StringArray get_message_list ( ) const
Return all the messages (keys).