[locale] Add properties for language and LC codes

- we already had the human-readable status strings, but also want the
  actual code (particularly for being able to **update** the code
  from QML)
This commit is contained in:
Adriaan de Groot 2020-07-23 23:25:52 +02:00
parent fdbfbfe284
commit 75da1bece4
2 changed files with 11 additions and 0 deletions

View file

@ -288,6 +288,7 @@ Config::setLanguageExplicitly( const QString& language )
m_selectedLocaleConfiguration.explicit_lang = true;
emit currentLanguageStatusChanged( currentLanguageStatus() );
emit currentLanguageCodeChanged( currentLanguageCode() );
}
void
@ -306,6 +307,7 @@ Config::setLCLocaleExplicitly( const QString& locale )
m_selectedLocaleConfiguration.explicit_lc = true;
emit currentLCStatusChanged( currentLCStatus() );
emit currentLCCodeChanged( currentLCCode() );
}
QString