From d4375cf6e6086c3b9cb169cbb40781e8b1124b4d Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 11 Apr 2024 19:15:17 +0200 Subject: Resolves: tdf#160256 Add "[Multiple]" and "[Undetermined]" to language list Such that they are added to the top of the list after "[None]" and only if "[None]" was requested. {mul} and {und} ISO codes. Change-Id: I024311fe7d638124932a1d38759305e8efec5962 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166012 Reviewed-by: Eike Rathke Tested-by: Jenkins --- svx/source/dialog/langbox.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'svx') diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx index 8699a6798d59..477e4047e828 100644 --- a/svx/source/dialog/langbox.cxx +++ b/svx/source/dialog/langbox.cxx @@ -101,6 +101,8 @@ bool lcl_isPrerequisite(LanguageType nLangType, bool requireSublang) nLangType != LANGUAGE_DONTKNOW && nLangType != LANGUAGE_SYSTEM && nLangType != LANGUAGE_NONE && + nLangType != LANGUAGE_MULTIPLE && + nLangType != LANGUAGE_UNDETERMINED && nLangType != LANGUAGE_USER_KEYID && !MsLangId::isLegacy( nLangType) && (!requireSublang || MsLangId::getSubLanguage( nLangType)); @@ -311,6 +313,8 @@ void SvxLanguageBox::SetLanguageList(SvxLanguageListFlags nLangList, bool bHasLa if (bHasLangNone) { m_xControl->append(BuildEntry(LANGUAGE_NONE)); + m_xControl->append(BuildEntry(LANGUAGE_MULTIPLE)); + m_xControl->append(BuildEntry(LANGUAGE_UNDETERMINED)); bAddSeparator = true; } -- cgit