diff --git a/lib/private/l10n.php b/lib/private/l10n.php index 1507de20b4..5d5d89100a 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 eb0d911751..d285f39929 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() {