From 5346008b7af906273cdaf77d23095bd8ed8e666a Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 7 Nov 2023 13:25:37 +0100 Subject: [PATCH] libcalamares: repair names for recent translations bqi is one possible name of Luri / Lhur language, as far as I can tell -- there is also Northern Luri, which is supported by Qt and has code lrc. ie is Interlingue, which Qt maps to C locale. Work around that by mapping it to interlingua. --- src/libcalamares/locale/Translation.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/libcalamares/locale/Translation.cpp b/src/libcalamares/locale/Translation.cpp index c92468876..49e4c05d2 100644 --- a/src/libcalamares/locale/Translation.cpp +++ b/src/libcalamares/locale/Translation.cpp @@ -87,6 +87,21 @@ static constexpr const TranslationSpecialCase special_cases[] = { QLocale::Script::AnyScript, QLocale::Country::AnyCountry, "Lenga d'òc" }, + // Luri + { "bqi", + nullptr, + QLocale::Language::NorthernLuri, + QLocale::Script::AnyScript, + QLocale::Country::AnyCountry, + nullptr }, + // Interlingue is mapped to interlingu*a* because + // the real Language::Interlingue acts like C locale. + { "ie", + nullptr, + QLocale::Language::Interlingua, + QLocale::Script::AnyScript, + QLocale::Country::AnyCountry, + "Interlingue" }, }; static inline bool