致命错误:调用未定义的函数_()

时间:2013-12-05 19:34:35

标签: php printing cups

我正在尝试在我的CUPS服务器上使用this php class

现在当我尝试从这个班级调用一个函数时,我得到了 Fatal error: Call to undefined function _() in /usr/local/share/php/printipp/BasicIPP.php on line 344

第344行看起来像这样:

self::_putDebug(sprintf(_("Charset: %s") , $charset) , 2);

在以下功能中:

 public function setCharset($charset = 'us-ascii') 
{
 $charset = strtolower($charset);
 $this->charset = $charset;
 $this->meta->charset = chr(0x47) // charset type | value-tag
  . chr(0x00) . chr(0x12) // name-length
  . "attributes-charset" // attributes-charset | name
  . self::_giveMeStringLength($charset) // value-length
  . $charset; // value
 self::_putDebug(sprintf(_("Charset: %s") , $charset) , 2);
 $this->setup->charset = 1;
}

我的PHP版本是5.3.26。什么是_()函数以及我如何错过它?

编辑**
看起来_()是gettext()的别名 在使用包管理器检查后,我安装了0.17版本的Gettext 我如何在PHP中启用它?

0 个答案:

没有答案
相关问题