aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/LanguagesTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-05-25 13:26:05 +0200
committerArthurHoaro <arthur@hoa.ro>2017-10-22 13:16:53 +0200
commitf39580c6fd171b849cec5832b4912182696341f2 (patch)
treec184380d829e2f9b22b2375f4bdc8d085cd6a9be /tests/LanguagesTest.php
parentd6379763290230242caac5fe1e7c589a29fa6bf0 (diff)
downloadShaarli-f39580c6fd171b849cec5832b4912182696341f2.tar.gz
Shaarli-f39580c6fd171b849cec5832b4912182696341f2.tar.zst
Shaarli-f39580c6fd171b849cec5832b4912182696341f2.zip
Add language selection in the configure page of the default theme
Diffstat (limited to 'tests/LanguagesTest.php')
-rw-r--r--tests/LanguagesTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/LanguagesTest.php b/tests/LanguagesTest.php
index 46bfcd72..864ce630 100644
--- a/tests/LanguagesTest.php
+++ b/tests/LanguagesTest.php
@@ -183,7 +183,8 @@ class LanguagesTest extends \PHPUnit_Framework_TestCase
183 $this->conf->set('translation.mode', 'gettext'); 183 $this->conf->set('translation.mode', 'gettext');
184 $this->conf->set('translation.extensions.test', 'tests/utils/languages/'); 184 $this->conf->set('translation.extensions.test', 'tests/utils/languages/');
185 new Languages('en', $this->conf); 185 new Languages('en', $this->conf);
186 $this->assertEquals('car', t('car', 'car', 1, 'test')); 186 $txt = 'car'; // ignore me poedit
187 $this->assertEquals('car', t($txt, $txt, 1, 'test'));
187 $this->assertEquals('Search', t('Search', 'Search', 1, 'test')); 188 $this->assertEquals('Search', t('Search', 'Search', 1, 'test'));
188 } 189 }
189 190
@@ -195,7 +196,8 @@ class LanguagesTest extends \PHPUnit_Framework_TestCase
195 $this->conf->set('translation.mode', 'php'); 196 $this->conf->set('translation.mode', 'php');
196 $this->conf->set('translation.extensions.test', 'tests/utils/languages/'); 197 $this->conf->set('translation.extensions.test', 'tests/utils/languages/');
197 new Languages('en', $this->conf); 198 new Languages('en', $this->conf);
198 $this->assertEquals('car', t('car', 'car', 1, 'test')); 199 $txt = 'car'; // ignore me poedit
200 $this->assertEquals('car', t($txt, $txt, 1, 'test'));
199 $this->assertEquals('Search', t('Search', 'Search', 1, 'test')); 201 $this->assertEquals('Search', t('Search', 'Search', 1, 'test'));
200 } 202 }
201} 203}