Hi Mateo,
I also use Magnolia EE with DefaultI18nContentSupport.
To get the current locale, you can use: ${aggregationState.locale}
${ctx.locale} is the locale of the current User.
For the public instance, this would be the locale of the "Anonymous" user.
Regards,
Bobi.
> Hi all,
> 18n is a "hot topic" in this period and I would like to add another
> brick to that wall...
>
> In short: is a decision of mine which i18n content support policy to
> adopt on my Magnolia instance.
> BUT:
>
> if I use EE..
> if I go back to Default18nContentSupport impl..
> if I use STK..
>
> I'm not able to use stk objects (page, content, model...) in order to
> retrieve content. Unless those objects are supported by i18n-aware Java
> classes, like navigation does.
>
> So, I need to use @cms macros.
>
> But how can I retrieve the current locale?
> E.g.:
>
> http://host:port/ctx/myPage.html
> --> ${ctx.locale} = en
>
> http://host:port/ctx/it/myPage.html
> --> ${ctx.locale} = en
>
> ${ctx.locale} is an object instantiate by stk and with Defaulti18n it
> doesn't work.
> I do not have JSP taglibs support.
>
> So?
> I can of course extend Magnolia, but I'm too lazy.. and confident that
> this feature (combiantion of features) is already implemented...
>
> Thanks for help and think support :-)
> Matteo
>
--
Travel in and around Zürich with our free iPhone application Wemlin:
http://mobile.netcetera.ch/wemlin
Bozidar Ilievski | [email protected] phone +389 -2- 30 64
532 | fax +389 -2- 30 79 495 Netcetera | 1000 Skopje | Macedonia |
http://netcetera.com.mk
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------