Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
Translation¶
Inherits: Resource < RefCounted < Object
Inherited By: OptimizedTranslation
A language translation that maps a collection of strings to their individual translations.
Description¶
Translations are resources that can be loaded and unloaded on demand. They map a collection of strings to their individual translations, and they also provide convenience methods for pluralization.
Tutorials¶
Properties¶
|
Methods¶
_get_message ( StringName src_message, StringName context ) virtual const |
|
_get_plural_message ( StringName src_message, StringName src_plural_message, int n, StringName context ) virtual const |
|
void |
add_message ( StringName src_message, StringName xlated_message, StringName context="" ) |
void |
add_plural_message ( StringName src_message, PackedStringArray xlated_messages, StringName context="" ) |
void |
erase_message ( StringName src_message, StringName context="" ) |
get_message ( StringName src_message, StringName context="" ) const |
|
get_message_count ( ) const |
|
get_message_list ( ) const |
|
get_plural_message ( StringName src_message, |