office-gobmx/editeng/source
Eike Rathke 437abb3abb Check acor_langtag for language-script fallback instead of only language
A tag with script could be added for which we don't have locale
data but for the same language in another script. Do not fall back
to that.

With that the share/autocorr/acor_zh-{CN,TW}.dat files created
additional Asian language listbox entries
"Chinese (Simplified, China) {zh-Hans-CN}"
"Chinese (Traditional, Taiwan) {zh-Hant-TW}"
because those are the canonicalized language tags.
Prefer the known legacy zh-CN and zh-TW tags instead.
Could also had happened with any document import.

Which again revealed a flaw in the handling of mapping overrides
where converting from a LanguageType LCID to Locale could yield a
different mapping than from BCP47 to LCID, which in the case of
a fallback for locale data lead to odd side effects.

Change-Id: I1e2aaa8e9f99b6b3bc2c9a661215cb00bddd33d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140939
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2022-10-04 19:15:45 +02:00
..
accessibility
editeng tdf#137528: Fix skipping Kashida in fonts with bogus ones 2022-10-03 01:39:56 +02:00
items tdf#83581: Improve caret travelling in in Edit Engine 2022-09-25 09:11:32 +02:00
lookuptree use more string_view in editeng 2022-09-21 18:29:54 +02:00
misc Check acor_langtag for language-script fallback instead of only language 2022-10-04 19:15:45 +02:00
outliner
rtf
uno
xml