在mantis中配置自定义字段时,我收到此错误消息,任何想法
解析错误:语法错误,第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 …Run Code Online (Sandbox Code Playgroud) 我是monodevelop的初学者,我试图根据按钮点击显示一个消息框.代码工作正常,除非显示if/else语句下的bex消息,否则我无法关闭它.单击"确定"或"x"按钮不会关闭MessageBox
namespace SampleGtkProj
{
public partial class First : Gtk.Window
{
protected virtual void buttonClicked (object sender, System.EventArgs e)
{
MessageBox.Show(entry1.Text);
if(File.Exists(entry1.Text)) {
MessageBox.Show("File Exists: test passed");}
else {
MessageBox.Show("FIle DOes NOt exist test failed");}
}
public First() : base(Gtk.WindowType.Toplevel)
{
this.Build ();
}
}
}
Run Code Online (Sandbox Code Playgroud)