summaryrefslogtreecommitdiff
path: root/core/string/translation.h
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-10-27 09:19:01 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-10-27 09:31:05 +0300
commitec3c4fcba9e93514aadee82621c322acb7c21a5c (patch)
treecdae971b02282a9c3ef8e67c6847f616cd9b06d7 /core/string/translation.h
parent06cad890606555efb56d91458df5c082a12ff4a0 (diff)
Do not auto add default script and country codes to the locale.
Diffstat (limited to 'core/string/translation.h')
-rw-r--r--core/string/translation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/string/translation.h b/core/string/translation.h
index 3f97a8d4fc..9a369b0b05 100644
--- a/core/string/translation.h
+++ b/core/string/translation.h
@@ -102,6 +102,7 @@ class TranslationServer : public Object {
static TranslationServer *singleton;
bool _load_translations(const String &p_from);
+ String _standardize_locale(const String &p_locale, bool p_add_defaults) const;
StringName _get_message_from_translations(const StringName &p_message, const StringName &p_context, const String &p_locale, bool plural, const String &p_message_plural = "", int p_n = 0) const;