summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmloff/source/style/xmlnumfi.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx
index e2b0f8d4888d..ec363c3cb008 100644
--- a/xmloff/source/style/xmlnumfi.cxx
+++ b/xmloff/source/style/xmlnumfi.cxx
@@ -1205,10 +1205,7 @@ void SvXMLNumFmtElementContext::EndElement()
//! I18N doesn't provide SYSTEM or extended date information yet
// Y after G (era) is replaced by E, also if we're switching to the
// other second known calendar for a locale.
- /* TODO: here only for zh-TW, handle for other locales as well. */
- if ( rParent.HasEra() ||
- (sCalendar.equalsIgnoreAsciiCase("ROC") &&
- rParent.GetLocaleData().getLoadedLanguageTag().getBcp47() == "zh-TW"))
+ if ( rParent.HasEra() || rParent.GetLocaleData().doesSecondaryCalendarUseEC( sCalendar))
{
rParent.AddNfKeyword(
sal::static_int_cast< sal_uInt16 >(