summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-15 10:04:41 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-26 14:02:30 +0100
commit6aec550d6efb1cb50f6404bf72eb78ea37f36266 (patch)
treeec61ca3cc962acd8081323cd419dd97921c615f4 /lib/public
parent3da78c8f1c9355a726f289e834fa237366c3df20 (diff)
downloadnextcloud-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.php9
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);
}