class_translation - dragonsoulz/godot GitHub Wiki

Translation

####Inherits: Resource ####Category: Core

Brief Description

Language Translation.

Member Functions

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

Return the locale of the translation.

add_message

  • void add_message ( String src_message, String xlated_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

Return all the messages (keys).