HTML Language Value

Permalink
Hello!

I'm very happy with the Multilanguage functionality, it's really welcome.
..But I have a small question, did anything changed related to :
<?php echo Localization::activeLanguage()?>


I set one page to be in French and I checked that the HTML was updated and showed FR but when I set to be in Chinese I found that the HTML was set to EN.

Added the Chinese Language Pack to Concrete5 and it worked, now the HTML show ZH.
application/languages/zh_CN/LC_MESSAGES/messages.mo

This way of adding languages it's valid following the best Concrete5 practices?
The translation file must be available to make HTML work correctly?

Great job!!

pedroserapio
 
andrew replied on at Permalink Reply
andrew
Yes, currently the language pack has to be available for the Localization::activeLanguage() function to work. We are investigating how to rewrite setLocale() to work in cases where this isn't the case.