Improve unit test for translation files
This commit is contained in:
parent
3cde9dd877
commit
f758ddfc5e
|
|
@ -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' => '编辑描述',
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue