author | zautrix <zautrix> | 2005-01-18 22:46:53 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-18 22:46:53 (UTC) |
commit | bfb2947510c52f9c6b35c35786490f261adf30e3 (patch) (unidiff) | |
tree | 63b0efc7fcfb7715cf99cf8d8594ec5278926a77 | |
parent | 7200aeadd415cf88b909c00d1414f212cf85b3df (diff) | |
download | kdepimpi-bfb2947510c52f9c6b35c35786490f261adf30e3.zip kdepimpi-bfb2947510c52f9c6b35c35786490f261adf30e3.tar.gz kdepimpi-bfb2947510c52f9c6b35c35786490f261adf30e3.tar.bz2 |
another fix
-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 8 | ||||
-rw-r--r-- | bin/kdepim/kaddressbook/usertranslation.txt | 8 | ||||
-rw-r--r-- | kaddressbook/xxport/vcard_xxport.cpp | 15 | ||||
-rw-r--r-- | microkde/kdecore/klocale.cpp | 2 |
4 files changed, 20 insertions, 13 deletions
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index 7a63eed..2f449ef 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt | |||
@@ -692,19 +692,23 @@ | |||
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 | { "","" }, | 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 | { "","" }, | 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!" }, | ||
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" }, | ||
709 | { "Unable to load resource '%1'","Resource kann nicht geladen werden: '%1'" }, | ||
706 | { "","" }, | 710 | { "","" }, |
707 | { "","" }, | 711 | { "","" }, |
708 | { "","" }, | 712 | { "","" }, |
709 | { "","" }, | 713 | { "","" }, |
710 | { "","" }, \ No newline at end of file | 714 | { "","" }, \ No newline at end of file |
diff --git a/bin/kdepim/kaddressbook/usertranslation.txt b/bin/kdepim/kaddressbook/usertranslation.txt index 7a63eed..4c7a93c 100644 --- a/bin/kdepim/kaddressbook/usertranslation.txt +++ b/bin/kdepim/kaddressbook/usertranslation.txt | |||
@@ -692,19 +692,23 @@ | |||
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 | { "","" }, | 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 | { "","" }, | 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!" }, | ||
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\n keine 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'" }, | ||
706 | { "","" }, | 710 | { "","" }, |
707 | { "","" }, | 711 | { "","" }, |
708 | { "","" }, | 712 | { "","" }, |
709 | { "","" }, | 713 | { "","" }, |
710 | { "","" }, \ No newline at end of file | 714 | { "","" }, \ No newline at end of file |
diff --git a/kaddressbook/xxport/vcard_xxport.cpp b/kaddressbook/xxport/vcard_xxport.cpp index acf6419..c56be8b 100644 --- a/kaddressbook/xxport/vcard_xxport.cpp +++ b/kaddressbook/xxport/vcard_xxport.cpp | |||
@@ -21,24 +21,25 @@ | |||
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
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 | 34 | ||
34 | #include <kabc/vcardconverter.h> | 35 | #include <kabc/vcardconverter.h> |
35 | #include <kabc/vcardparser/vcardtool.h> | 36 | #include <kabc/vcardparser/vcardtool.h> |
36 | #include <kfiledialog.h> | 37 | #include <kfiledialog.h> |
37 | #ifndef KAB_EMBEDDED | 38 | #ifndef KAB_EMBEDDED |
38 | #include <kio/netaccess.h> | 39 | #include <kio/netaccess.h> |
39 | #endif //KAB_EMBEDDED | 40 | #endif //KAB_EMBEDDED |
40 | 41 | ||
41 | #include <klocale.h> | 42 | #include <klocale.h> |
42 | #include <kmessagebox.h> | 43 | #include <kmessagebox.h> |
43 | #include <ktempfile.h> | 44 | #include <ktempfile.h> |
44 | #include <kurl.h> | 45 | #include <kurl.h> |
@@ -137,28 +138,26 @@ KABC::AddresseeList VCardXXPort::importContacts( const QString& ) const | |||
137 | KURL url; | 138 | KURL url; |
138 | 139 | ||
139 | #ifndef KAB_EMBEDDED | 140 | #ifndef KAB_EMBEDDED |
140 | if ( !XXPortManager::importData.isEmpty() ) | 141 | if ( !XXPortManager::importData.isEmpty() ) |
141 | addrList = parseVCard( XXPortManager::importData ); | 142 | addrList = parseVCard( XXPortManager::importData ); |
142 | else { | 143 | else { |
143 | if ( XXPortManager::importURL.isEmpty() ) | 144 | if ( XXPortManager::importURL.isEmpty() ) |
144 | { | 145 | { |
145 | url = KFileDialog::getLoadFileName( QString::null, i18n("Select vCard to Import"), parentWidget() ); | 146 | url = KFileDialog::getLoadFileName( QString::null, i18n("Select vCard to Import"), parentWidget() ); |
146 | } | 147 | } |
147 | else | 148 | else |
148 | url = XXPortManager::importURL; | 149 | url = XXPortManager::importURL; |
149 | |||
150 | if ( url.isEmpty() ) | 150 | if ( url.isEmpty() ) |
151 | return addrList; | 151 | return addrList; |
152 | |||
153 | QString caption( i18n( "vCard Import Failed" ) ); | 152 | QString caption( i18n( "vCard Import Failed" ) ); |
154 | if ( KIO::NetAccess::download( url, fileName ) ) { | 153 | if ( KIO::NetAccess::download( url, fileName ) ) { |
155 | QFile file( fileName ); | 154 | QFile file( fileName ); |
156 | 155 | ||
157 | file.open( IO_ReadOnly ); | 156 | file.open( IO_ReadOnly ); |
158 | QByteArray rawData = file.readAll(); | 157 | QByteArray rawData = file.readAll(); |
159 | file.close(); | 158 | file.close(); |
160 | 159 | ||
161 | QString data = QString::fromUtf8( rawData.data(), rawData.size() + 1 ); | 160 | QString data = QString::fromUtf8( rawData.data(), rawData.size() + 1 ); |
162 | addrList = parseVCard( data ); | 161 | addrList = parseVCard( data ); |
163 | 162 | ||
164 | if ( !url.isLocalFile() ) | 163 | if ( !url.isLocalFile() ) |
@@ -172,46 +171,46 @@ KABC::AddresseeList VCardXXPort::importContacts( const QString& ) const | |||
172 | } | 171 | } |
173 | 172 | ||
174 | 173 | ||
175 | #else //KAB_EMBEDDED | 174 | #else //KAB_EMBEDDED |
176 | 175 | ||
177 | 176 | ||
178 | if ( !XXPortManager::importData.isEmpty() ) | 177 | if ( !XXPortManager::importData.isEmpty() ) |
179 | addrList = parseVCard( XXPortManager::importData ); | 178 | addrList = parseVCard( XXPortManager::importData ); |
180 | else { | 179 | else { |
181 | if ( XXPortManager::importURL.isEmpty() ) | 180 | if ( XXPortManager::importURL.isEmpty() ) |
182 | { | 181 | { |
183 | fileName = KFileDialog::getOpenFileName( QString::null, i18n("Select vCard to Import"), parentWidget() ); | 182 | fileName = KFileDialog::getOpenFileName( QString::null, i18n("Select vCard to Import"), parentWidget() ); |
183 | |||
184 | if ( fileName.isEmpty() ) | 184 | if ( fileName.isEmpty() ) |
185 | return addrList; | 185 | return addrList; |
186 | 186 | QFileInfo fi ( fileName ); | |
187 | if ( !fi.isFile() ) | ||
188 | return addrList; | ||
187 | } | 189 | } |
188 | else | 190 | else |
189 | { | 191 | { |
190 | //US url = XXPortManager::importURL; | 192 | //US url = XXPortManager::importURL; |
191 | qDebug("VCardXXPort::importContacts Urls at the moment not supported"); | 193 | qDebug("VCardXXPort::importContacts Urls at the moment not supported"); |
192 | if ( url.isEmpty() ) | 194 | if ( url.isEmpty() ) |
193 | return addrList; | 195 | return addrList; |
194 | 196 | ||
195 | } | 197 | } |
196 | |||
197 | |||
198 | QFile file( fileName ); | 198 | QFile file( fileName ); |
199 | 199 | if ( file.open( IO_ReadOnly ) ) { | |
200 | file.open( IO_ReadOnly ); | ||
201 | QByteArray rawData = file.readAll(); | 200 | QByteArray rawData = file.readAll(); |
202 | file.close(); | 201 | file.close(); |
203 | |||
204 | QString data = QString::fromUtf8( rawData.data(), rawData.size() + 1 ); | 202 | QString data = QString::fromUtf8( rawData.data(), rawData.size() + 1 ); |
205 | addrList = parseVCard( data ); | 203 | addrList = parseVCard( data ); |
204 | } | ||
206 | 205 | ||
207 | } | 206 | } |
208 | #endif //KAB_EMBEDDED | 207 | #endif //KAB_EMBEDDED |
209 | 208 | ||
210 | return addrList; | 209 | return addrList; |
211 | } | 210 | } |
212 | 211 | ||
213 | KABC::AddresseeList VCardXXPort::parseVCard( const QString &data ) const | 212 | KABC::AddresseeList VCardXXPort::parseVCard( const QString &data ) const |
214 | { | 213 | { |
215 | 214 | ||
216 | KABC::VCardTool tool; | 215 | KABC::VCardTool tool; |
217 | KABC::AddresseeList addrList; | 216 | KABC::AddresseeList addrList; |
diff --git a/microkde/kdecore/klocale.cpp b/microkde/kdecore/klocale.cpp index 7f31ab1..aec74fa 100644 --- a/microkde/kdecore/klocale.cpp +++ b/microkde/kdecore/klocale.cpp | |||
@@ -1,23 +1,23 @@ | |||
1 | #include <qregexp.h> | 1 | #include <qregexp.h> |
2 | #include <qapplication.h> | 2 | #include <qapplication.h> |
3 | 3 | ||
4 | #include "kdebug.h" | 4 | #include "kdebug.h" |
5 | #include "kcalendarsystemgregorian.h" | 5 | #include "kcalendarsystemgregorian.h" |
6 | 6 | ||
7 | #include "klocale.h" | 7 | #include "klocale.h" |
8 | 8 | ||
9 | #include <qstringlist.h> | 9 | #include <qstringlist.h> |
10 | 10 | ||
11 | //#define COLLECT_TRANSLATION | 11 | #define COLLECT_TRANSLATION |
12 | 12 | ||
13 | 13 | ||
14 | QDict<QString> *mLocaleDict = 0; | 14 | QDict<QString> *mLocaleDict = 0; |
15 | void setLocaleDict( QDict<QString> * dict ) | 15 | void setLocaleDict( QDict<QString> * dict ) |
16 | { | 16 | { |
17 | mLocaleDict = dict; | 17 | mLocaleDict = dict; |
18 | 18 | ||
19 | } | 19 | } |
20 | 20 | ||
21 | #ifdef COLLECT_TRANSLATION | 21 | #ifdef COLLECT_TRANSLATION |
22 | 22 | ||
23 | QStringList missingTrans; | 23 | QStringList missingTrans; |