From ad1a4b647970dda2359110416342e87f0c71e641 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 7 Sep 2021 11:42:32 +0200 Subject: [PATCH] [libcalamares] APIdox on Translation --- src/libcalamares/locale/Translation.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libcalamares/locale/Translation.h b/src/libcalamares/locale/Translation.h index db5be3c7c..67de90821 100644 --- a/src/libcalamares/locale/Translation.h +++ b/src/libcalamares/locale/Translation.h @@ -86,7 +86,16 @@ public: /** @brief Get the Qt 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(); } + /** @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 }; } /// @brief Convenience accessor to the language part of the locale