diff options
Diffstat (limited to 'lib/private/l10n.php')
-rw-r--r-- | lib/private/l10n.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/private/l10n.php b/lib/private/l10n.php index b98ccc9d58b..f0b4f9a70f6 100644 --- a/lib/private/l10n.php +++ b/lib/private/l10n.php @@ -351,7 +351,7 @@ class OC_L10N implements \OCP\IL10N { /** * @brief Localization * @param string $type Type of localization - * @param array $params parameters for this localization + * @param array $data parameters for this localization * @returns String or false * * Returns the localized data. @@ -413,9 +413,9 @@ class OC_L10N implements \OCP\IL10N { * This function is useful to avoid loading thousands of files if only one * simple string is needed, for example in appinfo.php */ - public static function selectLanguage($text) { - $lang = self::findLanguage(array_keys($text)); - return $text[$lang]; + public static function selectLanguage($texts) { + $lang = self::findLanguage(array_keys($texts)); + return $texts[$lang]; } /** @@ -533,6 +533,7 @@ class OC_L10N implements \OCP\IL10N { /** * @param string $lang + * @param string $app */ public static function languageExists($app, $lang) { if ($lang == 'en') {//english is always available |