summaryrefslogtreecommitdiffabout
path: root/libkdepim
authorzautrix <zautrix>2005-01-30 21:39:03 (UTC)
committer zautrix <zautrix>2005-01-30 21:39:03 (UTC)
commit6dbf4f4a6666e7a94c68517df1659eb14cd104b9 (patch) (side-by-side diff)
treeb98e130d6d0d6205655cf1a6e28074c0c38011d1 /libkdepim
parent15c5772f8a54750115f82aea34fea47e5842ff4f (diff)
downloadkdepimpi-6dbf4f4a6666e7a94c68517df1659eb14cd104b9.zip
kdepimpi-6dbf4f4a6666e7a94c68517df1659eb14cd104b9.tar.gz
kdepimpi-6dbf4f4a6666e7a94c68517df1659eb14cd104b9.tar.bz2
fixes
Diffstat (limited to 'libkdepim') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/kpimglobalprefs.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libkdepim/kpimglobalprefs.cpp b/libkdepim/kpimglobalprefs.cpp
index e8fd2d1..81e3cb1 100644
--- a/libkdepim/kpimglobalprefs.cpp
+++ b/libkdepim/kpimglobalprefs.cpp
@@ -151,13 +151,16 @@ void KPimGlobalPrefs::setGlobalConfig()
//qDebug("%d *%s* ", br, line.latin1());
se = line.find("\"")+1;
et = line.findRev("\"",-1);
ee = line.find("\",\"");
st = ee+3;
we = line.mid( se, ee-se );
- wt = line.mid( st, et-st );
+ if ( mPreferredLanguage == 4 )
+ wt = QString::fromUtf8(line.mid( st, et-st ).latin1());
+ else
+ wt = line.mid( st, et-st );
//qDebug("*%s* *%s* ", we.latin1(), wt.latin1());
mLocaleDict->insert( we, new QString (wt) );
nbr = text.find ( "}", br );
line = text.mid( br, nbr - br );
br = nbr+1;
}