mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
[libcalamares] English label with country
This commit is contained in:
parent
81acc496dc
commit
cb5825a521
1 changed files with 3 additions and 3 deletions
|
@ -55,8 +55,8 @@ LocaleLabel::setLabels( const QString& locale, LabelFormat format )
|
||||||
|
|
||||||
if ( needsCountryName )
|
if ( needsCountryName )
|
||||||
countryName = m_locale.nativeCountryName();
|
countryName = m_locale.nativeCountryName();
|
||||||
m_label = needsCountryName ? longFormat.arg( languageName ).arg( countryName ) : languageName;
|
m_label = needsCountryName ? longFormat.arg( languageName, countryName ) : languageName;
|
||||||
m_englishLabel = englishName;
|
m_englishLabel = needsCountryName ? longFormat.arg( englishName, QLocale::countryToString( m_locale.country() ) ) : englishName;
|
||||||
}
|
}
|
||||||
|
|
||||||
QLocale LocaleLabel::getLocale( const QString& localeName )
|
QLocale LocaleLabel::getLocale( const QString& localeName )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue