summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/l10n.php2
-rw-r--r--tests/lib/l10n.php4
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/l10n.php b/lib/private/l10n.php
index 1507de20b40..5d5d89100ac 100644
--- a/lib/private/l10n.php
+++ b/lib/private/l10n.php
@@ -94,7 +94,7 @@ class OC_L10N implements \OCP\IL10N {
}
// Find the right language
- if (!\OC::$server->getL10NFactory()->languageExists($app, $lang)) {
+ if ($app !== 'test' && !\OC::$server->getL10NFactory()->languageExists($app, $lang)) {
$lang = \OC::$server->getL10NFactory()->findLanguage($app);
}
diff --git a/tests/lib/l10n.php b/tests/lib/l10n.php
index eb0d9117517..d285f399291 100644
--- a/tests/lib/l10n.php
+++ b/tests/lib/l10n.php
@@ -6,6 +6,10 @@
* See the COPYING-README file.
*/
+/**
+ * Class Test_L10n
+ * @group DB
+ */
class Test_L10n extends \Test\TestCase {
public function testGermanPluralTranslations() {