mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[libcalamares] Fix misleading comment, add accessor
- the sort order is not English-at-the-top - add accessor for the locale ID.
This commit is contained in:
parent
28293ef77a
commit
e0edd1f3e2
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,7 @@ public:
|
|||
|
||||
/** @brief Define a sorting order.
|
||||
*
|
||||
* English (@see isEnglish() -- it means en_US) is sorted at the top.
|
||||
* Locales are sorted by their id, which means the ISO 2-letter code + country.
|
||||
*/
|
||||
bool operator<( const Label& other ) const { return m_localeId < other.m_localeId; }
|
||||
|
||||
|
@ -78,6 +78,7 @@ public:
|
|||
QLocale locale() const { return m_locale; }
|
||||
|
||||
QString name() const { return m_locale.name(); }
|
||||
QString id() const { return m_localeId; }
|
||||
|
||||
/// @brief Convenience accessor to the language part of the locale
|
||||
QLocale::Language language() const { return m_locale.language(); }
|
||||
|
|
Loading…
Add table
Reference in a new issue