[Yanel-dev] language handling
Josias Thöny
josias.thoeny at wyona.com
Fri Nov 16 12:24:18 CET 2007
Michael Wechner wrote:
> Hi
>
> I just noticed within the resource class that it is now using the
> language handler and have two questions
>
> /**
> * Get language (localization) with the following priorization: <br><br>
> * 1) yanel.meta.language query string parameter<br>
> * 1.5) Realm-specific cookie
> * 2) Accept-Language header<br>
> * 3) Realm default language<br>
> * 4) Default "en"<br>
> */
> public String getRequestedLanguage() throws Exception {
> return
> getRealm().getLanguageHandler().getLocalizationLanguage(this);
>
> }
>
>
> 1) Wouldn't it make sense to move the javadoc into the Default Language
> Handler?
Yes, whereas it has already been added to the DefaultLanguageHandler.
I just removed it from the Resource now. Thanks for pointing this out.
> 2) What is realm specific cookie?
Some time ago I wanted to save the language in a cookie. This comment
was accidentally committed, and I have removed it now.
>
> and a third
>
> 3) Is there documentation how to use a realm specific language handler?
Not yet, but it's on my todo list.
josias
>
> Thanks
>
> Michi
>
More information about the Yanel-development
mailing list