summaryrefslogtreecommitdiffstats
path: root/lib/public/L10N/IFactory.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-07-07 11:17:54 +0200
committerGeorg Ehrke <developer@georgehrke.com>2018-06-27 13:19:21 +0200
commit4a9f8623b50ab0ba6a7fd411c0750a6bd5f63c14 (patch)
treeab2a2fc068236db4a415391275ddf6dab75ea485 /lib/public/L10N/IFactory.php
parent93011579fe27624ed746b54f1094da556d019f5a (diff)
downloadnextcloud-server-4a9f8623b50ab0ba6a7fd411c0750a6bd5f63c14.tar.gz
nextcloud-server-4a9f8623b50ab0ba6a7fd411c0750a6bd5f63c14.zip
Fix review & tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'lib/public/L10N/IFactory.php')
-rw-r--r--lib/public/L10N/IFactory.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/public/L10N/IFactory.php b/lib/public/L10N/IFactory.php
index 9820082c72e..08e4f834168 100644
--- a/lib/public/L10N/IFactory.php
+++ b/lib/public/L10N/IFactory.php
@@ -54,10 +54,32 @@ interface IFactory {
public function findAvailableLanguages($app = null);
/**
+ * @return array an array of available
+ * @since 13.0.0
+ */
+ public function findAvailableLocales();
+
+ /**
* @param string|null $app App id or null for core
* @param string $lang
* @return bool
* @since 9.0.0
*/
public function languageExists($app, $lang);
+
+ /**
+ * @param string $locale
+ * @return bool
+ * @since 13.0.0
+ */
+ public function localeExists($locale);
+
+ /**
+ * Creates a function from the plural string
+ *
+ * @param string $string
+ * @return string Unique function name
+ * @since 9.0.0
+ */
+ public function createPluralFunction($string);
}