在配置螳螂的自定义字段时,我收到了以下错误消息:
分析错误:语法错误,第3行C:\wamp\www\MyProj\custom_strings_inc.php中的意外T_STRING
代码是
<?php
if( lang_get_current() == 'german' ) {
$defect_impact = 'Defect Impact'; #// German translation of Defect Impact
$defect_type = 'Defect Type'; #// German translation of Defect Type
$phase_of_origin = ’Phase Of Origin’; #// German translation of Phase Of Origin
}else{
# Default (use your preferred language as the default)
$defect_impact = 'Defect Impact'; // German translation of Defect Impact
$defect_type = 'Defect Type'; // German translation of Defect Type
$phase_of_origin = 'Phase Of Origin'; // German translation of Phase Of Origin
}
?>发布于 2011-10-14 02:49:27
这一行的引号错了:
$phase_of_origin = ’Phase Of Origin’;应:
$phase_of_origin = 'Phase Of Origin';https://stackoverflow.com/questions/7762558
复制相似问题