--Boundary-00=_Xmq/Ca4zLTn8Wio
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

The problem I described in "klocale problems" thread on 29/07/2005 can be
fixed using patch below. At least for Polish. I don't know how would
setLanguage() and setCountry() work for languages like pt_BR or ru_RU (I mean
those consisting of two parts). Ok to commit?
--
Regards,
Tomasz Grobelny

--Boundary-00=_Xmq/Ca4zLTn8Wio
Content-Type: text/x-diff;
charset="iso-8859-2";
name="libkmime.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="libkmime.patch"

Index: kmime_util.cpp
================================================== =================
--- kmime_util.cpp (wersja 448969)
+++ kmime_util.cpp (kopia robocza)
@@ -712,10 +712,11 @@


if ( !localeLanguage.isEmpty() ) {
- QString olang = locale->language();
- locale->setLanguage( localeLanguage );
+ locale=new KLocale(localeLanguage);
+ locale->setLanguage(localeLanguage);
+ locale->setCountry(localeLanguage);
ret = locale->formatDateTime( tmp, shortFormat, includeSecs );
- locale->setLanguage( olang );
+ delete locale;
} else {
ret = locale->formatDateTime( tmp, shortFormat, includeSecs );
}

--Boundary-00=_Xmq/Ca4zLTn8Wio
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

=

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=

e <<

--Boundary-00=_Xmq/Ca4zLTn8Wio--