[Yanel-dev] translation manager

Michael Wechner michael.wechner at wyona.com
Fri Nov 16 15:44:06 CET 2007


Josias Thöny wrote:

> Michael Wechner wrote:
>
>> Hi
>>
>> Wouldn't it make sense to refactor
>>
>> <languages>
>>    <language>en</language>
>>    <language>de</language>
>>    <language>es</language>
>>  </languages>
>>  <translation-manager 
>> class="org.wyona.yanel.core.attributes.translatable.PrefixTranslationManager"/> 
>>
>>
>>
>> to
>>
>> <translation-manager 
>> class="org.wyona.yanel.core.attributes.translatable.PrefixTranslationManager"> 
>>
>> <languages>
>>    <language>en</language>
>>    <language>de</language>
>>    <language>es</language>
>>  </languages>
>> </translation-manager>
>>
>> resp. for default
>>
>> <translation-manager>
>> <languages>
>>    <language>en</language>
>>    <language>de</language>
>>    <language>es</language>
>>  </languages>
>> </translation-manager>
>>
>>
>> WDYT?
>
>
> If we say that the languages are a property of the TranslationManager 
> then we probably should also change the interface from
>
> realm.getLanguages()
> to
> realm.getTranslationManager().getLanguages()


agreed

>
> I'm not sure if this adds much benefit, though.


well, I think it would clear in what context these languages are being used

> To me it doesn't seem wrong to say the languages are a direct property 
> of the realm.


you mean like other components could also make use of them? Like for 
instance a creator?

But wouldn't it be better that these other components are calling the 
TranslationManager which is acting as central component?

Cheers

Michi

>
> josias
>
>>
>> Of course we need to ask ourselves re backwards compatbility ...
>>
>> Cheers
>>
>> 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