简体   繁体   中英

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:
Show 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"); .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM