虽然螳螂配置自定义字段我得到这个错误信息,任何想法PHP T_STRING错误
Parse error: syntax error, unexpected T_STRING in C:\wamp\www\MyProj\custom_strings_inc.php on line 3
的代码是在这条线
<?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
}
?>
你为什么用这两种方式进行单行注释(#和//)的任何原因? – Nettogrof
谢谢你nettogrof,现在使用//只有 – moshe