Merge pull request #1520 from ArthurHoaro/fix/jp-language

This commit is contained in:
ArthurHoaro 2020-09-03 08:46:47 +02:00 committed by GitHub
commit 9e6371a6fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -179,9 +179,10 @@ public static function getAvailableLanguages()
{ {
return [ return [
'auto' => t('Automatic'), 'auto' => t('Automatic'),
'de' => t('German'),
'en' => t('English'), 'en' => t('English'),
'fr' => t('French'), 'fr' => t('French'),
'de' => t('German'), 'jp' => t('Japanese'),
]; ];
} }
} }

View file

@ -62,7 +62,7 @@ public function testIndex(): void
static::assertSame('privacy.hide_public_links', $assignedVariables['hide_public_links']); static::assertSame('privacy.hide_public_links', $assignedVariables['hide_public_links']);
static::assertSame('api.enabled', $assignedVariables['api_enabled']); static::assertSame('api.enabled', $assignedVariables['api_enabled']);
static::assertSame('api.secret', $assignedVariables['api_secret']); static::assertSame('api.secret', $assignedVariables['api_secret']);
static::assertCount(4, $assignedVariables['languages']); static::assertCount(5, $assignedVariables['languages']);
static::assertArrayHasKey('gd_enabled', $assignedVariables); static::assertArrayHasKey('gd_enabled', $assignedVariables);
static::assertSame('thumbnails.mode', $assignedVariables['thumbnails_mode']); static::assertSame('thumbnails.mode', $assignedVariables['thumbnails_mode']);
} }