views:

20

answers:

1

hi all,

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.

A: 

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.

Iznogood