aboutsummaryrefslogtreecommitdiff
path: root/src/corelib/i18n/mlocale.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/i18n/mlocale.h')
-rw-r--r--src/corelib/i18n/mlocale.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/corelib/i18n/mlocale.h b/src/corelib/i18n/mlocale.h
index c1ad7d32..25c9b5ca 100644
--- a/src/corelib/i18n/mlocale.h
+++ b/src/corelib/i18n/mlocale.h
@@ -1656,6 +1656,22 @@ public:
*/
void disconnectSettings();
+ /*!
+ * \brief Static method to obtain primary script of locale.
+ * Can be used to obtain primary script without instantiating MLocale,
+ * useful when obtaining a list of scripts for a lot of languages. Primary
+ * script means a script returned by script() or first item in
+ * languageScripts().
+ */
+ static QString localeScript(const QString &locale);
+
+ /*!
+ * \bried Static method to obtain endonym for locale.
+ * Can be used to obtain endonym without instantiating MLocale, useful
+ * when obtaining a list of endonyms for a lot of languages.
+ */
+ static QString languageEndonym(const QString &locale);
+
Q_SIGNALS:
void settingsChanged();
/*!