author | zautrix <zautrix> | 2004-08-06 16:50:03 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-06 16:50:03 (UTC) |
commit | 02963edb373e263bd50ab431633ea66adf32a4aa (patch) (unidiff) | |
tree | 3affe8b9605f31e2a85c1c9c6cf4dfb9ab386394 /korganizer | |
parent | 55a7ffaccca40d10932c98527a34cc6cc9c89afb (diff) | |
download | kdepimpi-02963edb373e263bd50ab431633ea66adf32a4aa.zip kdepimpi-02963edb373e263bd50ab431633ea66adf32a4aa.tar.gz kdepimpi-02963edb373e263bd50ab431633ea66adf32a4aa.tar.bz2 |
Fixed translation problem
-rw-r--r-- | korganizer/koprefs.cpp | 15 | ||||
-rw-r--r-- | korganizer/koprefsdialog.cpp | 4 | ||||
-rw-r--r-- | korganizer/wordsgerman.h | 4 |
3 files changed, 14 insertions, 9 deletions
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index f3231ff..042046e 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -403,16 +403,20 @@ void KOPrefs::usrReadConfig() | |||
403 | } | 403 | } |
404 | 404 | ||
405 | setLocaleDict( mLocaleDict ); | 405 | setLocaleDict( mLocaleDict ); |
406 | } | 406 | } else { |
407 | if ( mPreferredLanguage == 3 ) { | 407 | QString fileName ; |
408 | QString fileName = MainWindow::resourcePath()+"usertranslation.txt"; | 408 | if ( mPreferredLanguage == 3 ) |
409 | fileName = MainWindow::resourcePath()+"usertranslation.txt"; | ||
410 | else if ( mPreferredLanguage == 2 ) | ||
411 | fileName = MainWindow::resourcePath()+"frenchtranslation.txt"; | ||
412 | else return; | ||
409 | QFile file( fileName ); | 413 | QFile file( fileName ); |
410 | if (file.open( IO_ReadOnly ) ) { | 414 | if (file.open( IO_ReadOnly ) ) { |
411 | QTextStream ts( &file ); | 415 | QTextStream ts( &file ); |
412 | ts.setCodec( QTextCodec::codecForLocale() ); | 416 | ts.setCodec( QTextCodec::codecForLocale() ); |
413 | QString text = ts.read(); | 417 | QString text = ts.read(); |
414 | file.close(); | 418 | file.close(); |
415 | 419 | text.replace( QRegExp("\\\\n"), "\n" ); | |
416 | QString line; | 420 | QString line; |
417 | QString we; | 421 | QString we; |
418 | QString wt; | 422 | QString wt; |
@@ -442,8 +446,9 @@ void KOPrefs::usrReadConfig() | |||
442 | 446 | ||
443 | setLocaleDict( mLocaleDict ); | 447 | setLocaleDict( mLocaleDict ); |
444 | } else { | 448 | } else { |
445 | qDebug("KO: Cannot find translation file usertranslation.txt"); | 449 | qDebug("KO: Cannot find translation file %s",fileName.latin1() ); |
446 | } | 450 | } |
451 | |||
447 | } | 452 | } |
448 | config()->setGroup("General"); | 453 | config()->setGroup("General"); |
449 | 454 | ||
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index da6644f..5ba4817 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -163,7 +163,7 @@ void KOPrefsDialog::setupLocaleTab() | |||
163 | addWidRadios(i18n("Language:(needs restart)"),&(KOPrefs::instance()->mPreferredLanguage),topFrame); | 163 | addWidRadios(i18n("Language:(needs restart)"),&(KOPrefs::instance()->mPreferredLanguage),topFrame); |
164 | syncPrefsGroup->addRadio(i18n("English")); | 164 | syncPrefsGroup->addRadio(i18n("English")); |
165 | syncPrefsGroup->addRadio(i18n("German")); | 165 | syncPrefsGroup->addRadio(i18n("German")); |
166 | syncPrefsGroup->addRadio(i18n("French(nyi)")); | 166 | syncPrefsGroup->addRadio(i18n("French")); |
167 | syncPrefsGroup->addRadio(i18n("User defined (usertranslation.txt)")); | 167 | syncPrefsGroup->addRadio(i18n("User defined (usertranslation.txt)")); |
168 | if ( QApplication::desktop()->width() < 300 ) | 168 | if ( QApplication::desktop()->width() < 300 ) |
169 | ;// syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); | 169 | ;// syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); |
@@ -1583,7 +1583,7 @@ void KOPrefsDialog::setupTimeZoneTab() | |||
1583 | &(KOPrefs::instance()->mUseDaylightsaving),topFrame); | 1583 | &(KOPrefs::instance()->mUseDaylightsaving),topFrame); |
1584 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 1584 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
1585 | ++iii; | 1585 | ++iii; |
1586 | QLabel* lab = new QLabel( i18n("Actual start/end is the\nsunday before this date."), topFrame ); | 1586 | QLabel* lab = new QLabel( i18n("Actual start and end is the\nsunday before this date."), topFrame ); |
1587 | topLayout->addMultiCellWidget(lab, iii,iii,0,1); | 1587 | topLayout->addMultiCellWidget(lab, iii,iii,0,1); |
1588 | ++iii; | 1588 | ++iii; |
1589 | lab = new QLabel( i18n("The year in the date is ignored."), topFrame ); | 1589 | lab = new QLabel( i18n("The year in the date is ignored."), topFrame ); |
diff --git a/korganizer/wordsgerman.h b/korganizer/wordsgerman.h index 8310f2f..6fd347c 100644 --- a/korganizer/wordsgerman.h +++ b/korganizer/wordsgerman.h | |||
@@ -452,7 +452,7 @@ | |||
452 | { "week(s) on:","Woche(n) am: " }, | 452 | { "week(s) on:","Woche(n) am: " }, |
453 | { "Full menu bar(nr)","Volle Menuleiste(bn)" }, | 453 | { "Full menu bar(nr)","Volle Menuleiste(bn)" }, |
454 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, | 454 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, |
455 | { "Actual start/end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der Sonntag\nvor diesem Datum!" }, | 455 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der Sonntag\nvor diesem Datum!" }, |
456 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, | 456 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, |
457 | { "Daylight start:","Sommerzeit Beginn:" }, | 457 | { "Daylight start:","Sommerzeit Beginn:" }, |
458 | { "Daylight end:","Sommerzeit Ende:" }, | 458 | { "Daylight end:","Sommerzeit Ende:" }, |
@@ -565,7 +565,7 @@ | |||
565 | { "min","Min" }, | 565 | { "min","Min" }, |
566 | { "hou","Std" }, | 566 | { "hou","Std" }, |
567 | { "day","Tag" }, | 567 | { "day","Tag" }, |
568 | { "French(nyi)","Französich (noch nicht implementiert)" }, | 568 | { "French","Französich" }, |
569 | { "Time","Zeit" }, | 569 | { "Time","Zeit" }, |
570 | { "Event Viewer","Termin Ansicht" }, | 570 | { "Event Viewer","Termin Ansicht" }, |
571 | { "Cancel Sync","Sync Abbrechen" }, | 571 | { "Cancel Sync","Sync Abbrechen" }, |