Kaydet (Commit) 9f1d47f8 authored tarafından Eike Rathke's avatar Eike Rathke

attempt to roughly fix fdo#68740

Actually that map wants a resolved fallback locale, not just a language
to ID mapping, which light fallback was a side effect of
MsLangId::convertIsoNamesToLanguage() and eliminated with the latest
changes to LanguageTag conversion.

Change-Id: I32f632c6b198383dd3eda8538ccb801c9275baca
üst 74929bba
...@@ -330,7 +330,7 @@ void add_group_entries( ...@@ -330,7 +330,7 @@ void add_group_entries(
iso_lang_identifier myiso_lang( iso_lang ); iso_lang_identifier myiso_lang( iso_lang );
LanguageType ltype = LanguageTag( LanguageType ltype = LanguageTag(
OStringToOUString( myiso_lang.language(), RTL_TEXTENCODING_UTF8), OStringToOUString( myiso_lang.language(), RTL_TEXTENCODING_UTF8),
OStringToOUString( myiso_lang.country(), RTL_TEXTENCODING_UTF8)).getLanguageType(); OStringToOUString( myiso_lang.country(), RTL_TEXTENCODING_UTF8)).makeFallback().getLanguageType();
if( ( ltype & 0x0200 ) == 0 && map[ ltype ].empty() ) if( ( ltype & 0x0200 ) == 0 && map[ ltype ].empty() )
{ {
Substitutor.set_language(iso_lang_identifier(iso_lang)); Substitutor.set_language(iso_lang_identifier(iso_lang));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment