Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:belphegor_belbel:KDE3
kdelibs3
kdelibs-3.5.6-fedora-lang.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdelibs-3.5.6-fedora-lang.patch of Package kdelibs3
--- 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 )
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor