diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-23 19:06:36 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-23 19:06:36 +0200 |
commit | 54e0f1d739b4b3820cafafca039a3524d3dd28ba (patch) | |
tree | 2cdea27e5b89bbe0b133b0f373c78315479dbf42 /lib/private/l10n.php | |
parent | 8166aaf82c1e96090e32eb2d8479bd150c12d166 (diff) | |
download | nextcloud-server-54e0f1d739b4b3820cafafca039a3524d3dd28ba.tar.gz nextcloud-server-54e0f1d739b4b3820cafafca039a3524d3dd28ba.zip |
fixing PHPDoc & grammar
Diffstat (limited to 'lib/private/l10n.php')
-rw-r--r-- | lib/private/l10n.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/l10n.php b/lib/private/l10n.php index 0125dca92ee..2d440850459 100644 --- a/lib/private/l10n.php +++ b/lib/private/l10n.php @@ -419,7 +419,7 @@ class OC_L10N implements \OCP\IL10N { /** * @brief find the best language * @param $app Array or string, details below - * @returns language + * @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 @@ -464,10 +464,10 @@ class OC_L10N implements \OCP\IL10N { $preferences = preg_split('/,\s*/', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE'])); foreach($preferences as $preference) { - list($prefered_language) = explode(';', $preference); - $prefered_language = str_replace('-', '_', $prefered_language); + list($preferred_language) = explode(';', $preference); + $preferred_language = str_replace('-', '_', $preferred_language); foreach($available as $available_language) { - if ($prefered_language === strtolower($available_language)) { + if ($preferred_language === strtolower($available_language)) { if (is_null($app)) { self::$language = $available_language; } @@ -475,7 +475,7 @@ class OC_L10N implements \OCP\IL10N { } } foreach($available as $available_language) { - if (substr($prefered_language, 0, 2) === $available_language) { + if (substr($preferred_language, 0, 2) === $available_language) { if (is_null($app)) { self::$language = $available_language; } |