dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #02621
Re: Translate Organisation unit name
Dear Lars,
Can you have a quickly view at "*DefaultI18nService.java*" file into ***
dhis-i18n-db* package ?
I wanna ask you about the method is
"Map<String, String> *convertTranslations*( Collection<Translation>
translations )"
I think that this method which is ONLY RIGHT if and only if the specified
Collection contains only one and only one result that returned from *
getTranslations()* or one Translation object with an another understanding.
Although, this method returns a collection of Translation objects.
That means is convertTranslations() method will return only ONE unique KEY
for ONE unique VALUE which is contained into Map.
So, what will be happened if we have got a Collection that contains so many
Translation objects but the same properties (such as: name, shortname,
description, etc...).
I have an suggestion for that issue. We should make a combinative key
between the object's ID and object's property. And the key will have a form
as <Integer, String>.
How about your opinion on this problem ?
Is that a real problem as I think or maybe I'm wrong ?
Thank you so much !
2009/10/19 Thuy Nguyen <thuy.hispvietnam@xxxxxxxxx>
> Yes, Hieu is doing this.
>
> 2009/10/19 Lars Helge Øverland <larshelge@xxxxxxxxx>
>
>
>>
>> 2009/10/19 Thuy Nguyen <thuy.hispvietnam@xxxxxxxxx>
>>
>>> Hi Lars,
>>> There is a *Translate *button beside the Organisation Unit name. I try
>>> entering the Org Unit name by English. But I couldn't know how to display
>>> this English name although I choose English language in Setting. Could you
>>> please tell me what is this Translate button used for? And which case will
>>> the English name be displayed?
>>>
>>> --
>>>
>>
>>
>> I'm afraid this is a known bug. Most of the code is in dhis-i18n-db,
>> please have a look if you want to. Otherwise Bharath or I will fix it later.
>>
>> Lars
>>
>
>
>
> --
> --
> Thuy
> HISP Vietnam
> +84902079126
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs<https://launchpad.net/%7Edhis2-devs>
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs<https://launchpad.net/%7Edhis2-devs>
> More help : https://help.launchpad.net/ListHelp
>
>
--
Hieu.HISPVietnam
Good Health !
Follow ups
References