aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/il10n.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/il10n.php')
-rw-r--r--lib/public/il10n.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/il10n.php b/lib/public/il10n.php
index c228be6a0a3..7649a1ea538 100644
--- a/lib/public/il10n.php
+++ b/lib/public/il10n.php
@@ -72,4 +72,18 @@ interface IL10N {
* - params: timestamp (int/string)
*/
public function l($type, $data);
+
+
+ /**
+ * @brief find the best language
+ * @param array|string $app details below
+ * @returns string language
+ *
+ * If $app is an array, ownCloud assumes that these are the available
+ * languages. Otherwise ownCloud tries to find the files in the l10n
+ * folder.
+ *
+ * If nothing works it returns 'en'
+ */
+ public function getLanguageCode($app=null);
}