aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/languages
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/languages
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/languages')
-rw-r--r--tests/languages/fr/LanguagesFrTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/languages/fr/LanguagesFrTest.php b/tests/languages/fr/LanguagesFrTest.php
index c05a0f98..79d05172 100644
--- a/tests/languages/fr/LanguagesFrTest.php
+++ b/tests/languages/fr/LanguagesFrTest.php
@@ -155,7 +155,8 @@ class LanguagesFrTest extends \PHPUnit_Framework_TestCase
155 $this->conf->set('translation.mode', 'gettext'); 155 $this->conf->set('translation.mode', 'gettext');
156 $this->conf->set('translation.extensions.test', 'tests/utils/languages/'); 156 $this->conf->set('translation.extensions.test', 'tests/utils/languages/');
157 new Languages('en', $this->conf); 157 new Languages('en', $this->conf);
158 $this->assertEquals('voiture', t('car', 'car', 1, 'test')); 158 $txt = 'car'; // ignore me poedit
159 $this->assertEquals('voiture', t($txt, $txt, 1, 'test'));
159 $this->assertEquals('Fouille', t('Search', 'Search', 1, 'test')); 160 $this->assertEquals('Fouille', t('Search', 'Search', 1, 'test'));
160 } 161 }
161 162
@@ -167,7 +168,8 @@ class LanguagesFrTest extends \PHPUnit_Framework_TestCase
167 $this->conf->set('translation.mode', 'php'); 168 $this->conf->set('translation.mode', 'php');
168 $this->conf->set('translation.extensions.test', 'tests/utils/languages/'); 169 $this->conf->set('translation.extensions.test', 'tests/utils/languages/');
169 new Languages('en', $this->conf); 170 new Languages('en', $this->conf);
170 $this->assertEquals('voiture', t('car', 'car', 1, 'test')); 171 $txt = 'car'; // ignore me poedit
172 $this->assertEquals('voiture', t($txt, $txt, 1, 'test'));
171 $this->assertEquals('Fouille', t('Search', 'Search', 1, 'test')); 173 $this->assertEquals('Fouille', t('Search', 'Search', 1, 'test'));
172 } 174 }
173} 175}