author | zautrix <zautrix> | 2004-10-08 15:50:30 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-08 15:50:30 (UTC) |
commit | 13bd085e06b76228321f5a004759fcdf19cca711 (patch) (unidiff) | |
tree | 66edb5db035dc88a13ff1ec9b840c549a7e81104 /korganizer | |
parent | d46e6bd77c336ce98bafe884a3f7ee5b0d884f1f (diff) | |
download | kdepimpi-13bd085e06b76228321f5a004759fcdf19cca711.zip kdepimpi-13bd085e06b76228321f5a004759fcdf19cca711.tar.gz kdepimpi-13bd085e06b76228321f5a004759fcdf19cca711.tar.bz2 |
fix loading translation
-rw-r--r-- | korganizer/koprefs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index 2cfb382..651442b 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -386,25 +386,25 @@ QStringList KOPrefs::getDefaultList() | |||
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 { |