[horde] SyncML home/workcountry doesn't use Horde_Nls

Jan Schneider jan at horde.org
Tue Aug 7 16:37:50 UTC 2012


Zitat von Arjen de Korte <arjen+horde at de-korte.org>:

> Citeren Arjen de Korte <arjen+horde at de-korte.org>:
>
>> Citeren Jan Schneider <jan at horde.org>:
>>
>>> Zitat von Arjen de Korte <arjen+horde at de-korte.org>:
>>>
>>>> When I enter the home/workcountry for a contact, the countries  
>>>> are listed dutch (the active locale) here. However, when I sync  
>>>> the contacts with my mobile phone through SyncML, they show up  
>>>> translated to english.
>>>>
>>>> Possibly related to this, if I enter a new contact on my mobile  
>>>> phone and happen to enter the home/workcountry in dutch (instead  
>>>> of english) the country is not sync'd at all.
>>>>
>>>> Is there a reason for not using the active locale for syncing  
>>>> trough SyncML?
>>>
>>> We might already do this, did you try setting your language in the  
>>> preferences explicitly?
>>
>> Yes, it is set. When entering a home/workcountry in Turba, the list  
>> of countries is shown in the configured language setting (and  
>> follows a change in the language setting in the preferences).  
>> However, the data sent to the phone seems to ignore the language  
>> from the preferences and therefor it will not be translated. This  
>> looks a little weird. I'll post the data collected in /tmp/sync  
>> later today.
>
> See the attached 'data.txt'. Both on the server and on the phone I  
> created an entry with homecountry set to 'Nederland'. On the server  
> by selecting it from the drop-down list and on the phone by typing  
> it in. The synchronization in the phone-to-server direction results  
> in the homecountry missing on the server. Apparently, it can't map  
> 'Nederland' to 'NL'. It is also clear that the server sends the  
> homecountry in english, despite the fact that the user preference is  
> set to dutch. Am I doing something wrong here?

No, but like I said, there is no way to determine what the client  
expects. It could be English, it could be the local language, it could  
be the ISO code. Using English might simply be the best bet.
-- 
Jan Schneider
The Horde Project
http://www.horde.org/



More information about the horde mailing list