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...
TranslationServer¶
Inherits: Object
The server responsible for language translations.
Description¶
The server that manages all language translations. Translations can be added to or removed from it.
Tutorials¶
Properties¶
|
Methods¶
void |
add_translation ( Translation translation ) |
void |
clear ( ) |
compare_locales ( String locale_a, String locale_b ) const |
|
get_all_countries ( ) const |
|
get_all_languages ( ) const |
|
get_all_scripts ( ) const |
|
get_country_name ( String country ) const |
|
get_language_name ( String language ) const |
|
get_loaded_locales ( ) const |
|
get_locale ( ) const |
|
get_locale_name ( String locale ) const |
|
get_script_name ( String script ) const |
|
get_tool_locale ( ) |
|
get_translation_object ( String locale ) |
|
pseudolocalize ( StringName message ) const |
|
void |
|
void |
remove_translation ( Translation translation ) |
void |
set_locale ( String locale ) |
standardize_locale ( String locale ) const |
|
translate ( StringName message, StringName context="" ) const |
|
translate_plural ( StringName message, StringName plural_message, int n, StringName context="" ) const |
Property Descriptions¶
bool pseudolocalization_enabled = false
If true
, enables the use of pseudolocalization. See ProjectSettings.internationalization/pseudolocalization/use_pseudolocalization for details.
Method Descriptions¶
void add_translation ( Translation translation )
Adds a Translation resource.
void clear ( )
Clears the server from all translations.