include language-only in ISO-only fallback strings
Change-Id: I6da1b2b46c724c72bff3b1ee9739f2625a0321c2
This commit is contained in:
@@ -209,6 +209,11 @@ void TestLanguageTag::testAllTags()
|
||||
CPPUNIT_ASSERT( de_DE.getCountry() == "DE" );
|
||||
CPPUNIT_ASSERT( de_DE.getScript() == "" );
|
||||
CPPUNIT_ASSERT( de_DE.getLanguageAndScript() == "de" );
|
||||
::std::vector< OUString > de_DE_Fallbacks( de_DE.getFallbackStrings( true));
|
||||
CPPUNIT_ASSERT( de_DE_Fallbacks.size() == 2);
|
||||
CPPUNIT_ASSERT( de_DE_Fallbacks[0] == "de-DE");
|
||||
CPPUNIT_ASSERT( de_DE_Fallbacks[1] == "de");
|
||||
CPPUNIT_ASSERT( de_DE.makeFallback().getBcp47() == "de-DE");
|
||||
}
|
||||
|
||||
{
|
||||
|
@@ -1238,6 +1238,7 @@ LanguageTag & LanguageTag::makeFallback()
|
||||
else if (aCountry != "CN")
|
||||
aVec.push_back( aLanguage + "-CN");
|
||||
}
|
||||
aVec.push_back( aLanguage);
|
||||
}
|
||||
else if (bIncludeFullBcp47)
|
||||
aVec.push_back( aLanguage);
|
||||
|
Reference in New Issue
Block a user