开发者

how to solve zend_translate problem with some keywords?

i am 开发者_如何学运维using zend_translate class (ini adaptor) for my multi language site.

but when i use some keywords in my language files it produce error. for example (yes, no keywords).

sample language file entries which produce error:

yes=native language yes

no=native language no

how do i solve this problem?

thx in advance.


So from the documentation

INI files have several restrictions. If a value in the ini file contains any non-alphanumeric characters it needs to be enclosed in double-quotes ("). There are also reserved words which must not be used as keys for ini files. These include: NULL, yes, no, TRUE, and FALSE. Values NULL, no and FALSE results in "", yes and TRUE results in 1. Characters {}|&~![()" must not be used anywhere in the key and have a special meaning in the value. Do not use them as it will produce unexpected behaviour.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜