From d4b325a41e4e9004c17541b16fc1330358fee2d1 Mon Sep 17 00:00:00 2001 From: Konstantin Isakov Date: Fri, 3 Dec 2010 15:35:06 +0300 Subject: [PATCH] Skip Qt's own localizations when searching for localization files. --- preferences.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/preferences.cc b/preferences.cc index f03e05c9..b6883686 100644 --- a/preferences.cc +++ b/preferences.cc @@ -53,6 +53,10 @@ Preferences::Preferences( QWidget * parent, Config::Preferences const & p ): { // Here we assume the xx_YY naming, where xx is language and YY is region. QString lang = i->mid( 0, 2 ); + + if ( lang == "qt" ) + continue; // We skip qt's own locations + sortedLocs[ Language::localizedNameForId( LangCoder::code2toInt( lang.toAscii().data() ) ) ] = QPair< QIcon, QString >( QIcon( QString( ":/flags/%1.png" ).arg( i->mid( 3, 2 ).toLower() ) ), i->mid( 0, i->size() - 3 ) );