开发者

Zend_Translate class and space character

I am using Zend_Translate with ini adapter in my project.

I want to know how it is possible to use space character in my ini file.

Sample:

ini file:
开发者_如何学JAVAShow All = my translation // there is space between Show & All

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


You can't ( atleast i don't know a way ) , but you got it a bit wrong , think of the first parameter ( "Show All" ) as a constant or a variable , witch has some content that will changed in certan scenarios . For example i would use $this->translate("SHOW_ALL"); .

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜