mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-25 15:29:23 -05:00
fix Czech translation tests, test strings now use a non-breaking space
This commit is contained in:
parent
0cc556e8ad
commit
0040531057
@ -154,10 +154,10 @@ class I18nTest extends TestCase
|
|||||||
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'cs;q=0.8,en-GB;q=0.6,en-US;q=0.4,en;q=0.2';
|
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'cs;q=0.8,en-GB;q=0.6,en-US;q=0.4,en;q=0.2';
|
||||||
I18n::loadTranslations();
|
I18n::loadTranslations();
|
||||||
$this->assertEquals('cs', I18n::getLanguage(), 'browser language cs');
|
$this->assertEquals('cs', I18n::getLanguage(), 'browser language cs');
|
||||||
$this->assertEquals('1 hodina', 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('2 hodiny', I18n::_('%d hours', 2), '2 hours in Czech');
|
||||||
$this->assertEquals('5 minut', I18n::_('%d minutes', 5), '5 minutes 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');
|
$this->assertEquals('14 minut', I18n::_('%d minutes', 14), '14 minutes in Czech');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testBrowserLanguageAnyDetection()
|
public function testBrowserLanguageAnyDetection()
|
||||||
|
Loading…
Reference in New Issue
Block a user