2010-08-20 5 views
1

내 다중 언어 사이트에 대해 zend_translate 클래스 (ini 어댑터)를 사용하고 있습니다.몇 가지 키워드로 zend_translate 문제를 해결하는 방법?

하지만 내 언어 파일에서 일부 키워드를 사용하면 오류가 발생합니다. 예 (예, 키워드 없음). 오류가 발생

샘플 언어 파일 항목 :

예 = 모국어 예

없음 = 모국어 더

는이 문제를 어떻게 해결합니까?

xx 미리.

+0

에서 나는 당신의 질문을 이해할 수 없습니다. 그것을 수정하거나 당신이 가지고있는 코드를 올리는 것을 시도하십시오. 나는 당신을 도울 수 없기 때문입니다. 하지만 Zend_Translate를 많이 사용했습니다. – Iznogood

+0

어떤 오류 메시지가 나타 납니까? 귀하의 맥락에서 키워드 란 무엇입니까? 어떤 종류의 번역 파일을 사용하고 있습니까? – Iznogood

+0

zend_translate가 'yes', 'no'와 같은 특별한 단어에 문제가 있음을 의미합니다. 경고 : C :의 첫 번째 줄에 E : \ work \ web \ tadbir/application/admin/languages ​​/ fa.ini 구문 분석 오류가 발생했습니다. \ Program Files \ xampp \ php \ Zend \ Translate \ Adaptor \ Ini.php on line 69 경고 : array_merge() [function.array-merge] : 인수 2는 C : \ Program Files \ xampp의 배열이 아닙니다. \ php \ Zend \ Translate \ Adapter \ Ini.php on line 74 치명적인 오류 : 477 행의 C : \ Program Files \ xampp \ php \ Zend \ Translate \ Adapter.php에 지원되지 않는 피연산자 유형 –

답변

0

그래서 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.

관련 문제