From 04bf1be9d60fcf474c6aac42f2b081d5ac48df69 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Mon, 9 Sep 2024 16:57:07 +0400 Subject: [PATCH] Deprived pseudolang mul of a self-name ICU package contains a special code "mul" with a self-name of "multiple languages". libkiwix now suppresses that. As a result the self-name of "mul" (like for any other unknown language code) is the code itself (i.e. "mul"). The most prominent user-visible effect of this change is that the language filter in the library page no longer contains a "Multiple languages" entry if there is a legacy ZIM file with the language set to "mul" - that entry now shows up as "Mul". --- src/tools/languageTools.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/languageTools.cpp b/src/tools/languageTools.cpp index c1abd2933..c3899a60a 100644 --- a/src/tools/languageTools.cpp +++ b/src/tools/languageTools.cpp @@ -68,6 +68,7 @@ void fillLanguagesMap() const kiwix::ICULanguageInfo lang(*icuLangPtr); iso639_3.insert({lang.iso3Code(), lang.selfName()}); } + iso639_3.erase("mul"); } } // unnamed namespace