summaryrefslogtreecommitdiffstats
path: root/core/string/translation_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/string/translation_server.h')
-rw-r--r--core/string/translation_server.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/string/translation_server.h b/core/string/translation_server.h
index 01974a4025..fd31a8dbac 100644
--- a/core/string/translation_server.h
+++ b/core/string/translation_server.h
@@ -54,10 +54,14 @@ class TranslationServer : public Object {
static inline TranslationServer *singleton = nullptr;
bool _load_translations(const String &p_from);
- String _standardize_locale(const String &p_locale, bool p_add_defaults) const;
static void _bind_methods();
+#ifndef DISABLE_DEPRECATED
+ String _standardize_locale_bind_compat_98972(const String &p_locale) const;
+ static void _bind_compatibility_methods();
+#endif
+
struct LocaleScriptInfo {
String name;
String script;
@@ -131,7 +135,7 @@ public:
void set_pseudolocalization_enabled(bool p_enabled);
void reload_pseudolocalization();
- String standardize_locale(const String &p_locale) const;
+ String standardize_locale(const String &p_locale, bool p_add_defaults = false) const;
int compare_locales(const String &p_locale_a, const String &p_locale_b) const;