impresspages / ImpressPages

ImpressPages is php framework with admin panel. Build functional website in one hour.
http://www.impresspages.org
Other
501 stars 178 forks source link

__() return publicLocale in admin pannel rather than adminLocale #756

Closed chouex closed 8 years ago

chouex commented 8 years ago

adminLocale:en, publicLocale:zh_tw screen shot 2015-09-15 at 12 05 55

en language is exist screen shot 2015-09-15 at 12 09 12

before execure \Zend\I18n\Translator\Translator::translate the last setLocal call at Ip/Internal/Translations/Translator.php:55 [970edd5] it set local to zh_tw

maskas commented 8 years ago

Admin uses the same translation functions. It is just the namespace which makes the difference. Do you execute setLocale manually? Where is the actual issue? Translations function __ isn't working properly or admin view translations are mixed with public translations? Is that marked widget your custom widget?

chouex commented 8 years ago

not a bug.

i misunderstand admin and public translations is in the same file and language select by controller.

the file name should be *-admin-en.json for translations use in admin panel.