add findLocale() to public interface

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2017-07-17 09:49:58 +02:00 committed by Georg Ehrke
parent abab7eb7f0
commit 7d8124ad66
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
1 changed files with 7 additions and 0 deletions

View File

@ -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
*