Godot::TranslationServer
Inherits Godot::Object < Reference < Object
Godot TranslationServer singleton (TranslationServer).
Constructors
new(pointer : Pointer(Void) = Pointer(Void).null)
SourceClass methods
singleton_ptr
SourceInstance methods
add_translation(translation : Translation) : Void
Sourceclear
Sourcecompare_locales(locale_a : String, locale_b : String) : Int64
Sourcefind_translations(locale : String, exact : Bool) : Godot::Array
Sourceformat_number(number : String, locale : String) : String
Sourceget_all_countries
Sourceget_all_languages
Sourceget_all_scripts
Sourceget_country_name(country : String) : String
Sourceget_language_name(language : String) : String
Sourceget_loaded_locales
Sourceget_locale
Sourceget_locale_name(locale : String) : String
Sourceget_or_add_domain(domain : String) : TranslationDomain
Sourceget_percent_sign(locale : String) : String
Sourceget_plural_rules(locale : String) : String
Sourceget_script_name(script : String) : String
Sourceget_tool_locale
Sourceget_translation_object(locale : String) : Translation
Sourceget_translations
Sourcehas_domain(domain : String) : Bool
Sourcehas_translation(translation : Translation) : Bool
Sourcehas_translation_for_locale(locale : String, exact : Bool) : Bool
Sourceis_pseudolocalization_enabled
Sourceparse_number(number : String, locale : String) : String
Sourcepseudolocalization_enabled?
Sourcepseudolocalize(message : String) : String
Sourcereload_pseudolocalization
Sourceremove_domain(domain : String) : Void
Sourceremove_translation(translation : Translation) : Void
Sourceset_locale(locale : String) : Void
Sourceset_pseudolocalization_enabled(enabled : Bool) : Void
Sourcestandardize_locale(locale : String, add_defaults : Bool) : String
Sourcetranslate(message : String, context : String) : String
Sourcetranslate_plural(message : String, plural_message : String, n : Int64, context : String) : String
Source