From 7d34fe30b6a17da294d9e7ce2f1584b39eaa1316 Mon Sep 17 00:00:00 2001 From: PrivateBin Translator Bot <72346835+privatebin-translator@users.noreply.github.com> Date: Sun, 11 Dec 2022 17:31:01 +0100 Subject: [PATCH 1/2] New translations en.json (Czech) --- i18n/cs.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/cs.json b/i18n/cs.json index a0121e9f..02424a4e 100644 --- a/i18n/cs.json +++ b/i18n/cs.json @@ -47,7 +47,7 @@ "%d minutes (3rd plural)" ], "%d hours": [ - "%d hodin", + "%d hodina", "%d hodiny", "%d hodin", "%d hours (3rd plural)" From 0e5002f0d54653b531ce2af38b7f5411d1bf3aba Mon Sep 17 00:00:00 2001 From: El RIDO Date: Mon, 12 Dec 2022 20:51:06 +0100 Subject: [PATCH 2/2] fix CS i18n unit test --- tst/I18nTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tst/I18nTest.php b/tst/I18nTest.php index a70f6b3a..852ee5da 100644 --- a/tst/I18nTest.php +++ b/tst/I18nTest.php @@ -135,7 +135,7 @@ class I18nTest extends PHPUnit_Framework_TestCase $_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'cs;q=0.8,en-GB;q=0.6,en-US;q=0.4,en;q=0.2'; I18n::loadTranslations(); $this->assertEquals('cs', I18n::_('en'), 'browser language cs'); - $this->assertEquals('1 hodin', I18n::_('%d hours', 1), '1 hour in Czech'); + $this->assertEquals('1 hodina', I18n::_('%d hours', 1), '1 hour in Czech'); $this->assertEquals('2 hodiny', I18n::_('%d hours', 2), '2 hours in Czech'); $this->assertEquals('5 minut', I18n::_('%d minutes', 5), '5 minutes in Czech'); $this->assertEquals('14 minut', I18n::_('%d minutes', 14), '14 minutes in Czech');