diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-15 10:04:41 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-26 14:02:30 +0100 |
commit | 6aec550d6efb1cb50f6404bf72eb78ea37f36266 (patch) | |
tree | ec61ca3cc962acd8081323cd419dd97921c615f4 /lib/public | |
parent | 3da78c8f1c9355a726f289e834fa237366c3df20 (diff) | |
download | nextcloud-server-6aec550d6efb1cb50f6404bf72eb78ea37f36266.tar.gz nextcloud-server-6aec550d6efb1cb50f6404bf72eb78ea37f36266.zip |
Move findAvailableLanguages() to the factory
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/l10n/ifactory.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/l10n/ifactory.php b/lib/public/l10n/ifactory.php index fa3f84fa2fd..d6944b375f0 100644 --- a/lib/public/l10n/ifactory.php +++ b/lib/public/l10n/ifactory.php @@ -33,4 +33,13 @@ interface IFactory { * @since 8.2.0 */ public function get($app, $lang = null); + + /** + * Find all available languages for an app + * + * @param string|null $app App id or null for core + * @return string[] an array of available languages + * @since 9.0.0 + */ + public function findAvailableLanguages($app = null); } |