From 4a9f8623b50ab0ba6a7fd411c0750a6bd5f63c14 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 7 Jul 2017 11:17:54 +0200 Subject: Fix review & tests Signed-off-by: Thomas Citharel --- lib/public/L10N/IFactory.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'lib/public/L10N') 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 @@ -53,6 +53,12 @@ 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 @@ -60,4 +66,20 @@ interface IFactory { * @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); } -- cgit v1.2.3