-rw-r--r-- | bin/kdepim/korganizer/usertranslation.txt | 2 | ||||
-rw-r--r-- | korganizer/koprefs.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/kdepim/korganizer/usertranslation.txt b/bin/kdepim/korganizer/usertranslation.txt index c9107e2..13ed7b8 100644 --- a/bin/kdepim/korganizer/usertranslation.txt +++ b/bin/kdepim/korganizer/usertranslation.txt | |||
@@ -763,87 +763,87 @@ | |||
763 | { "Default","Standard" }, | 763 | { "Default","Standard" }, |
764 | { " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, | 764 | { " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, |
765 | { " %d items?"," %d Einträge?" }, | 765 | { " %d items?"," %d Einträge?" }, |
766 | { "\nThis event recurs\nover multiple dates.\nAre you sure you want\nto delete this event\nand all its recurrences?","\nDieses ist ein\nwiederholender Termin!.\nSind Sie sicher, dass Sie\ndiesen Termin und alle\nWiederholungen löschen möchten?" }, | 766 | { "\nThis event recurs\nover multiple dates.\nAre you sure you want\nto delete this event\nand all its recurrences?","\nDieses ist ein\nwiederholender Termin!.\nSind Sie sicher, dass Sie\ndiesen Termin und alle\nWiederholungen löschen möchten?" }, |
767 | { " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, | 767 | { " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, |
768 | { "Current","Aktuelle" }, | 768 | { "Current","Aktuelle" }, |
769 | { "\nThis event recurs\nover multiple dates.\nDo you want to delete\nall it's recurrences,\nor only the current one on:\n","\nDieses ist ein\nwiederholender Termin!\nMöchten sie alle Wiederholungen\nlöschen, oder nur die aktuelle am:\n" }, | 769 | { "\nThis event recurs\nover multiple dates.\nDo you want to delete\nall it's recurrences,\nor only the current one on:\n","\nDieses ist ein\nwiederholender Termin!\nMöchten sie alle Wiederholungen\nlöschen, oder nur die aktuelle am:\n" }, |
770 | { "All","Alle" }, | 770 | { "All","Alle" }, |
771 | { "Data Loss Warning","Datenverlust Warnung" }, | 771 | { "Data Loss Warning","Datenverlust Warnung" }, |
772 | { "Proceed","Weitermachen" }, | 772 | { "Proceed","Weitermachen" }, |
773 | { "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, | 773 | { "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, |
774 | { "Filter disabled ","Filter abgeschaltet" }, | 774 | { "Filter disabled ","Filter abgeschaltet" }, |
775 | { "Filter selected: ","Gewählter Filter: " }, | 775 | { "Filter selected: ","Gewählter Filter: " }, |
776 | { "Toggle Cancel","Gecancelt ändern" }, | 776 | { "Toggle Cancel","Gecancelt ändern" }, |
777 | { "&Toggle Cancel","Gecancel&t ändern" }, | 777 | { "&Toggle Cancel","Gecancel&t ändern" }, |
778 | { "Configure Toolbar","Konfiguriere Toolbar" }, | 778 | { "Configure Toolbar","Konfiguriere Toolbar" }, |
779 | { "Stretched TB","Gedehnte TB" }, | 779 | { "Stretched TB","Gedehnte TB" }, |
780 | { "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, | 780 | { "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, |
781 | { "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, | 781 | { "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, |
782 | { "When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing","Wenn ein Kalender doppelt importiert\nwird, werden doppelte Einträge ignoriert!\nSie können eine Backup Datei anlegen unter\nDatei - Speichere Kalender Backup\num den Import rückgängig machen zu können.\n" }, | 782 | { "When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing","Wenn ein Kalender doppelt importiert\nwird, werden doppelte Einträge ignoriert!\nSie können eine Backup Datei anlegen unter\nDatei - Speichere Kalender Backup\num den Import rückgängig machen zu können.\n" }, |
783 | { "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, | 783 | { "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, |
784 | { "Imported file successfully","Datei erfolgreich importiert" }, | 784 | { "Imported file successfully","Datei erfolgreich importiert" }, |
785 | { "Error importing file","Fehler beim Importieren der Datei" }, | 785 | { "Error importing file","Fehler beim Importieren der Datei" }, |
786 | { "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, | 786 | { "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, |
787 | { "Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n","Zu speichernde Datei\existiert bereits!\nExist. Datei vom:\n%1\nÜberschreiben?\n" }, | 787 | { "Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n","Zu speichernde Datei\existiert bereits!\nExist. Datei vom:\n%1\nÜberschreiben?\n" }, |
788 | { "Overwrite!","Überschreiben!" }, | 788 | { "Overwrite!","Überschreiben!" }, |
789 | { "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n","Import Datei \n...%1\nvom:\n%2\nDuplizierte Einträge\nwerden nicht importiert!\n" }, | 789 | { "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n","Import Datei \n...%1\nvom:\n%2\nDuplizierte Einträge\nwerden nicht importiert!\n" }, |
790 | { "Load backup filename","Lade Backup Dateiname" }, | 790 | { "Load backup filename","Lade Backup Dateiname" }, |
791 | { "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, | 791 | { "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, |
792 | { "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, | 792 | { "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, |
793 | { "Save backup filename","Speichere Backup Dateiname" }, | 793 | { "Save backup filename","Speichere Backup Dateiname" }, |
794 | { "Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n","Backup Datei\nexistiert bereits!\nAlte Backup Datei vom:\n%1\nÜberschreiben?\n" }, | 794 | { "Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n","Backup Datei\nexistiert bereits!\nAlte Backup Datei vom:\n%1\nÜberschreiben?\n" }, |
795 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, | 795 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, |
796 | { "Details of attendee","Teilnehmerdetails" }, | 796 | { "Details of attendee","Teilnehmerdetails" }, |
797 | { "Work phone:\n","Telefon Arbeit:\n" }, | 797 | { "Work phone:\n","Telefon Arbeit:\n" }, |
798 | { "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, | 798 | { "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, |
799 | { "Home phone:\n","Telefon privat:\n" }, | 799 | { "Home phone:\n","Telefon privat:\n" }, |
800 | { "Mobile home phone:\n","Mobiltelefon privat:\n" }, | 800 | { "Mobile home phone:\n","Mobiltelefon privat:\n" }, |
801 | { "Email:\n","Email:\n" }, | 801 | { "Email:\n","Email:\n" }, |
802 | { "Alarm disabled","Alarm deaktiviert" }, | 802 | { "Alarm disabled","Alarm deaktiviert" }, |
803 | { "Audio.Al.: ","Audio Al.: " }, | 803 | { "Audio.Al.: ","Audio Al.: " }, |
804 | { "Proc.Al.: ","Proc.Al.: " }, | 804 | { "Proc.Al.: ","Proc.Al.: " }, |
805 | { "No sound set","Kein Sound definiert" }, | 805 | { "No sound set","Kein Sound definiert" }, |
806 | { "*.wav|Wav Files","*.wav|Wav Dateien" }, | 806 | { "*.wav|Wav Files","*.wav|Wav Dateien" }, |
807 | { "No program set","Kein Programm definiert" }, | 807 | { "No program set","Kein Programm definiert" }, |
808 | { "Running '%1'","Ausführen '%1'" }, | 808 | { "Running '%1'","Ausführen '%1'" }, |
809 | { "Playing '%1'","Abspielen '%1'" }, | 809 | { "Playing '%1'","Abspielen '%1'" }, |
810 | { "Show Sync Events in WN/Agenda view","Zeige Sync Events in WN/Agenda Ansicht" }, | 810 | { "Show Sync Events in WN/Agenda view","Zeige Sync Events in WN/Agenda Ansicht" }, |
811 | { "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" }, | 811 | { "User defined (usertranslation.txt)","File usertranslation.txt loaded" }, |
812 | { "Load!","Laden!" }, | 812 | { "Load!","Laden!" }, |
813 | { "Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n","Backup Datei vom:\n%1\nDas Laden der Backup Datei\nlöscht die aktuellen Daten!\n" }, | 813 | { "Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n","Backup Datei vom:\n%1\nDas Laden der Backup Datei\nlöscht die aktuellen Daten!\n" }, |
814 | { "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, | 814 | { "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, |
815 | { "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, | 815 | { "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, |
816 | { "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, | 816 | { "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, |
817 | { "Features + hints...","Eigenschaften + Tipps..." }, | 817 | { "Features + hints...","Eigenschaften + Tipps..." }, |
818 | { "User translation...","Benutzer Übersetzung..." }, | 818 | { "User translation...","Benutzer Übersetzung..." }, |
819 | { "Sync HowTo...","Synchronisation HowTo..." }, | 819 | { "Sync HowTo...","Synchronisation HowTo..." }, |
820 | { "Print calendar...","Drucke Kalender..." }, | 820 | { "Print calendar...","Drucke Kalender..." }, |
821 | { "Anniversary","Jahrestag" }, | 821 | { "Anniversary","Jahrestag" }, |
822 | { "When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n","Wenn Geburtstage mehrfach importiert\nwerden, werden doppelte Einträge ignoriert\nwenn sie nicht verändert wurden.\n" }, | 822 | { "When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n","Wenn Geburtstage mehrfach importiert\nwerden, werden doppelte Einträge ignoriert\nwenn sie nicht verändert wurden.\n" }, |
823 | { "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, | 823 | { "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, |
824 | { "Next recurrence is on: ","Nächste Wiederholung ist am:" }, | 824 | { "Next recurrence is on: ","Nächste Wiederholung ist am:" }, |
825 | { "<b>Alarm on: </b>","<b>Alarm am: </b>" }, | 825 | { "<b>Alarm on: </b>","<b>Alarm am: </b>" }, |
826 | { "<b>Access: </b>","<b>Zugriff: </b>" }, | 826 | { "<b>Access: </b>","<b>Zugriff: </b>" }, |
827 | { "(%1 min before)","(%1 min vorher)" }, | 827 | { "(%1 min before)","(%1 min vorher)" }, |
828 | { "<b>Categories: </b>","<b>Kategorien: </b>" }, | 828 | { "<b>Categories: </b>","<b>Kategorien: </b>" }, |
829 | { "Save Journal/Description...","Speichere Journal/Details..." }, | 829 | { "Save Journal/Description...","Speichere Journal/Details..." }, |
830 | { "This saves the text/details of selected\nJournals and Events/Todos\nto a text file.","Das speichert den Text bzw.\ndie Details von selektierten\nJournalen und Events/Todos\nin eine Textdatei." }, | 830 | { "This saves the text/details of selected\nJournals and Events/Todos\nto a text file.","Das speichert den Text bzw.\ndie Details von selektierten\nJournalen und Events/Todos\nin eine Textdatei." }, |
831 | { "Continue","Weitermachen" }, | 831 | { "Continue","Weitermachen" }, |
832 | { " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, | 832 | { " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, |
833 | { "Attendee:","Teilnehmer:" }, | 833 | { "Attendee:","Teilnehmer:" }, |
834 | { "Click OK to search ->","Klicke zum Suchen auf OK ->" }, | 834 | { "Click OK to search ->","Klicke zum Suchen auf OK ->" }, |
835 | { "On day ","Am Tag " }, | 835 | { "On day ","Am Tag " }, |
836 | { "%1 of ","%1 des Monats" }, | 836 | { "%1 of ","%1 des Monats" }, |
837 | { "%1 of the year","%1 des Jahres" }, | 837 | { "%1 of the year","%1 des Jahres" }, |
838 | { "","" }, | 838 | { "","" }, |
839 | { "","" }, | 839 | { "","" }, |
840 | { "","" }, | 840 | { "","" }, |
841 | { "","" }, | 841 | { "","" }, |
842 | { "","" }, | 842 | { "","" }, |
843 | { "","" }, | 843 | { "","" }, |
844 | { "","" }, | 844 | { "","" }, |
845 | { "","" }, | 845 | { "","" }, |
846 | { "","" }, | 846 | { "","" }, |
847 | { "","" }, | 847 | { "","" }, |
848 | { "","" }, | 848 | { "","" }, |
849 | 849 | ||
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index 2cfb382..651442b 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -350,97 +350,97 @@ KOPrefs *KOPrefs::instance() | |||
350 | void KOPrefs::usrSetDefaults() | 350 | void KOPrefs::usrSetDefaults() |
351 | { | 351 | { |
352 | 352 | ||
353 | } | 353 | } |
354 | 354 | ||
355 | void KOPrefs::fillMailDefaults() | 355 | void KOPrefs::fillMailDefaults() |
356 | { | 356 | { |
357 | if (mName.isEmpty()) mName = i18n("Anonymous"); | 357 | if (mName.isEmpty()) mName = i18n("Anonymous"); |
358 | if (mEmail.isEmpty()) mEmail = i18n("nobody@nowhere"); | 358 | if (mEmail.isEmpty()) mEmail = i18n("nobody@nowhere"); |
359 | } | 359 | } |
360 | 360 | ||
361 | void KOPrefs::setTimeZoneIdDefault() | 361 | void KOPrefs::setTimeZoneIdDefault() |
362 | { | 362 | { |
363 | mTimeZoneId = i18n("+01:00 Europe/Oslo(CET)"); | 363 | mTimeZoneId = i18n("+01:00 Europe/Oslo(CET)"); |
364 | } | 364 | } |
365 | 365 | ||
366 | void KOPrefs::setCategoryDefaults() | 366 | void KOPrefs::setCategoryDefaults() |
367 | { | 367 | { |
368 | mCustomCategories.clear(); | 368 | mCustomCategories.clear(); |
369 | mCustomCategories = getDefaultList(); | 369 | mCustomCategories = getDefaultList(); |
370 | 370 | ||
371 | QStringList::Iterator it; | 371 | QStringList::Iterator it; |
372 | for (it = mCustomCategories.begin();it != mCustomCategories.end();++it ) { | 372 | for (it = mCustomCategories.begin();it != mCustomCategories.end();++it ) { |
373 | setCategoryColor(*it,mDefaultCategoryColor); | 373 | setCategoryColor(*it,mDefaultCategoryColor); |
374 | } | 374 | } |
375 | } | 375 | } |
376 | 376 | ||
377 | QStringList KOPrefs::getDefaultList() | 377 | QStringList KOPrefs::getDefaultList() |
378 | { | 378 | { |
379 | QStringList retval ; | 379 | QStringList retval ; |
380 | retval << i18n("Anniversary") << i18n("Appointment") << i18n("Birthday") << i18n("Business") << i18n("Business Travel") << i18n("Cinema") << i18n("Customer") | 380 | retval << i18n("Anniversary") << i18n("Appointment") << i18n("Birthday") << i18n("Business") << i18n("Business Travel") << i18n("Cinema") << i18n("Customer") |
381 | << i18n("Break")<< i18n("Breakfast")<< i18n("Competition")<< i18n("Dinner") | 381 | << i18n("Break")<< i18n("Breakfast")<< i18n("Competition")<< i18n("Dinner") |
382 | << i18n("Education")<< i18n("Family") << i18n("Favorites") << i18n("Festival")<< i18n("Fishing")<< i18n("Flight") << i18n("Gifts") | 382 | << i18n("Education")<< i18n("Family") << i18n("Favorites") << i18n("Festival")<< i18n("Fishing")<< i18n("Flight") << i18n("Gifts") |
383 | << i18n("Holiday") << i18n("Holiday Cards")<< i18n("Hot Contacts") << i18n("Hiking") << i18n("Hunting") << i18n("Key Customer") << i18n("Kids") | 383 | << i18n("Holiday") << i18n("Holiday Cards")<< i18n("Hot Contacts") << i18n("Hiking") << i18n("Hunting") << i18n("Key Customer") << i18n("Kids") |
384 | << i18n("Lunch") << i18n("Meeting") << i18n("Miscellaneous") << i18n("Partner")<< i18n("Party") << i18n("Personal") << i18n("Personal Travel") | 384 | << i18n("Lunch") << i18n("Meeting") << i18n("Miscellaneous") << i18n("Partner")<< i18n("Party") << i18n("Personal") << i18n("Personal Travel") |
385 | << i18n("PHB") << i18n("Phone Calls") << i18n("Projects") << i18n("Recurring") << i18n("School") << i18n("Shopping") | 385 | << i18n("PHB") << i18n("Phone Calls") << i18n("Projects") << i18n("Recurring") << i18n("School") << i18n("Shopping") |
386 | << i18n("Speach") << i18n("Special Occasion") << i18n("Sports") << i18n("Talk") << i18n("Travel") << i18n("TV")<< i18n("University") | 386 | << i18n("Speach") << i18n("Special Occasion") << i18n("Sports") << i18n("Talk") << i18n("Travel") << i18n("TV")<< i18n("University") |
387 | << i18n("Vacation") << i18n("VIP") << i18n("SyncEvent") ; | 387 | << i18n("Vacation") << i18n("VIP") << i18n("SyncEvent") ; |
388 | retval.sort(); | 388 | retval.sort(); |
389 | return retval; | 389 | return retval; |
390 | } | 390 | } |
391 | 391 | ||
392 | void KOPrefs::usrReadConfig() | 392 | void KOPrefs::usrReadConfig() |
393 | { | 393 | { |
394 | mPreferredLanguage = KPimGlobalPrefs::instance()->mPreferredLanguage; | 394 | mPreferredLanguage = KPimGlobalPrefs::instance()->mPreferredLanguage; |
395 | mLocaleDict = 0; | 395 | mLocaleDict = 0; |
396 | // pending LR fix translation | 396 | // pending LR fix translation |
397 | // qDebug("KOPrefs::usrReadConfig() fix translation "); | 397 | // qDebug("KOPrefs::usrReadConfig() fix translation "); |
398 | if ( mPreferredLanguage > 0 && mPreferredLanguage < 4 ) { | 398 | if ( mPreferredLanguage > 0 && mPreferredLanguage < 5 ) { |
399 | if ( mPreferredLanguage == 1 ) { | 399 | if ( mPreferredLanguage == 1 ) { |
400 | mLocaleDict = new QDict<QString>; | 400 | mLocaleDict = new QDict<QString>; |
401 | int i = 0; | 401 | int i = 0; |
402 | QString fw ( germanwords[i] [0]); | 402 | QString fw ( germanwords[i] [0]); |
403 | while ( !fw.isEmpty() ) { | 403 | while ( !fw.isEmpty() ) { |
404 | mLocaleDict->insert( fw, new QString (germanwords[i] [1] )); | 404 | mLocaleDict->insert( fw, new QString (germanwords[i] [1] )); |
405 | ++i; | 405 | ++i; |
406 | fw = germanwords[i] [0]; | 406 | fw = germanwords[i] [0]; |
407 | } | 407 | } |
408 | 408 | ||
409 | setLocaleDict( mLocaleDict ); | 409 | setLocaleDict( mLocaleDict ); |
410 | } else { | 410 | } else { |
411 | QString fileName ; | 411 | QString fileName ; |
412 | if ( mPreferredLanguage == 4 ) | 412 | if ( mPreferredLanguage == 4 ) |
413 | fileName = MainWindow::resourcePath()+"usertranslation.txt"; | 413 | fileName = MainWindow::resourcePath()+"usertranslation.txt"; |
414 | else if ( mPreferredLanguage == 2 ) | 414 | else if ( mPreferredLanguage == 2 ) |
415 | fileName = MainWindow::resourcePath()+"frenchtranslation.txt"; | 415 | fileName = MainWindow::resourcePath()+"frenchtranslation.txt"; |
416 | else if ( mPreferredLanguage == 3 ) | 416 | else if ( mPreferredLanguage == 3 ) |
417 | fileName = MainWindow::resourcePath()+"italiantranslation.txt"; | 417 | fileName = MainWindow::resourcePath()+"italiantranslation.txt"; |
418 | QFile file( fileName ); | 418 | QFile file( fileName ); |
419 | if (file.open( IO_ReadOnly ) ) { | 419 | if (file.open( IO_ReadOnly ) ) { |
420 | QTextStream ts( &file ); | 420 | QTextStream ts( &file ); |
421 | ts.setEncoding( QTextStream::Latin1 ); | 421 | ts.setEncoding( QTextStream::Latin1 ); |
422 | //ts.setCodec( QTextCodec::latin1 ); | 422 | //ts.setCodec( QTextCodec::latin1 ); |
423 | QString text = ts.read(); | 423 | QString text = ts.read(); |
424 | file.close(); | 424 | file.close(); |
425 | text.replace( QRegExp("\\\\n"), "\n" ); | 425 | text.replace( QRegExp("\\\\n"), "\n" ); |
426 | QString line; | 426 | QString line; |
427 | QString we; | 427 | QString we; |
428 | QString wt; | 428 | QString wt; |
429 | int br = 0; | 429 | int br = 0; |
430 | int nbr; | 430 | int nbr; |
431 | nbr = text.find ( "},", br ); | 431 | nbr = text.find ( "},", br ); |
432 | line = text.mid( br, nbr - br ); | 432 | line = text.mid( br, nbr - br ); |
433 | br = nbr+1; | 433 | br = nbr+1; |
434 | int se, ee, st, et; | 434 | int se, ee, st, et; |
435 | mLocaleDict = new QDict<QString>; | 435 | mLocaleDict = new QDict<QString>; |
436 | QString end = "{ \"\",\"\" }"; | 436 | QString end = "{ \"\",\"\" }"; |
437 | while ( (line != end) && (br > 1) ) { | 437 | while ( (line != end) && (br > 1) ) { |
438 | //qDebug("%d *%s* ", br, line.latin1()); | 438 | //qDebug("%d *%s* ", br, line.latin1()); |
439 | se = line.find("\"")+1; | 439 | se = line.find("\"")+1; |
440 | et = line.findRev("\"",-1); | 440 | et = line.findRev("\"",-1); |
441 | ee = line.find("\",\""); | 441 | ee = line.find("\",\""); |
442 | st = ee+3; | 442 | st = ee+3; |
443 | we = line.mid( se, ee-se ); | 443 | we = line.mid( se, ee-se ); |
444 | wt = line.mid( st, et-st ); | 444 | wt = line.mid( st, et-st ); |
445 | //qDebug("*%s* *%s* ", we.latin1(), wt.latin1()); | 445 | //qDebug("*%s* *%s* ", we.latin1(), wt.latin1()); |
446 | mLocaleDict->insert( we, new QString (wt) ); | 446 | mLocaleDict->insert( we, new QString (wt) ); |