Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-07-05 18:37:12 +0300
committerGeorg Ehrke <developer@georgehrke.com>2018-06-27 14:17:26 +0300
commitea380b2918b298259f7f45a3e4671f50d89e6c13 (patch)
tree68273792b8a1047f32ea1f0f69f8d56cd5264856 /lib/public/IL10N.php
parentd8921ccd85f3414c1f3e13b23b6da735bf9b69b8 (diff)
Allow apps to specify locale for localisation
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'lib/public/IL10N.php')
-rw-r--r--lib/public/IL10N.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/IL10N.php b/lib/public/IL10N.php
index 2e55c151f62..43d19059d9c 100644
--- a/lib/public/IL10N.php
+++ b/lib/public/IL10N.php
@@ -8,6 +8,7 @@ declare(strict_types=1);
* @author Joas Schilling <coding@schilljs.com>
* @author Morris Jobke <hey@morrisjobke.de>
* @author Roeland Jago Douma <roeland@famdouma.nl>
+ * @author Thomas Citharel <tcit@tcit.fr>
*
* @license AGPL-3.0
*
@@ -107,4 +108,12 @@ interface IL10N {
* @since 7.0.0
*/
public function getLanguageCode(): string ;
+
+ /**
+ * * The code (en_US, fr_CA, ...) of the locale that is used for this IL10N object
+ *
+ * @return string locale
+ * @since 13.0.0
+ */
+ public function getLocaleCode();
}