Kaydet (Commit) 4fb62812 authored tarafından Eike Rathke's avatar Eike Rathke

explicit 'en' fallback not needed for 'en-US' reference

If 'en-US' was given, 'en' is part of default fallbacks anyway.

Change-Id: I4f78c60bccd55fcf90f7c7fc99cda25ff1213db8
üst 0d87455f
......@@ -1178,9 +1178,11 @@ LanguageTag::Extraction LanguageTag::simpleExtract( const OUString& rBcp47,
::std::vector< OUString > aFallbacks( LanguageTag( rReference).getFallbackStrings());
aFallbacks.erase( aFallbacks.begin()); // first is full BCP47, we already checked that
if (rReference != "en-US")
{
aFallbacks.push_back( "en-US");
if (rReference != "en")
aFallbacks.push_back( "en");
if (rReference != "en")
aFallbacks.push_back( "en");
}
if (rReference != "x-default")
aFallbacks.push_back( "x-default");
if (rReference != "x-no-translate")
......
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