diff options
author | Eike Rathke <erack@redhat.com> | 2016-09-13 12:46:21 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-09-13 12:54:41 +0200 |
commit | f882555332fffbd3ea82c3a25a05ebebe3884415 (patch) | |
tree | 16d2f0705d0ef88f448ebf0e52d85f35125a4b7b /xmloff | |
parent | c22f9f0e00f26015f8019193c0db2fbb895b2cdc (diff) |
switch to using LocaleDataWrapper::doesSecondaryCalendarUseEC()
Change-Id: I6621e82249feeed3d88ee463447d08c4f812259c
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/xmlnumfi.cxx | 5 |
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 >( |