From a25846baf1137e7086292d8d8824a94f6a825166 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 4 Sep 2013 21:04:30 +0200 Subject: for zh-HK or zh-MO also list zh-TW as fallback Change-Id: If86d7df0c9ed84f704c0f2421820f3d9c060f2fd --- i18nlangtag/source/languagetag/languagetag.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx index 63da4fc0b926..f2f2becb46cd 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx @@ -1227,7 +1227,12 @@ LanguageTag & LanguageTag::makeFallback() if (isIsoLocale()) { if (!aCountry.isEmpty()) + { aVec.push_back( aLanguage + "-" + aCountry); + // For zh-HK or zh-MO also list zh-TW + if (aLanguage == "zh" && (aCountry == "HK" || aCountry == "MO")) + aVec.push_back( aLanguage + "-TW"); + } aVec.push_back( aLanguage); return aVec; } -- cgit