From 7d8124ad66d336b99c48936e2a6a84ea4d0fef09 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 17 Jul 2017 09:49:58 +0200 Subject: [PATCH] add findLocale() to public interface Signed-off-by: Thomas Citharel --- lib/public/L10N/IFactory.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/public/L10N/IFactory.php b/lib/public/L10N/IFactory.php index 08e4f83416..4efbe84ea3 100644 --- a/lib/public/L10N/IFactory.php +++ b/lib/public/L10N/IFactory.php @@ -44,6 +44,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 *