diff options
author | Eike Rathke <erack@redhat.com> | 2021-10-24 23:10:30 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2021-10-25 11:18:31 +0200 |
commit | bba6a4ed92a0feb288a9dedd648d623bee02a3ce (patch) | |
tree | 9c41ebef57156a6dc14f6395fd16fad962f63212 /svl | |
parent | 98247b039baea4697e6c387025afcf6a2963c043 (diff) |
Get rid of fuzziness in MsLangId::Conversion::convertIsoNamesToLanguage()
With on-the-fly LanguageTag the fuzzy fallbacks for a few
languages aren't needed anymore. Proper fallbacks should be
obtained when needed, like when configuring default locales, or
configured values used after.
Change-Id: I8b85b8099e085508435036ac846db6c3e516dc23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124127
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/numfmuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx index 679dbe16f7fc..416de9297179 100644 --- a/svl/source/numbers/numfmuno.cxx +++ b/svl/source/numbers/numfmuno.cxx @@ -97,7 +97,7 @@ static const SfxItemPropertyMapEntry* lcl_GetNumberSettingsPropertyMap() static LanguageType lcl_GetLanguage( const lang::Locale& rLocale ) { - LanguageType eRet = LanguageTag::convertToLanguageType( rLocale, false); + LanguageType eRet = LanguageTag( rLocale).makeFallback().getLanguageType(false); if ( eRet == LANGUAGE_NONE ) eRet = LANGUAGE_SYSTEM; //! or throw an exception? |