summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-03-23 15:34:25 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-03-23 15:34:25 +0100
commit6026b67280c79ed19bd14fc5729b475b30d0ee14 (patch)
tree55ebd9c45736064d059d4694413130dd37d2a999 /lib
parentabcee56fe39f55d2071a192543a12376f9dd6d54 (diff)
downloadnextcloud-server-6026b67280c79ed19bd14fc5729b475b30d0ee14.tar.gz
nextcloud-server-6026b67280c79ed19bd14fc5729b475b30d0ee14.zip
Fix the translations of the User menu
Diffstat (limited to 'lib')
-rw-r--r--lib/private/l10n/factory.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/private/l10n/factory.php b/lib/private/l10n/factory.php
index 1440e9510c5..7e3f35e7535 100644
--- a/lib/private/l10n/factory.php
+++ b/lib/private/l10n/factory.php
@@ -89,20 +89,18 @@ class Factory implements IFactory {
if ($lang !== null) {
$lang = str_replace(array('\0', '/', '\\', '..'), '', (string) $lang);
}
- $key = $lang;
- if ($key === null || !$this->languageExists($app, $lang)) {
- $key = 'null';
+ if ($lang === null || !$this->languageExists($app, $lang)) {
$lang = $this->findLanguage($app);
}
- if (!isset($this->instances[$key][$app])) {
- $this->instances[$key][$app] = new L10N(
+ if (!isset($this->instances[$lang][$app])) {
+ $this->instances[$lang][$app] = new L10N(
$this, $app, $lang,
$this->getL10nFilesForApp($app, $lang)
);
}
- return $this->instances[$key][$app];
+ return $this->instances[$lang][$app];
}
/**