kdelibs/kdelibs-3.5.6-lang.patch
Rex Dieter 0179c52a20 Jun 15 2007 Rex Dieter <rdieter[AT]fedoraproject.org> - 6:3.5.7-3
- include experimental libtool patches

* Mon Jun 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> - 6:3.5.7-2
- kdesu: sudo support (kde bug #20914), Requires(hint): sudo

* Wed Jun 06 2007 Than Ngo <than@redhat.com> -  6:3.5.7-0.1.fc7
- 3.5.7
2007-06-15 18:09:56 +00:00

18 lines
662 B
Diff

--- kdelibs-3.5.6/kdecore/klocale.cpp.orig 2007-05-22 17:49:31.000000000 +0200
+++ kdelibs-3.5.6/kdecore/klocale.cpp 2007-05-23 20:37:54.000000000 +0200
@@ -140,9 +140,11 @@ void KLocale::initLanguageList(KConfig *
KConfigGroupSaver saver(config, "Locale");
m_country = config->readEntry( "Country" );
- if ( m_country.isEmpty() )
- m_country = defaultCountry();
-
+ if ( m_country.isEmpty() ) {
+ QString ln, ct, chrset;
+ splitLocale(QString(::getenv("LANG")), ln, ct, chrset);
+ m_country = (ct.isEmpty()) ? defaultCountry() : ct.lower();
+ }
// Reset the list and add the new languages
QStringList languageList;
if ( useEnv )