目前,isEmpty 错误会抛出异常:
Value is required and can't be empty
我这样加载我的翻译器:
[translation]
adapter = array
content.english["emailNotUnique"] = "Your user already exists"
content.english["Value is required and can't be empty"] = "You must specify your ID"
locale = en
上述配置根据Zend翻译规范生成了一个有效的数组,因此:
$this -> form -> setTranslator(new Zend_Translate($this -> getConfig() -> translation));
期望的结果是isEmpty错误现在应该显示为
You must specify your ID
然而我没有得到任何帮助。没有错误和翻译。我使用的是Zend 1.11.1和PHP5.3.5。