Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能得到非翻译标签class Label extends \Zend_Form_Decorator_Label ?当我试图把它变成“ $this->getLabel()”时,它已经被翻译成俄语了。
class Label extends \Zend_Form_Decorator_Label
$this->getLabel()
在调用 之前,您可以通过调用which 禁用$this->getLabel()该元素的翻译来禁用元素上的翻译器标志。$element->setDisableTranslator(true)
$element->setDisableTranslator(true)
然后,当您调用getLabel()它时,检查该元素的翻译器是否已启用;如果启用,标签会被翻译然后返回,否则它会像你想要的那样在没有翻译的情况下返回。
getLabel()