]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #1520 from ArthurHoaro/fix/jp-language
authorArthurHoaro <arthur@hoa.ro>
Thu, 3 Sep 2020 06:46:47 +0000 (08:46 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Sep 2020 06:46:47 +0000 (08:46 +0200)
application/Languages.php
inc/languages/jp/LC_MESSAGES/shaarli.po [moved from inc/languages/ja/LC_MESSAGES/shaarli.po with 100% similarity]
tests/front/controller/admin/ConfigureControllerTest.php

index 5cda802e0c1faaf57058e0dca653cc713c90c0c3..d83e0765794af8cfbf0a5f762b5070162181a811 100644 (file)
@@ -179,9 +179,10 @@ class Languages
     {
         return [
             'auto' => t('Automatic'),
+            'de' => t('German'),
             'en' => t('English'),
             'fr' => t('French'),
-            'de' => t('German'),
+            'jp' => t('Japanese'),
         ];
     }
 }
index f2f84bacabde367edfcdbe61f8ea2f9fb8ce2447..612f20f12588a62c03060a27a0aa7da00298b8b2 100644 (file)
@@ -62,7 +62,7 @@ class ConfigureControllerTest extends TestCase
         static::assertSame('privacy.hide_public_links', $assignedVariables['hide_public_links']);
         static::assertSame('api.enabled', $assignedVariables['api_enabled']);
         static::assertSame('api.secret', $assignedVariables['api_secret']);
-        static::assertCount(4, $assignedVariables['languages']);
+        static::assertCount(5, $assignedVariables['languages']);
         static::assertArrayHasKey('gd_enabled', $assignedVariables);
         static::assertSame('thumbnails.mode', $assignedVariables['thumbnails_mode']);
     }