[libcalamares] APIdox on Translation

This commit is contained in:
Adriaan de Groot 2021-09-07 11:42:32 +02:00
parent 73bfc6ca32
commit ad1a4b6479

View File

@ -86,7 +86,16 @@ public:
/** @brief Get the Qt locale. */ /** @brief Get the Qt locale. */
QLocale locale() const { return m_locale; } QLocale locale() const { return m_locale; }
/** @brief Get the Qt-internal name (code) of the locale
*
* This is not necessarily the same as what is in id().
*/
QString name() const { return m_locale.name(); } QString name() const { return m_locale.name(); }
/** @brief Gets the Calamares internal name (code) of the locale.
*
* This is a strongly-typed return to avoid it ending up all over
* the place as a QString.
*/
Id id() const { return { m_localeId }; } Id id() const { return { m_localeId }; }
/// @brief Convenience accessor to the language part of the locale /// @brief Convenience accessor to the language part of the locale