Skip to content

Commit

Permalink
The locale selector fixes
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@10815 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed May 18, 2009
1 parent 5c1f3f8 commit e10f2c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsoptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) :
cboLocale->addItems( myI18nList );
if ( myI18nList.contains( myUserLocale ) )
{
cboLocale->setItemText( cboLocale->currentIndex(), myUserLocale );
cboLocale->setCurrentIndex( myI18nList.indexOf( myUserLocale ) );
}
bool myLocaleOverrideFlag = settings.value( "locale/overrideFlag", false ).toBool();
grpLocale->setChecked( myLocaleOverrideFlag );
Expand Down Expand Up @@ -623,7 +623,7 @@ QStringList QgsOptions::i18nList()
QStringList myList;
myList << "en_US"; //there is no qm file for this so we add it manually
QString myI18nPath = QgsApplication::i18nPath();
QDir myDir( myI18nPath, "*.qm" );
QDir myDir( myI18nPath, "qgis*.qm" );
QStringList myFileList = myDir.entryList();
QStringListIterator myIterator( myFileList );
while ( myIterator.hasNext() )
Expand Down

0 comments on commit e10f2c6

Please sign in to comment.