【发布时间】:2011-12-07 10:24:14
【问题描述】:
在 mantis 中配置自定义字段时,我收到此错误消息,任何想法
解析错误:语法错误,意外的 T_STRING 在 C:\wamp\www\MyProj\custom_strings_inc.php 在第 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,现在只使用 //