summaryrefslogtreecommitdiffstats
path: root/core/string/translation.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-31 14:30:18 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-10-31 14:30:18 +0100
commit0e9878b12a1e91d0f9ce2c1b56d1d469dd1758f6 (patch)
tree3bf7b195c822674a2ecce665495457fa842a7f49 /core/string/translation.h
parentc866f349ce5f7f75aa4c9a5d7562571c22aa7c76 (diff)
parentec3c4fcba9e93514aadee82621c322acb7c21a5c (diff)
downloadredot-engine-0e9878b12a1e91d0f9ce2c1b56d1d469dd1758f6.tar.gz
Merge pull request #67931 from bruvzg/locale_no_def
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;