diff options
author | Eike Rathke <erack@redhat.com> | 2024-04-11 19:15:17 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2024-04-12 12:06:28 +0200 |
commit | d4375cf6e6086c3b9cb169cbb40781e8b1124b4d (patch) | |
tree | e32d4fc9df7c764e4d2b928dd8e999f869a411d0 /svx | |
parent | 44ff9907eb1f2851b3b9087e7ec5e5dfae5a00c6 (diff) |
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 <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/langbox.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |