diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-11-06 11:41:32 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-11-06 11:41:32 -0500 |
commit | f758ddfc5e7d5d26d9a23b8c75fa6884159ecd72 (patch) | |
tree | 901f0dd311366d14f9d6b314d3292540893f0654 | |
parent | 3cde9dd8774e7fcd700a634bb00a55f8c349ccbe (diff) |
Improve unit test for translation files
-rw-r--r-- | app/Locale/zh_CN/translations.php | 10 | ||||
-rw-r--r-- | tests/units/Locale/LocaleTest.php | 8 |
2 files changed, 6 insertions, 12 deletions
diff --git a/app/Locale/zh_CN/translations.php b/app/Locale/zh_CN/translations.php index 5d96d694..e27a8a56 100644 --- a/app/Locale/zh_CN/translations.php +++ b/app/Locale/zh_CN/translations.php @@ -1092,11 +1092,11 @@ return array( 'There is no available project.' => '当前没有可用项目', 'Local File' => '本地文件', 'Configuration' => '配置选项', - 'PHP version:' => '', - 'PHP SAPI:' => '', - 'OS version:' => '', - 'Database version:' => '', - 'Browser:' => '', + // 'PHP version:' => '', + // 'PHP SAPI:' => '', + // 'OS version:' => '', + // 'Database version:' => '', + // 'Browser:' => '', 'Task view' => '任务浏览', 'Edit task' => '编辑任务', 'Edit description' => '编辑描述', diff --git a/tests/units/Locale/LocaleTest.php b/tests/units/Locale/LocaleTest.php index 976dfc58..c10b1bc9 100644 --- a/tests/units/Locale/LocaleTest.php +++ b/tests/units/Locale/LocaleTest.php @@ -10,13 +10,7 @@ class LocaleTest extends Base $locale = require($file . '/translations.php'); foreach ($locale as $k => $v) { - if (strpos($k, '%B %e, %Y') !== false) { - continue; - } - - if (strpos($k, '%b %e, %Y') !== false) { - continue; - } + $this->assertNotEmpty($v, 'Empty value for the key "'.$k.'" in translation '.basename($file)); foreach (array('%s', '%d') as $placeholder) { $this->assertEquals( |