[sync] turba adressbook sync umlauts

Thomas thomas at mebes.name
Wed Feb 13 09:40:42 UTC 2008


Hello Jan,

Thank you very much for getting back to me so quick.
I dont know what the file "iCalendar" has to do with the mutulated  
vowel, but it helped. Now ü ä ö ß € are being displayed correctly.

Also i would like to add that for me, the array "cellPhone" and  
"email" were not enough.
Many times there are private and buisiness emails and cellphone numbers.

So I added more arrays:

array identifier: cellPhonePrivate, emailPRivate
array in db: object_cellphoneprivate, object_emailprivate

Both were extended into the "communications" tab.

This should usall be no problem, when syncronizing however, both are missing.
To make it work i had to edit the file: turba/lib/Driver.php

I dont know if its a bug, but if I delete a detail on the cellphone,  
(eg. delete an array),
it tells me when syncronizing: "somethign has changed". Turba however  
only recives only arrays that still have content.

Therefore the array "fax" or "Company" is not being send empty, but  
its not sent at all.
This way turba doesnt know tha the array is emtpy and keeps the array  
the way it is.

I deleted the following:
in function "toHash"
<code>
This resets all array names to NULL ('') and they later fill up as  
input appears.

Its for sure no a clean solution, but i dont know the code well enogh.

I added the 4 patched files: turba/lib/Driver.php, turba/po/de_DE.po,  
turba/config/attributes.php und, turba/config/sources.php


----- Nachricht von jan at horde.org ---------
      Datum: Tue, 12 Feb 2008 01:03:24 +0100
        Von: Jan Schneider <jan at horde.org>
    Betreff: Re: [sync] turba adressbook sync umlauts
         An: sync at lists.horde.org


> Zitat von Thomas <thomas at mebes.name>:
>
>> Hello,
>>
>> i have errors with my umlauts:  ü ö ä ß
>>
>> for a few weeks ago i have sync all my contacts horde>mobilephone.
>> thats works wunderful.
>>
>> now, if i sync my adressbook/turba, if I change a record on
>> horde-site, with a umlaut, example: "Thomas MebesÜ" then i can't see
>> the "lastname" in my phone, only the firstname.
>>
>> with "Thomas ThomasUE" its works.
>>
>> if i change a contact on the phone-site, with a umlaut, i have no problems.
>>
>> the data.txt said:
>>
>> if i have on my phone site:
>> N;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:Test=20=C3=A4;Test;;;^
>>
>> if i have on my turba/horde site:
>> N;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:^
>> Test =C3=A4;Test;;;^
>>
>> i can't find an error.
>
> Both look perfectly valid. Can you try if reverting iCalendar.php to
> this version changes anything:
> http://cvs.horde.org/co.php?r=1.130&f=framework%2FiCalendar%2FiCalendar.php
>
> Jan.
>
> --
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
> --
> sync mailing list - Join the hunt: http://horde.org/bounties/#sync
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: sync-unsubscribe at lists.horde.org
>


----- Ende der Nachricht von jan at horde.org -----






Liebe Gruesse

Thomas

--------------------------------------------------------------
Kirchenstr. 95 | 81675 Muenchen

Telefon: +49 (0) 89 41 07 48 49
Fax: +49 (0) 178 99 63 23 765
Mobile: +49 (0) 178 63 23 765
--------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attributes_patch.php
Type: audio/mpeg3
Size: 1344 bytes
Desc: not available
Url : http://lists.horde.org/archives/sync/attachments/20080213/c93d9ad0/attachment-0003.bin 
-------------- next part --------------
--- de_DE1.po	2007-12-16 17:22:07.000000000 +0100
+++ de_DE.po	2008-02-12 14:53:27.000000000 +0100
@@ -449,6 +449,10 @@
 msgid "Email"
 msgstr "E-Mail"
 
+#: config/attributes.php.dist:237
+msgid "Email Private"
+msgstr "E-Mail privat"
+
 #: config/attributes.php.dist:243
 msgid "Emails"
 msgstr "E-Mail-Adressen"
@@ -753,6 +757,10 @@
 msgid "Mobile Phone"
 msgstr "Telefon mobil"
 
+#: config/attributes.php.dist:259
+msgid "Mobile Phone Private"
+msgstr "Telefon mobil privat"
+
 #: lib/Driver/ldap.php:340 lib/Driver/ldap.php:356
 #, php-format
 msgid "Modify failed: (%s) %s"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Driver_patch.php
Type: audio/mpeg3
Size: 3180 bytes
Desc: not available
Url : http://lists.horde.org/archives/sync/attachments/20080213/c93d9ad0/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sources.php
Type: audio/mpeg3
Size: 12728 bytes
Desc: not available
Url : http://lists.horde.org/archives/sync/attachments/20080213/c93d9ad0/attachment-0005.bin 


More information about the sync mailing list