summaryrefslogtreecommitdiffstats
path: root/lib/public/L10N
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-07-17 09:49:58 +0200
committerGeorg Ehrke <developer@georgehrke.com>2018-06-27 13:19:23 +0200
commit7d8124ad66d336b99c48936e2a6a84ea4d0fef09 (patch)
tree217e9139a53731652d9666be6322f7af541a9dfe /lib/public/L10N
parentabab7eb7f071282a4a3fa839dcc6f61ac4632f6b (diff)
downloadnextcloud-server-7d8124ad66d336b99c48936e2a6a84ea4d0fef09.tar.gz
nextcloud-server-7d8124ad66d336b99c48936e2a6a84ea4d0fef09.zip
add findLocale() to public interface
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'lib/public/L10N')
-rw-r--r--lib/public/L10N/IFactory.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/L10N/IFactory.php b/lib/public/L10N/IFactory.php
index 08e4f834168..4efbe84ea3f 100644
--- a/lib/public/L10N/IFactory.php
+++ b/lib/public/L10N/IFactory.php
@@ -45,6 +45,13 @@ interface IFactory {
public function findLanguage($app = null);
/**
+ * @param string|null $lang user language as default locale
+ * @return string locale If nothing works it returns 'en_US'
+ * @since 13.0.0
+ */
+ public function findLocale($lang = null);
+
+ /**
* Find all available languages for an app
*
* @param string|null $app App id or null for core