diff options
author | Eike Rathke <erack@redhat.com> | 2021-07-12 18:53:46 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2021-07-12 22:00:10 +0200 |
commit | 4e0a7df2dfa10bc52d5dbda34f43e0bc0df22ae7 (patch) | |
tree | 3bcb0b2412995d8f66d54fee6da637913cabdeba /i18nlangtag | |
parent | 7e016df70d4ceb6c90ec5f1b129b50a65ff07505 (diff) |
Resolves: tdf#123466 Add Microsoft ill-used {x-none} to known language tags
'x-none' is a private-use tag and letting it escape into the wild
isn't such a private use..
This just prevents the lt_string_value assertion that doesn't harm
anyway but seems to confuse people and makes the tag known to
LibreOffice with a reproducible assigned LCID instead of an
on-the-fly generated one.
Whatever it may take to actually support something tagged with
'x-none'.
Change-Id: I3f32c9ba18a2528584a112157509c1dfda75e29c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118788
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'i18nlangtag')
-rw-r--r-- | i18nlangtag/source/isolang/isolang.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/i18nlangtag/source/isolang/isolang.cxx b/i18nlangtag/source/isolang/isolang.cxx index 1ca95bb35244..941a73b25766 100644 --- a/i18nlangtag/source/isolang/isolang.cxx +++ b/i18nlangtag/source/isolang/isolang.cxx @@ -955,6 +955,7 @@ IsoLangOtherEntry const aImplPrivateUseEntries[] = { LANGUAGE_USER_PRIV_NOTRANSLATE, "x-no-translate" }, //! not BCP47 but legacy in .xcu configmgr { LANGUAGE_USER_PRIV_DEFAULT, "x-default" }, { LANGUAGE_USER_PRIV_COMMENT, "x-comment" }, + { LANGUAGE_USER_PRIV_NONE, "x-none" }, { LANGUAGE_USER_PRIV_JOKER, "*" }, //! not BCP47 but transferable in configmgr { LANGUAGE_DONTKNOW, nullptr } // marks end of table }; |