Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoiast authored and icefox committed Sep 27, 2008
1 parent c5289ad commit 68991ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/languagechooser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ bool LanguageChooser::getLanguageFromUser()
QString s = d->m_langs.key(l);
if (s == d->m_currentLang)
defaultItem = items.count();
s = QString( QLatin1String("%1 (%2) %3") )
s = QString( QLatin1String("%1, %2 (%3) %4") )
.arg(QLocale::languageToString(l.language()))
.arg(QLocale::countryToString(l.country()))
.arg(s)
// this is for pretty RTL support, don't ask
.arg(QChar(0x200E) // LRM = 0x200E
Expand All @@ -140,7 +141,7 @@ bool LanguageChooser::getLanguageFromUser()
return false;

// now, lets see which item has been choosen
QRegExp regExp( QLatin1String("\\((\\w+)\\)") );
QRegExp regExp( QLatin1String("\\((\\w+)\\)") );
if (regExp.indexIn(item) == -1)
{
// this is BAD, the string did not match!
Expand Down

0 comments on commit 68991ae

Please sign in to comment.