I'm trying to implement a custom authentication module (tested with the 
travel-demo site), but have encountered some i18n problems.

What is the right way to get current page language from Java code? As I can 
see, MgnlContext.getLocale() & 
MgnlContext.getWebContextOrNull().getAggregationState().getLocale() for the 
anonymous user returns locale, set up in his profile, not a page locale. 
Previous version (4.X) worked differently.

Also, I'm trying to get i18n-ed messages, using a "new" scheme with a 
SimpleTranslator injection, and when
calling the i18n.translate() method, it always returns "en" version of message 
bundle strings, disregarding profile settings and page language.
(my message bundle contains three properties files with "en", "ru" and "de" 
versions). And there are no errors in the log. At the same time Java native 
"old" scheme shows messages correctly.

Magnolia 5.5.1 EE Standard (set up from all-in-one bundle)

Any help will be appreciated,

Thank you

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=5a963c4a-1c15-469c-98e5-5c8a6303f021


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to