diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-09-10 10:19:49 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-09-10 10:42:08 +0200 |
commit | df143cb72a9681d977a7fa85553a95ce1ee2314f (patch) | |
tree | d40f7d7bc787393a049e92ecb56ec98339502010 /lib/public | |
parent | e9c644412c65aab4799c5dc24dcfa294cc7f5a23 (diff) | |
download | nextcloud-server-df143cb72a9681d977a7fa85553a95ce1ee2314f.tar.gz nextcloud-server-df143cb72a9681d977a7fa85553a95ce1ee2314f.zip |
Use user locale as default in the template
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/L10N/IFactory.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/L10N/IFactory.php b/lib/public/L10N/IFactory.php index 1bc231e4e2e..31276b12897 100644 --- a/lib/public/L10N/IFactory.php +++ b/lib/public/L10N/IFactory.php @@ -54,6 +54,14 @@ interface IFactory { public function findLocale($lang = null); /** + * find the matching lang from the locale + * + * @param string $locale + * @return null|string + */ + public function findLanguageFromLocale($locale = null); + + /** * Find all available languages for an app * * @param string|null $app App id or null for core |