-rw-r--r-- | bin/kdepim/WhatsNew.txt | 3 | ||||
-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 6 | ||||
-rw-r--r-- | kaddressbook/xxport/vcard_xxport.cpp | 8 |
3 files changed, 16 insertions, 1 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index fd2da1a..f9b79ae 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,67 +1,70 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 2.2.4 ************ | 3 | ********** VERSION 2.2.4 ************ |
4 | 4 | ||
5 | KO/Pi alarm applet: Made font smaller and added a dealy before starting KO/Pi to avoid problems accessing data storage when an alarm did wake up the Z. | 5 | KO/Pi alarm applet: Made font smaller and added a dealy before starting KO/Pi to avoid problems accessing data storage when an alarm did wake up the Z. |
6 | 6 | ||
7 | KO/Pi: | 7 | KO/Pi: |
8 | Added export option for all data to File->Export menu. | 8 | Added export option for all data to File->Export menu. |
9 | Better management if a save error occours. | 9 | Better management if a save error occours. |
10 | Added 15 sec delay in automatic saving when Z wake up from suspend and the automatic save timer did expire - to avoid problems accessing data storage directly after wake up. | 10 | Added 15 sec delay in automatic saving when Z wake up from suspend and the automatic save timer did expire - to avoid problems accessing data storage directly after wake up. |
11 | Fix for displaying month names of an utf8 translated language (like Russian). Thanks to Tanya, Russian version of KO/Pi will be available soon. | 11 | Fix for displaying month names of an utf8 translated language (like Russian). Thanks to Tanya, Russian version of KO/Pi will be available soon. |
12 | 12 | ||
13 | KA/Pi: | ||
14 | Added for vCard import the option to import contact data in Latin1 format. | ||
15 | |||
13 | ********** VERSION 2.2.3 ************ | 16 | ********** VERSION 2.2.3 ************ |
14 | 17 | ||
15 | KO/Pi: | 18 | KO/Pi: |
16 | Fixed a problem with (non empty) exception dates in the exception date edit dialog of recurring events for newly created events. | 19 | Fixed a problem with (non empty) exception dates in the exception date edit dialog of recurring events for newly created events. |
17 | 20 | ||
18 | Fixed usability problem in KA/Pi: | 21 | Fixed usability problem in KA/Pi: |
19 | Now searching works for "all phone numbers and all addresses" if "all fields" is selected as search option. | 22 | Now searching works for "all phone numbers and all addresses" if "all fields" is selected as search option. |
20 | 23 | ||
21 | Changed some behaviour in OM/Pi mail management to make it more usable. | 24 | Changed some behaviour in OM/Pi mail management to make it more usable. |
22 | 25 | ||
23 | 26 | ||
24 | ********** VERSION 2.2.2 ************ | 27 | ********** VERSION 2.2.2 ************ |
25 | 28 | ||
26 | KO/Pi: | 29 | KO/Pi: |
27 | Fixed a problem with the sort order of last modified date in list view. | 30 | Fixed a problem with the sort order of last modified date in list view. |
28 | KA/Pi: | 31 | KA/Pi: |
29 | Fixed a resource config read problem on windows. | 32 | Fixed a resource config read problem on windows. |
30 | 33 | ||
31 | 34 | ||
32 | ********** VERSION 2.2.1 ************ | 35 | ********** VERSION 2.2.1 ************ |
33 | 36 | ||
34 | KO/Pi: | 37 | KO/Pi: |
35 | Fixed a problem displaying very long allday events in agenda view in single day mode. | 38 | Fixed a problem displaying very long allday events in agenda view in single day mode. |
36 | Fixed a problem with the default settings for new todos. | 39 | Fixed a problem with the default settings for new todos. |
37 | Added an error message dialog if saving of calendar files is not possible. | 40 | Added an error message dialog if saving of calendar files is not possible. |
38 | Made it impossible to close KO/Pi if saving fails. | 41 | Made it impossible to close KO/Pi if saving fails. |
39 | Fixed a problem adding calendars on windows such that these calendars can be used on the memory stick. | 42 | Fixed a problem adding calendars on windows such that these calendars can be used on the memory stick. |
40 | Added config options for conflict detection. | 43 | Added config options for conflict detection. |
41 | 44 | ||
42 | KA/Pi: | 45 | KA/Pi: |
43 | Added a config option to turn on asking before a contact is deleted. | 46 | Added a config option to turn on asking before a contact is deleted. |
44 | Fixed a problem with the default view and view selection at startup. | 47 | Fixed a problem with the default view and view selection at startup. |
45 | Formatted name is now set on import, if formatted name is empty. | 48 | Formatted name is now set on import, if formatted name is empty. |
46 | Fixed a problem of displaying images in the contact details view: | 49 | Fixed a problem of displaying images in the contact details view: |
47 | Now the wid/hei ratio is not changed. | 50 | Now the wid/hei ratio is not changed. |
48 | I a picture is larger than 128 pixels in wid or hei it is downscaled to | 51 | I a picture is larger than 128 pixels in wid or hei it is downscaled to |
49 | max 128 pixels wid/hei. | 52 | max 128 pixels wid/hei. |
50 | 53 | ||
51 | ********** VERSION 2.2.0 ************ | 54 | ********** VERSION 2.2.0 ************ |
52 | 55 | ||
53 | New stable release! | 56 | New stable release! |
54 | Fixed some minor usability problems. | 57 | Fixed some minor usability problems. |
55 | Added writing of next alarm to a file for usage on pdaXrom. | 58 | Added writing of next alarm to a file for usage on pdaXrom. |
56 | 59 | ||
57 | 60 | ||
58 | ************************************* | 61 | ************************************* |
59 | 62 | ||
60 | You can find the complete changelog | 63 | You can find the complete changelog |
61 | from version 1.7.7 to 2.2.0 | 64 | from version 1.7.7 to 2.2.0 |
62 | in the source package or on | 65 | in the source package or on |
63 | 66 | ||
64 | http://www.pi-sync.net/html/changelog.html | 67 | http://www.pi-sync.net/html/changelog.html |
65 | 68 | ||
66 | 69 | ||
67 | 70 | ||
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index ece26d2..8dd0a52 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt | |||
@@ -624,197 +624,203 @@ | |||
624 | { "Your personal contact is\nnot set! Please select it\nand set it with menu:\nSettings - Set Who Am I\n","Ihr persönlicher Kontakt ist\nnicht gesetzt! Bitte selektieren Sie\nihn und setzen ihn mit Menu:\nKonfiguration - Setze wer bin ich\n" }, | 624 | { "Your personal contact is\nnot set! Please select it\nand set it with menu:\nSettings - Set Who Am I\n","Ihr persönlicher Kontakt ist\nnicht gesetzt! Bitte selektieren Sie\nihn und setzen ihn mit Menu:\nKonfiguration - Setze wer bin ich\n" }, |
625 | { "<qt>Do you really want to use <b>%1</b> as your new personal contact?</qt>","<qt>Wollen Sie wirklich<br><b>%1</b><br>als persönlichen Kontakt setzent?</qt>" }, | 625 | { "<qt>Do you really want to use <b>%1</b> as your new personal contact?</qt>","<qt>Wollen Sie wirklich<br><b>%1</b><br>als persönlichen Kontakt setzent?</qt>" }, |
626 | { "Cut","Ausschneiden" }, | 626 | { "Cut","Ausschneiden" }, |
627 | { "Paste","Einfügen" }, | 627 | { "Paste","Einfügen" }, |
628 | { "Delete","Löschen" }, | 628 | { "Delete","Löschen" }, |
629 | { "Choose...","Wähle..." }, | 629 | { "Choose...","Wähle..." }, |
630 | { "Add View","Ansicht hinzufügen" }, | 630 | { "Add View","Ansicht hinzufügen" }, |
631 | { "View name:","Ansicht Name:" }, | 631 | { "View name:","Ansicht Name:" }, |
632 | { "View Type","Typ der Ansicht" }, | 632 | { "View Type","Typ der Ansicht" }, |
633 | { "Icons represent contacts. Very simple view.","Icons repräsentieren Kontakte. Sehr einfache Ansicht." }, | 633 | { "Icons represent contacts. Very simple view.","Icons repräsentieren Kontakte. Sehr einfache Ansicht." }, |
634 | { "A listing of contacts in a table. Each cell of the table holds a field of the contact.","Eine Kontaktliste in einer Tabelle." }, | 634 | { "A listing of contacts in a table. Each cell of the table holds a field of the contact.","Eine Kontaktliste in einer Tabelle." }, |
635 | { "Rolodex style cards represent contacts.","Rolodex Stil Karten repräsentieren Kontakte." }, | 635 | { "Rolodex style cards represent contacts.","Rolodex Stil Karten repräsentieren Kontakte." }, |
636 | { "Draw &separators","Zeichne &Trennlinie" }, | 636 | { "Draw &separators","Zeichne &Trennlinie" }, |
637 | { "Separator &width:","Trennlinien &Breite:" }, | 637 | { "Separator &width:","Trennlinien &Breite:" }, |
638 | { "&Padding:","Füllung:" }, | 638 | { "&Padding:","Füllung:" }, |
639 | { "Cards","Karten" }, | 639 | { "Cards","Karten" }, |
640 | { "&Margin:","&Rand:" }, | 640 | { "&Margin:","&Rand:" }, |
641 | { "Draw &borders","Zeichne Ränder" }, | 641 | { "Draw &borders","Zeichne Ränder" }, |
642 | { "The item margin is the distance (in pixels) between the item edge and the item data. Most noticeably, incrementing the item margin will add space between the focus rectangle and the item data.","The item margin is the distance (in pixels) between the item edge and the item data. Most noticeably, incrementing the item margin will add space between the focus rectangle and the item data." }, | 642 | { "The item margin is the distance (in pixels) between the item edge and the item data. Most noticeably, incrementing the item margin will add space between the focus rectangle and the item data.","The item margin is the distance (in pixels) between the item edge and the item data. Most noticeably, incrementing the item margin will add space between the focus rectangle and the item data." }, |
643 | { "The Item Spacing decides the distance (in pixels) between the items and anything else: the view borders, other items or column separators.","The Item Spacing decides the distance (in pixels) between the items and anything else: the view borders, other items or column separators." }, | 643 | { "The Item Spacing decides the distance (in pixels) between the items and anything else: the view borders, other items or column separators.","The Item Spacing decides the distance (in pixels) between the items and anything else: the view borders, other items or column separators." }, |
644 | { "Sets the width of column separators","Sets the width of column separators" }, | 644 | { "Sets the width of column separators","Sets the width of column separators" }, |
645 | { "&Layout","&Layout" }, | 645 | { "&Layout","&Layout" }, |
646 | { "Show &empty fields","Zeige leere Felder" }, | 646 | { "Show &empty fields","Zeige leere Felder" }, |
647 | { "Show field &labels","Zeige Feld Label" }, | 647 | { "Show field &labels","Zeige Feld Label" }, |
648 | { "Be&havior","Ver&halten" }, | 648 | { "Be&havior","Ver&halten" }, |
649 | { "Header, Border and Separator Color","Kopf, Rand und Trennlinien Farbe" }, | 649 | { "Header, Border and Separator Color","Kopf, Rand und Trennlinien Farbe" }, |
650 | { "<qt>Are you sure that you want to delete the view <b>%1</b>?</qt>","<qt>Sind Sie sicher, dass Sie die Ansicht <b>%1</b> löschen möchten?</qt>" }, | 650 | { "<qt>Are you sure that you want to delete the view <b>%1</b>?</qt>","<qt>Sind Sie sicher, dass Sie die Ansicht <b>%1</b> löschen möchten?</qt>" }, |
651 | { "Confirm Delete","Bestätige Löschen" }, | 651 | { "Confirm Delete","Bestätige Löschen" }, |
652 | { "Edit Address Book Filter","Editiere Adressbuch Filter" }, | 652 | { "Edit Address Book Filter","Editiere Adressbuch Filter" }, |
653 | { "Category rule","Kategorie Regel" }, | 653 | { "Category rule","Kategorie Regel" }, |
654 | { "Include categories","Inklusive" }, | 654 | { "Include categories","Inklusive" }, |
655 | { "Exclude categories","Exclusive" }, | 655 | { "Exclude categories","Exclusive" }, |
656 | { "Include contacts, that are:","Schließe folgende Kontakte ein:" }, | 656 | { "Include contacts, that are:","Schließe folgende Kontakte ein:" }, |
657 | { "public","Öffentlich" }, | 657 | { "public","Öffentlich" }, |
658 | { "private","Privat" }, | 658 | { "private","Privat" }, |
659 | { "confidential","Vertraulich" }, | 659 | { "confidential","Vertraulich" }, |
660 | { "Configure Resources","Konfiguriere Resourcen" }, | 660 | { "Configure Resources","Konfiguriere Resourcen" }, |
661 | { "Resource Configuration","Resource Konfiguration" }, | 661 | { "Resource Configuration","Resource Konfiguration" }, |
662 | { "Resources","Resourcen" }, | 662 | { "Resources","Resourcen" }, |
663 | { "Standard","Standard" }, | 663 | { "Standard","Standard" }, |
664 | { "&Use as Standard","Setze als Standard" }, | 664 | { "&Use as Standard","Setze als Standard" }, |
665 | { "Select type of the new resource:","Selektiere Typ der neuen Resource:" }, | 665 | { "Select type of the new resource:","Selektiere Typ der neuen Resource:" }, |
666 | { "General Settings","Allgemeine Einstellungen" }, | 666 | { "General Settings","Allgemeine Einstellungen" }, |
667 | { "Read-only","Nur-Lesen" }, | 667 | { "Read-only","Nur-Lesen" }, |
668 | { "Include in sync","Schließe in Sync mit ein" }, | 668 | { "Include in sync","Schließe in Sync mit ein" }, |
669 | { "%1 Resource Settings","%1 Resource Einstellungen" }, | 669 | { "%1 Resource Settings","%1 Resource Einstellungen" }, |
670 | { "Format:","Format:" }, | 670 | { "Format:","Format:" }, |
671 | { "Location:","Ort:" }, | 671 | { "Location:","Ort:" }, |
672 | { "Full Menu bar (restart)","Volle Menu Leiste (Neustart!)" }, | 672 | { "Full Menu bar (restart)","Volle Menu Leiste (Neustart!)" }, |
673 | { "Language","Sprache" }, | 673 | { "Language","Sprache" }, |
674 | { "Time Format","Zeit Format" }, | 674 | { "Time Format","Zeit Format" }, |
675 | { "Time Zone","Zeit Zone" }, | 675 | { "Time Zone","Zeit Zone" }, |
676 | { "Data storage path","Daten Speicherpfad" }, | 676 | { "Data storage path","Daten Speicherpfad" }, |
677 | { "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" }, | 677 | { "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" }, |
678 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, | 678 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, |
679 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, | 679 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, |
680 | { "Save settings","Speichere Einstellungen" }, | 680 | { "Save settings","Speichere Einstellungen" }, |
681 | { "Save standard","Speichere Standard" }, | 681 | { "Save standard","Speichere Standard" }, |
682 | { "Save","Speichern" }, | 682 | { "Save","Speichern" }, |
683 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, | 683 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, |
684 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, | 684 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, |
685 | { "Multiple Sync options","Multi Sync Optionen" }, | 685 | { "Multiple Sync options","Multi Sync Optionen" }, |
686 | { "Sync algo options","Sync Ablauf Optionen" }, | 686 | { "Sync algo options","Sync Ablauf Optionen" }, |
687 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, | 687 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, |
688 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, | 688 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, |
689 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, | 689 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, |
690 | { "Write back options","Optionen zum Zurückschreiben" }, | 690 | { "Write back options","Optionen zum Zurückschreiben" }, |
691 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, | 691 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, |
692 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, | 692 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, |
693 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, | 693 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, |
694 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, | 694 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, |
695 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, | 695 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, |
696 | { "Time period","Zeitspanne" }, | 696 | { "Time period","Zeitspanne" }, |
697 | { "From ","Von " }, | 697 | { "From ","Von " }, |
698 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, | 698 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, |
699 | { " weeks in the future "," Wochen in der Zukunft " }, | 699 | { " weeks in the future "," Wochen in der Zukunft " }, |
700 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, | 700 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, |
701 | { "Local temp file:","Lokale temp Datei:" }, | 701 | { "Local temp file:","Lokale temp Datei:" }, |
702 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, | 702 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, |
703 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, | 703 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, |
704 | { "You cannot remove your standard resource!\n Please select a new standard resource first.","Standard Resource kann\nnicht entfernt werden!\nBitte eine andere Resource\nals Standard setzen." }, | 704 | { "You cannot remove your standard resource!\n Please select a new standard resource first.","Standard Resource kann\nnicht entfernt werden!\nBitte eine andere Resource\nals Standard setzen." }, |
705 | { "Sorry","Tut mir leid" }, | 705 | { "Sorry","Tut mir leid" }, |
706 | { "You cannot use a read-only<br> resource as standard!","Man kann nicht eine read-only<br> Resource als Standard setzen!" }, | 706 | { "You cannot use a read-only<br> resource as standard!","Man kann nicht eine read-only<br> Resource als Standard setzen!" }, |
707 | { "Please restart to get the \nchanged resources (re)loaded!\n","Bitte starten Sie jetzt\ndas Programm neu, um die geänderten\nResourcen neu zu laden!\n" }, | 707 | { "Please restart to get the \nchanged resources (re)loaded!\n","Bitte starten Sie jetzt\ndas Programm neu, um die geänderten\nResourcen neu zu laden!\n" }, |
708 | { "The selected file does not\ninclude a valid vCard.\nPlease check the file and try again.\n","Die gewählte Datei enthält\nkeine gültige vCard.\nBitte prüfen Sie die Datei\nund versuchen es erneut.\n" }, | 708 | { "The selected file does not\ninclude a valid vCard.\nPlease check the file and try again.\n","Die gewählte Datei enthält\nkeine gültige vCard.\nBitte prüfen Sie die Datei\nund versuchen es erneut.\n" }, |
709 | { "Unable to load resource '%1'","Resource kann nicht geladen werden: '%1'" }, | 709 | { "Unable to load resource '%1'","Resource kann nicht geladen werden: '%1'" }, |
710 | { "Some changes are only\neffective after a restart!\n","Einige Änderungen werden erst\nnach einem Neustart übernommen!\n" }, | 710 | { "Some changes are only\neffective after a restart!\n","Einige Änderungen werden erst\nnach einem Neustart übernommen!\n" }, |
711 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, | 711 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, |
712 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, | 712 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, |
713 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, | 713 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, |
714 | { "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" }, | 714 | { "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" }, |
715 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, | 715 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, |
716 | { "Error","Fehler" }, | 716 | { "Error","Fehler" }, |
717 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, | 717 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, |
718 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, | 718 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, |
719 | { "Warning","Warnung" }, | 719 | { "Warning","Warnung" }, |
720 | { "Select week number","Wähle Wochen Nummer" }, | 720 | { "Select week number","Wähle Wochen Nummer" }, |
721 | { "Februar","Februar" }, | 721 | { "Februar","Februar" }, |
722 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, | 722 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, |
723 | { "Password for remote access:","Passwort für fernen Zugriff:" }, | 723 | { "Password for remote access:","Passwort für fernen Zugriff:" }, |
724 | { "Remote IP address:","Ferne IP Adresse:" }, | 724 | { "Remote IP address:","Ferne IP Adresse:" }, |
725 | { "Remote port number:","Ferne Port Nummer:" }, | 725 | { "Remote port number:","Ferne Port Nummer:" }, |
726 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, | 726 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, |
727 | { "Remote from: ","Fern von: " }, | 727 | { "Remote from: ","Fern von: " }, |
728 | { "Local from: ","Lokal von: " }, | 728 | { "Local from: ","Lokal von: " }, |
729 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out\n","Synchronisationsübersicht:\n\n %d lokal hinzugefügt\n %d fern hinzugefügt\n %d lokal geändert\n %d fern geändert\n %d lokal gelöscht\n %d fern gelöscht\n %d eingehende ausgefiltert\n %d ausgehende ausgefiltert\n" }, | 729 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out\n","Synchronisationsübersicht:\n\n %d lokal hinzugefügt\n %d fern hinzugefügt\n %d lokal geändert\n %d fern geändert\n %d lokal gelöscht\n %d fern gelöscht\n %d eingehende ausgefiltert\n %d ausgehende ausgefiltert\n" }, |
730 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, | 730 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, |
731 | { "Write back","Schreibe zurück" }, | 731 | { "Write back","Schreibe zurück" }, |
732 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, | 732 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, |
733 | { "Received sync request","Sync Anfrage erhalten" }, | 733 | { "Received sync request","Sync Anfrage erhalten" }, |
734 | { "Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog.","Ferne Synchronisation ...\n\nBenutze diese Anwendung nicht!\n\nWenn das Syncen fehlschlägt kann\ndieser Dialog geschlossen werden." }, | 734 | { "Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog.","Ferne Synchronisation ...\n\nBenutze diese Anwendung nicht!\n\nWenn das Syncen fehlschlägt kann\ndieser Dialog geschlossen werden." }, |
735 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, | 735 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, |
736 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, | 736 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, |
737 | { "Sending file...","Sende Datei..." }, | 737 | { "Sending file...","Sende Datei..." }, |
738 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, | 738 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, |
739 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, | 739 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, |
740 | { "Received %1 bytes","%1 Bytes erhalten" }, | 740 | { "Received %1 bytes","%1 Bytes erhalten" }, |
741 | { "Writing file to disk...","Speichere Datei..." }, | 741 | { "Writing file to disk...","Speichere Datei..." }, |
742 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, | 742 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, |
743 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, | 743 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, |
744 | { "Synchronize!","Synchronisiere!" }, | 744 | { "Synchronize!","Synchronisiere!" }, |
745 | { "High clock skew!","Großer Uhrzeitunterschied!" }, | 745 | { "High clock skew!","Großer Uhrzeitunterschied!" }, |
746 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, | 746 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, |
747 | { "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" }, | 747 | { "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" }, |
748 | { "Change search field enable jump bar","Ändere Suchfeld um Jumpbar anzuzeigen" }, | 748 | { "Change search field enable jump bar","Ändere Suchfeld um Jumpbar anzuzeigen" }, |
749 | { "Search with '*' prefix (wildcard)","Suche mit '*' Prefix (Wildcard)" }, | 749 | { "Search with '*' prefix (wildcard)","Suche mit '*' Prefix (Wildcard)" }, |
750 | { "Shrink searchfield in portrait view","Verkleinere Suchfeld im Portraitmodus" }, | 750 | { "Shrink searchfield in portrait view","Verkleinere Suchfeld im Portraitmodus" }, |
751 | { "Edit new contact","Bearbeite neuen Kontakt" }, | 751 | { "Edit new contact","Bearbeite neuen Kontakt" }, |
752 | { "Edit ","Bearbeite " }, | 752 | { "Edit ","Bearbeite " }, |
753 | { "No contact changed!","Kein Kontakt verändert" }, | 753 | { "No contact changed!","Kein Kontakt verändert" }, |
754 | { "%1 contacts changed!","%1 Kontakte geändert!" }, | 754 | { "%1 contacts changed!","%1 Kontakte geändert!" }, |
755 | { "Mobile (home)","Handy (Arbeit)" }, | 755 | { "Mobile (home)","Handy (Arbeit)" }, |
756 | { "Mobile (work)","Handy (Privat)" }, | 756 | { "Mobile (work)","Handy (Privat)" }, |
757 | { "Def.Formatted Name","Def. Format. Name" }, | 757 | { "Def.Formatted Name","Def. Format. Name" }, |
758 | { "Colors","Farben" }, | 758 | { "Colors","Farben" }, |
759 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, | 759 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, |
760 | { "Backup enabled","Backup angeschaltet" }, | 760 | { "Backup enabled","Backup angeschaltet" }, |
761 | { "Use standard backup dir","Standard Backupverzeichnis" }, | 761 | { "Use standard backup dir","Standard Backupverzeichnis" }, |
762 | { "Number of Backups:","Anzahl der Backups" }, | 762 | { "Number of Backups:","Anzahl der Backups" }, |
763 | { "Make backup every ","Mache ein Backup alle " }, | 763 | { "Make backup every ","Mache ein Backup alle " }, |
764 | { " days"," Tage" }, | 764 | { " days"," Tage" }, |
765 | { "Creating backup ... please wait ...","Erzeuge Backup ... bitte warten ..." }, | 765 | { "Creating backup ... please wait ...","Erzeuge Backup ... bitte warten ..." }, |
766 | { "Backup Failed!","Backup Problem!" }, | 766 | { "Backup Failed!","Backup Problem!" }, |
767 | { "Try again now","Versuche jetzt nochmal" }, | 767 | { "Try again now","Versuche jetzt nochmal" }, |
768 | { "Try again later","Versuche später nochmal" }, | 768 | { "Try again later","Versuche später nochmal" }, |
769 | { "Try again tomorrow","Versuche morgen nochmal" }, | 769 | { "Try again tomorrow","Versuche morgen nochmal" }, |
770 | { "Disable backup","Schalte Backup ab" }, | 770 | { "Disable backup","Schalte Backup ab" }, |
771 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, | 771 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, |
772 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, | 772 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, |
773 | { "Choose action","Wähle Aktion" }, | 773 | { "Choose action","Wähle Aktion" }, |
774 | { "&Configure KA/Pi...","Konfiguriere KA/Pi..." }, | 774 | { "&Configure KA/Pi...","Konfiguriere KA/Pi..." }, |
775 | { "Global Settings...","Globale Einstellungen..." }, | 775 | { "Global Settings...","Globale Einstellungen..." }, |
776 | { "Spouse","Ehegatte" }, | 776 | { "Spouse","Ehegatte" }, |
777 | { "Notes","Notizen" }, | 777 | { "Notes","Notizen" }, |
778 | { "Messanger","Messanger" }, | 778 | { "Messanger","Messanger" }, |
779 | { "Assistant","Assistent" }, | 779 | { "Assistant","Assistent" }, |
780 | { "Manager","Manager" }, | 780 | { "Manager","Manager" }, |
781 | { "Secrecy","Sichtbar" }, | 781 | { "Secrecy","Sichtbar" }, |
782 | { "male","männlich" }, | 782 | { "male","männlich" }, |
783 | { "female","weiblich" }, | 783 | { "female","weiblich" }, |
784 | { "Hide!","Verbergen!" }, | 784 | { "Hide!","Verbergen!" }, |
785 | { "Show!","Anzeigen!" }, | 785 | { "Show!","Anzeigen!" }, |
786 | { "Details","Details" }, | 786 | { "Details","Details" }, |
787 | { "Search:","Suche:" }, | 787 | { "Search:","Suche:" }, |
788 | { "Automatically sync with KDE-Desktop\nwhen receiving sync request","Synce automatisch mit KDE-Desktop\nwenn eine Sync-Anforderung kommt" }, | 788 | { "Automatically sync with KDE-Desktop\nwhen receiving sync request","Synce automatisch mit KDE-Desktop\nwenn eine Sync-Anforderung kommt" }, |
789 | { "Pi-Sync Port Error","Pi-Sync Port Fehler" }, | 789 | { "Pi-Sync Port Error","Pi-Sync Port Fehler" }, |
790 | { "<b>Enabling Pi-Sync failed!</b> Failed to bind or listen to the port %1! Is another instance already listening to that port?","<b>Anschalten von Pi-Sync fehlgeschlagen!</b> Fehler beim Ansprechen des Ports %1! Ist bereits eine andere Anwendung dabei diesen Port zu nutzen?" }, | 790 | { "<b>Enabling Pi-Sync failed!</b> Failed to bind or listen to the port %1! Is another instance already listening to that port?","<b>Anschalten von Pi-Sync fehlgeschlagen!</b> Fehler beim Ansprechen des Ports %1! Ist bereits eine andere Anwendung dabei diesen Port zu nutzen?" }, |
791 | { "No valid port number:\n%1","Keine gültige Port Nummer:\n%1" }, | 791 | { "No valid port number:\n%1","Keine gültige Port Nummer:\n%1" }, |
792 | { "Port number (Default: %1)\nValid range from 1 to 65535","Port Nummer (Standard: %1)\nGültiger Bereich von 1 bis 65535" }, | 792 | { "Port number (Default: %1)\nValid range from 1 to 65535","Port Nummer (Standard: %1)\nGültiger Bereich von 1 bis 65535" }, |
793 | { "Pi-Sync Error","Pi-Sync Fehler" }, | 793 | { "Pi-Sync Error","Pi-Sync Fehler" }, |
794 | { "Got send file request\nwith invalid password","Erhielt "sende Datei" Anfrage\nmit ungültigem Passwort" }, | 794 | { "Got send file request\nwith invalid password","Erhielt "sende Datei" Anfrage\nmit ungültigem Passwort" }, |
795 | { "Got receive file request\nwith invalid password","Erhielt "empfange Datei" Anfrage\nmit ungültigem Passwort" }, | 795 | { "Got receive file request\nwith invalid password","Erhielt "empfange Datei" Anfrage\nmit ungültigem Passwort" }, |
796 | { "Wrong password: Receiving remote file failed.","Falsches Passwort: Empfangen von entfernter Datei fehlgeschlagen." }, | 796 | { "Wrong password: Receiving remote file failed.","Falsches Passwort: Empfangen von entfernter Datei fehlgeschlagen." }, |
797 | { "Please close error dialog on remote.","Bitte schließe Fehler-Dialog am entfernten Rechner" }, | 797 | { "Please close error dialog on remote.","Bitte schließe Fehler-Dialog am entfernten Rechner" }, |
798 | { "Unknown error on remote.","Unbekannter Fehler am entfernten Rechner" }, | 798 | { "Unknown error on remote.","Unbekannter Fehler am entfernten Rechner" }, |
799 | { "Pi-Sync: Connected!","Pi-Sync: Verbunden!" }, | 799 | { "Pi-Sync: Connected!","Pi-Sync: Verbunden!" }, |
800 | { "Receiving file from remote...","Empfange entfernte Datei..." }, | 800 | { "Receiving file from remote...","Empfange entfernte Datei..." }, |
801 | { "Sending back synced file...","Sende synchronisierte Datei zurück..." }, | 801 | { "Sending back synced file...","Sende synchronisierte Datei zurück..." }, |
802 | { "Do you want to\nclear all sync info\nof all profiles?","Möchten Sie wirklich\ndie Sync-Info\nfür alle Profile\nlöschen?" }, | 802 | { "Do you want to\nclear all sync info\nof all profiles?","Möchten Sie wirklich\ndie Sync-Info\nfür alle Profile\nlöschen?" }, |
803 | { "Do you want to\nclear the sync\ninfo of profile\n%1?\n","Möchten Sie wirklich\ndie Sync-Info für Profil\n%1?\nlöschen" }, | 803 | { "Do you want to\nclear the sync\ninfo of profile\n%1?\n","Möchten Sie wirklich\ndie Sync-Info für Profil\n%1?\nlöschen" }, |
804 | { "Sorry, no valid port.Syncing cancelled.","Sorry, kein gültiger Port. Syncing abgebrochen." }, | 804 | { "Sorry, no valid port.Syncing cancelled.","Sorry, kein gültiger Port. Syncing abgebrochen." }, |
805 | { "Remote port number:\n(May be: 1 - 65535)","Ferne Port Nummer:\n(Darf sein: 1 - 65535)" }, | 805 | { "Remote port number:\n(May be: 1 - 65535)","Ferne Port Nummer:\n(Darf sein: 1 - 65535)" }, |
806 | { "Writing back file ...","Schreibe Datei zurück..." }, | 806 | { "Writing back file ...","Schreibe Datei zurück..." }, |
807 | { "Sending back file ...","Sende Datei zurück..." }, | 807 | { "Sending back file ...","Sende Datei zurück..." }, |
808 | { "Eeek, there I am ticklish!","Huch, da bin ich kitzlig!" }, | 808 | { "Eeek, there I am ticklish!","Huch, da bin ich kitzlig!" }, |
809 | { "Save using LOCAL storage","Speichere nutze LOCAL Pfad" }, | 809 | { "Save using LOCAL storage","Speichere nutze LOCAL Pfad" }, |
810 | { "...and %1 more\ncontact(s) selected","...und noch %1 Kontakte\n mehr ausgewählt" }, | 810 | { "...and %1 more\ncontact(s) selected","...und noch %1 Kontakte\n mehr ausgewählt" }, |
811 | { "Do you really\nwant to delete the\nsetected contact(s)?\n\n","Möchten Sie wirklich\ndie ausgewählten\nKontakte löschen?\n\n" }, | 811 | { "Do you really\nwant to delete the\nsetected contact(s)?\n\n","Möchten Sie wirklich\ndie ausgewählten\nKontakte löschen?\n\n" }, |
812 | { "%1 contacts\nsuccessfully\nimported.","%1 Kontakte\nerfolgreich\nimportiert." }, | 812 | { "%1 contacts\nsuccessfully\nimported.","%1 Kontakte\nerfolgreich\nimportiert." }, |
813 | { "Import this contact?","Importiere diesen Kontakt?" }, | 813 | { "Import this contact?","Importiere diesen Kontakt?" }, |
814 | { "Import all!","Importiere alle!" }, | 814 | { "Import all!","Importiere alle!" }, |
815 | { "Loading addressbook data ... please wait","Lade Adressbuchdaten ... bitte warten" }, | 815 | { "Loading addressbook data ... please wait","Lade Adressbuchdaten ... bitte warten" }, |
816 | { "Import Format","Import Format" }, | ||
817 | { "Select import format!\nDefault and standard is Utf8.\nLatin1 may be the right\nfor some West Europian languages.","Wähle Import Format!\nDefault und Standard ist Utf8.\nLatin1 kann das richtige für\nWesteuropäische Sprachen sein." }, | ||
818 | { "","" }, | ||
819 | { "","" }, | ||
820 | { "","" }, | ||
821 | { "","" }, | ||
816 | { "","" }, | 822 | { "","" }, |
817 | { "","" }, | 823 | { "","" }, |
818 | { "","" }, | 824 | { "","" }, |
819 | { "","" }, | 825 | { "","" }, |
820 | { "","" }, \ No newline at end of file | 826 | { "","" }, \ No newline at end of file |
diff --git a/kaddressbook/xxport/vcard_xxport.cpp b/kaddressbook/xxport/vcard_xxport.cpp index 91df96d..9a8fa68 100644 --- a/kaddressbook/xxport/vcard_xxport.cpp +++ b/kaddressbook/xxport/vcard_xxport.cpp | |||
@@ -22,245 +22,251 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | /* | 24 | /* |
25 | Enhanced Version of the file for platform independent KDE tools. | 25 | Enhanced Version of the file for platform independent KDE tools. |
26 | Copyright (c) 2004 Ulf Schenk | 26 | Copyright (c) 2004 Ulf Schenk |
27 | 27 | ||
28 | $Id$ | 28 | $Id$ |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <qfile.h> | 31 | #include <qfile.h> |
32 | #include <qtextstream.h> | 32 | #include <qtextstream.h> |
33 | #include <qfileinfo.h> | 33 | #include <qfileinfo.h> |
34 | 34 | ||
35 | #include <kabc/vcardconverter.h> | 35 | #include <kabc/vcardconverter.h> |
36 | #include <kabc/vcardparser/vcardtool.h> | 36 | #include <kabc/vcardparser/vcardtool.h> |
37 | #include <kfiledialog.h> | 37 | #include <kfiledialog.h> |
38 | #ifndef KAB_EMBEDDED | 38 | #ifndef KAB_EMBEDDED |
39 | #include <kio/netaccess.h> | 39 | #include <kio/netaccess.h> |
40 | #endif //KAB_EMBEDDED | 40 | #endif //KAB_EMBEDDED |
41 | 41 | ||
42 | #include <klocale.h> | 42 | #include <klocale.h> |
43 | #include <kmessagebox.h> | 43 | #include <kmessagebox.h> |
44 | #include <ktempfile.h> | 44 | #include <ktempfile.h> |
45 | #include <kurl.h> | 45 | #include <kurl.h> |
46 | 46 | ||
47 | #include "xxportmanager.h" | 47 | #include "xxportmanager.h" |
48 | 48 | ||
49 | #include "vcard_xxport.h" | 49 | #include "vcard_xxport.h" |
50 | 50 | ||
51 | #ifndef KAB_EMBEDDED | 51 | #ifndef KAB_EMBEDDED |
52 | 52 | ||
53 | class VCardXXPortFactory : public XXPortFactory | 53 | class VCardXXPortFactory : public XXPortFactory |
54 | { | 54 | { |
55 | public: | 55 | public: |
56 | XXPortObject *xxportObject( KABC::AddressBook *ab, QWidget *parent, const char *name ) | 56 | XXPortObject *xxportObject( KABC::AddressBook *ab, QWidget *parent, const char *name ) |
57 | { | 57 | { |
58 | return new VCardXXPort( ab, parent, name ); | 58 | return new VCardXXPort( ab, parent, name ); |
59 | } | 59 | } |
60 | }; | 60 | }; |
61 | #endif //KAB_EMBEDDED | 61 | #endif //KAB_EMBEDDED |
62 | 62 | ||
63 | 63 | ||
64 | extern "C" | 64 | extern "C" |
65 | { | 65 | { |
66 | #ifndef KAB_EMBEDDED | 66 | #ifndef KAB_EMBEDDED |
67 | void *init_libkaddrbk_vcard_xxport() | 67 | void *init_libkaddrbk_vcard_xxport() |
68 | #else //KAB_EMBEDDED | 68 | #else //KAB_EMBEDDED |
69 | void *init_microkaddrbk_vcard_xxport() | 69 | void *init_microkaddrbk_vcard_xxport() |
70 | #endif //KAB_EMBEDDED | 70 | #endif //KAB_EMBEDDED |
71 | { | 71 | { |
72 | return ( new VCardXXPortFactory() ); | 72 | return ( new VCardXXPortFactory() ); |
73 | } | 73 | } |
74 | } | 74 | } |
75 | 75 | ||
76 | 76 | ||
77 | VCardXXPort::VCardXXPort( KABC::AddressBook *ab, QWidget *parent, const char *name ) | 77 | VCardXXPort::VCardXXPort( KABC::AddressBook *ab, QWidget *parent, const char *name ) |
78 | : XXPortObject( ab, parent, name ) | 78 | : XXPortObject( ab, parent, name ) |
79 | { | 79 | { |
80 | createImportAction( i18n( "Import vCard..." ) ); | 80 | createImportAction( i18n( "Import vCard..." ) ); |
81 | //US KABC::VCardConverter does not support the export of 2.1 addressbooks. | 81 | //US KABC::VCardConverter does not support the export of 2.1 addressbooks. |
82 | //US createExportAction( i18n( "Export vCard 2.1..." ), "v21" ); | 82 | //US createExportAction( i18n( "Export vCard 2.1..." ), "v21" ); |
83 | createExportAction( i18n( "Export vCard 3.0..." ), "v30" ); | 83 | createExportAction( i18n( "Export vCard 3.0..." ), "v30" ); |
84 | } | 84 | } |
85 | 85 | ||
86 | bool VCardXXPort::exportContacts( const KABC::AddresseeList &list, const QString &data ) | 86 | bool VCardXXPort::exportContacts( const KABC::AddresseeList &list, const QString &data ) |
87 | { | 87 | { |
88 | QString name; | 88 | QString name; |
89 | 89 | ||
90 | if ( list.count() == 1 ) | 90 | if ( list.count() == 1 ) |
91 | name = list[ 0 ].givenName() + "_" + list[ 0 ].familyName() + ".vcf"; | 91 | name = list[ 0 ].givenName() + "_" + list[ 0 ].familyName() + ".vcf"; |
92 | else | 92 | else |
93 | name = "addressbook.vcf"; | 93 | name = "addressbook.vcf"; |
94 | 94 | ||
95 | #ifndef KAB_EMBEDDED | 95 | #ifndef KAB_EMBEDDED |
96 | QString fileName = KFileDialog::getSaveFileName( name ); | 96 | QString fileName = KFileDialog::getSaveFileName( name ); |
97 | #else //KAB_EMBEDDED | 97 | #else //KAB_EMBEDDED |
98 | QString fileName = KFileDialog::getSaveFileName( name, i18n("Save file"), parentWidget() ); | 98 | QString fileName = KFileDialog::getSaveFileName( name, i18n("Save file"), parentWidget() ); |
99 | #endif //KAB_EMBEDDED | 99 | #endif //KAB_EMBEDDED |
100 | 100 | ||
101 | if ( fileName.isEmpty() ) | 101 | if ( fileName.isEmpty() ) |
102 | return false; | 102 | return false; |
103 | 103 | ||
104 | QFile outFile( fileName ); | 104 | QFile outFile( fileName ); |
105 | if ( !outFile.open( IO_WriteOnly ) ) { | 105 | if ( !outFile.open( IO_WriteOnly ) ) { |
106 | QString text = i18n( "<qt>Unable to open file <b>%1</b> for export.</qt>" ); | 106 | QString text = i18n( "<qt>Unable to open file <b>%1</b> for export.</qt>" ); |
107 | KMessageBox::error( parentWidget(), text.arg( fileName ) ); | 107 | KMessageBox::error( parentWidget(), text.arg( fileName ) ); |
108 | return false; | 108 | return false; |
109 | } | 109 | } |
110 | 110 | ||
111 | QTextStream t( &outFile ); | 111 | QTextStream t( &outFile ); |
112 | t.setEncoding( QTextStream::UnicodeUTF8 ); | 112 | t.setEncoding( QTextStream::UnicodeUTF8 ); |
113 | 113 | ||
114 | KABC::Addressee::List::ConstIterator it; | 114 | KABC::Addressee::List::ConstIterator it; |
115 | for ( it = list.begin(); it != list.end(); ++it ) { | 115 | for ( it = list.begin(); it != list.end(); ++it ) { |
116 | KABC::VCardConverter converter; | 116 | KABC::VCardConverter converter; |
117 | QString vcard; | 117 | QString vcard; |
118 | 118 | ||
119 | KABC::VCardConverter::Version version; | 119 | KABC::VCardConverter::Version version; |
120 | if ( data == "v21" ) | 120 | if ( data == "v21" ) |
121 | version = KABC::VCardConverter::v2_1; | 121 | version = KABC::VCardConverter::v2_1; |
122 | else | 122 | else |
123 | version = KABC::VCardConverter::v3_0; | 123 | version = KABC::VCardConverter::v3_0; |
124 | 124 | ||
125 | converter.addresseeToVCard( *it, vcard, version ); | 125 | converter.addresseeToVCard( *it, vcard, version ); |
126 | t << vcard << "\r\n\r\n"; | 126 | t << vcard << "\r\n\r\n"; |
127 | } | 127 | } |
128 | 128 | ||
129 | outFile.close(); | 129 | outFile.close(); |
130 | 130 | ||
131 | return true; | 131 | return true; |
132 | } | 132 | } |
133 | 133 | ||
134 | KABC::AddresseeList VCardXXPort::importContacts( const QString& ) const | 134 | KABC::AddresseeList VCardXXPort::importContacts( const QString& ) const |
135 | { | 135 | { |
136 | QString fileName; | 136 | QString fileName; |
137 | KABC::AddresseeList addrList; | 137 | KABC::AddresseeList addrList; |
138 | KURL url; | 138 | KURL url; |
139 | 139 | ||
140 | #ifndef KAB_EMBEDDED | 140 | #ifndef KAB_EMBEDDED |
141 | if ( !XXPortManager::importData.isEmpty() ) | 141 | if ( !XXPortManager::importData.isEmpty() ) |
142 | addrList = parseVCard( XXPortManager::importData ); | 142 | addrList = parseVCard( XXPortManager::importData ); |
143 | else { | 143 | else { |
144 | if ( XXPortManager::importURL.isEmpty() ) | 144 | if ( XXPortManager::importURL.isEmpty() ) |
145 | { | 145 | { |
146 | url = KFileDialog::getLoadFileName( QString::null, i18n("Select vCard to Import"), parentWidget() ); | 146 | url = KFileDialog::getLoadFileName( QString::null, i18n("Select vCard to Import"), parentWidget() ); |
147 | } | 147 | } |
148 | else | 148 | else |
149 | url = XXPortManager::importURL; | 149 | url = XXPortManager::importURL; |
150 | if ( url.isEmpty() ) | 150 | if ( url.isEmpty() ) |
151 | return addrList; | 151 | return addrList; |
152 | QString caption( i18n( "vCard Import Failed" ) ); | 152 | QString caption( i18n( "vCard Import Failed" ) ); |
153 | if ( KIO::NetAccess::download( url, fileName ) ) { | 153 | if ( KIO::NetAccess::download( url, fileName ) ) { |
154 | QFile file( fileName ); | 154 | QFile file( fileName ); |
155 | 155 | ||
156 | file.open( IO_ReadOnly ); | 156 | file.open( IO_ReadOnly ); |
157 | QByteArray rawData = file.readAll(); | 157 | QByteArray rawData = file.readAll(); |
158 | file.close(); | 158 | file.close(); |
159 | 159 | ||
160 | QString data = QString::fromUtf8( rawData.data(), rawData.size() + 1 ); | 160 | QString data = QString::fromUtf8( rawData.data(), rawData.size() + 1 ); |
161 | addrList = parseVCard( data ); | 161 | addrList = parseVCard( data ); |
162 | 162 | ||
163 | if ( !url.isLocalFile() ) | 163 | if ( !url.isLocalFile() ) |
164 | KIO::NetAccess::removeTempFile( fileName ); | 164 | KIO::NetAccess::removeTempFile( fileName ); |
165 | 165 | ||
166 | } else { | 166 | } else { |
167 | QString text = i18n( "<qt>Unable to access <b>%1</b>.</qt>" ); | 167 | QString text = i18n( "<qt>Unable to access <b>%1</b>.</qt>" ); |
168 | KMessageBox::error( parentWidget(), text.arg( url.url() ), caption ); | 168 | KMessageBox::error( parentWidget(), text.arg( url.url() ), caption ); |
169 | } | 169 | } |
170 | 170 | ||
171 | } | 171 | } |
172 | 172 | ||
173 | 173 | ||
174 | #else //KAB_EMBEDDED | 174 | #else //KAB_EMBEDDED |
175 | 175 | ||
176 | 176 | ||
177 | if ( !XXPortManager::importData.isEmpty() ) | 177 | if ( !XXPortManager::importData.isEmpty() ) |
178 | addrList = parseVCard( XXPortManager::importData ); | 178 | addrList = parseVCard( XXPortManager::importData ); |
179 | else { | 179 | else { |
180 | if ( XXPortManager::importURL.isEmpty() ) | 180 | if ( XXPortManager::importURL.isEmpty() ) |
181 | { | 181 | { |
182 | fileName = KFileDialog::getOpenFileName( QString::null, i18n("Select vCard to Import"), parentWidget() ); | 182 | fileName = KFileDialog::getOpenFileName( QString::null, i18n("Select vCard to Import"), parentWidget() ); |
183 | 183 | ||
184 | if ( fileName.isEmpty() ) | 184 | if ( fileName.isEmpty() ) |
185 | return addrList; | 185 | return addrList; |
186 | QFileInfo fi ( fileName ); | 186 | QFileInfo fi ( fileName ); |
187 | if ( !fi.isFile() ) | 187 | if ( !fi.isFile() ) |
188 | return addrList; | 188 | return addrList; |
189 | } | 189 | } |
190 | else | 190 | else |
191 | { | 191 | { |
192 | //US url = XXPortManager::importURL; | 192 | //US url = XXPortManager::importURL; |
193 | qDebug("VCardXXPort::importContacts Urls at the moment not supported"); | 193 | qDebug("VCardXXPort::importContacts Urls at the moment not supported"); |
194 | if ( url.isEmpty() ) | 194 | if ( url.isEmpty() ) |
195 | return addrList; | 195 | return addrList; |
196 | 196 | ||
197 | } | 197 | } |
198 | QFile file( fileName ); | 198 | QFile file( fileName ); |
199 | if ( file.open( IO_ReadOnly ) ) { | 199 | if ( file.open( IO_ReadOnly ) ) { |
200 | QCString rawData ( file.readAll().data(),file.size()+1); | 200 | QCString rawData ( file.readAll().data(),file.size()+1); |
201 | file.close(); | 201 | file.close(); |
202 | int start = 0; | 202 | int start = 0; |
203 | #ifndef DESKTOP_VERSION | 203 | #ifndef DESKTOP_VERSION |
204 | while ( start < rawData.size()-2 ) { | 204 | while ( start < rawData.size()-2 ) { |
205 | if ( rawData.at( start ) == '\r' ) | 205 | if ( rawData.at( start ) == '\r' ) |
206 | if ( rawData.at( start+1 ) == '\n' ) | 206 | if ( rawData.at( start+1 ) == '\n' ) |
207 | if ( rawData.at( start+2 ) == ' ' ) { | 207 | if ( rawData.at( start+2 ) == ' ' ) { |
208 | rawData.remove(start,3); | 208 | rawData.remove(start,3); |
209 | --start; | 209 | --start; |
210 | } | 210 | } |
211 | ++start; | 211 | ++start; |
212 | } | 212 | } |
213 | #endif | 213 | #endif |
214 | addrList = parseVCard( QString::fromUtf8( rawData.data() ) ); | 214 | int ret = KMessageBox::warningYesNoCancel( 0, i18n("Select import format!\nDefault and standard is Utf8.\nLatin1 may be the right\nfor some West Europian languages."), i18n("Import Format"), i18n("Utf8"), i18n("Latin1") ); |
215 | if ( ret == KMessageBox::Cancel ) | ||
216 | return addrList; | ||
217 | if ( ret == KMessageBox::Yes ) | ||
218 | addrList = parseVCard( QString::fromUtf8( rawData.data() ) ); | ||
219 | else | ||
220 | addrList = parseVCard( QString::fromLatin1( rawData.data() ) ); | ||
215 | } | 221 | } |
216 | 222 | ||
217 | } | 223 | } |
218 | #endif //KAB_EMBEDDED | 224 | #endif //KAB_EMBEDDED |
219 | 225 | ||
220 | return addrList; | 226 | return addrList; |
221 | } | 227 | } |
222 | 228 | ||
223 | KABC::AddresseeList VCardXXPort::parseVCard( const QString &data ) const | 229 | KABC::AddresseeList VCardXXPort::parseVCard( const QString &data ) const |
224 | { | 230 | { |
225 | 231 | ||
226 | KABC::VCardTool tool; | 232 | KABC::VCardTool tool; |
227 | KABC::AddresseeList addrList; | 233 | KABC::AddresseeList addrList; |
228 | addrList = tool.parseVCards( data ); | 234 | addrList = tool.parseVCards( data ); |
229 | // LR : I switched to the code, which is in current cvs HEAD | 235 | // LR : I switched to the code, which is in current cvs HEAD |
230 | /* | 236 | /* |
231 | uint numVCards = data.contains( "BEGIN:VCARD", false ); | 237 | uint numVCards = data.contains( "BEGIN:VCARD", false ); |
232 | QStringList dataList = QStringList::split( "\r\n\r\n", data ); | 238 | QStringList dataList = QStringList::split( "\r\n\r\n", data ); |
233 | 239 | ||
234 | for ( uint i = 0; i < numVCards && i < dataList.count(); ++i ) { | 240 | for ( uint i = 0; i < numVCards && i < dataList.count(); ++i ) { |
235 | KABC::Addressee addr; | 241 | KABC::Addressee addr; |
236 | bool ok = false; | 242 | bool ok = false; |
237 | 243 | ||
238 | if ( dataList[ i ].contains( "VERSION:3.0" ) ) | 244 | if ( dataList[ i ].contains( "VERSION:3.0" ) ) |
239 | ok = converter.vCardToAddressee( dataList[ i ], addr, KABC::VCardConverter::v3_0 ); | 245 | ok = converter.vCardToAddressee( dataList[ i ], addr, KABC::VCardConverter::v3_0 ); |
240 | else if ( dataList[ i ].contains( "VERSION:2.1" ) ) | 246 | else if ( dataList[ i ].contains( "VERSION:2.1" ) ) |
241 | ok = converter.vCardToAddressee( dataList[ i ], addr, KABC::VCardConverter::v2_1 ); | 247 | ok = converter.vCardToAddressee( dataList[ i ], addr, KABC::VCardConverter::v2_1 ); |
242 | else { | 248 | else { |
243 | KMessageBox::sorry( parentWidget(), i18n( "Not supported vCard version." ) ); | 249 | KMessageBox::sorry( parentWidget(), i18n( "Not supported vCard version." ) ); |
244 | continue; | 250 | continue; |
245 | } | 251 | } |
246 | 252 | ||
247 | if ( !addr.isEmpty() && ok ) | 253 | if ( !addr.isEmpty() && ok ) |
248 | addrList.append( addr ); | 254 | addrList.append( addr ); |
249 | else { | 255 | else { |
250 | QString text = i18n( "The selected file does not include a valid vCard. " | 256 | QString text = i18n( "The selected file does not include a valid vCard. " |
251 | "Please check the file and try again." ); | 257 | "Please check the file and try again." ); |
252 | KMessageBox::sorry( parentWidget(), text ); | 258 | KMessageBox::sorry( parentWidget(), text ); |
253 | } | 259 | } |
254 | } | 260 | } |
255 | */ | 261 | */ |
256 | if ( addrList.isEmpty() ) { | 262 | if ( addrList.isEmpty() ) { |
257 | QString text = i18n( "The selected file does not\ninclude a valid vCard.\nPlease check the file and try again.\n" ); | 263 | QString text = i18n( "The selected file does not\ninclude a valid vCard.\nPlease check the file and try again.\n" ); |
258 | KMessageBox::sorry( parentWidget(), text ); | 264 | KMessageBox::sorry( parentWidget(), text ); |
259 | } | 265 | } |
260 | return addrList; | 266 | return addrList; |
261 | } | 267 | } |
262 | 268 | ||
263 | 269 | ||
264 | #ifndef KAB_EMBEDDED | 270 | #ifndef KAB_EMBEDDED |
265 | #include "vcard_xxport.moc" | 271 | #include "vcard_xxport.moc" |
266 | #endif //KAB_EMBEDDED | 272 | #endif //KAB_EMBEDDED |