[Yanel-dev] language handling

Michael Wechner michael.wechner at wyona.com
Fri Nov 16 15:21:57 CET 2007


Josias Thöny wrote:

> 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.


thanks

>
>> 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.


ok

>
>>
>> and a third
>>
>> 3) Is there documentation how to use a realm specific language handler?
>
>
> Not yet, but it's on my todo list.


thanks

Michi

>
> josias
>
>>
>> Thanks
>>
>> Michi
>>
>
> _______________________________________________
> Yanel-development mailing list
> Yanel-development at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development



-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61



More information about the Yanel-development mailing list