2011-01-05 25 views
0

我在我的項目中使用Zend_Translate與ini適配器。Zend_Translate類和空格字符

我想知道如何在我的ini文件中使用空格字符。

樣品:

ini file: 
Show All = my translation // there is space between Show & All 

view scipt: 
echo $this->translate('Show All') // it doesnt translate 
+1

僅僅因爲INI語法不允許它是不可能的。此外,任何文本數據都應該用「(雙引號)包裝,特別是如果包含空格和製表符字符 – 2011-01-05 10:09:40

回答

4

你不能(至少我不知道的方式),但你得到它有點不對勁,想到的第一個參數(「全部顯示」)作爲一個常量或一個變量,女巫的一些內容會在certan場景中改變。例如,我會使用$this->translate("SHOW_ALL");