Set the Japanese Imperial Calendar as the default for a region
About this task
PolicyCenter provides a way to set a default calendar for a region
through the defaultCalendar attribute of the
<GWLocale> element. Additionally, for the Japanese
Imperial Calendar, you must also set enableJapaneseCalendar of the
<GWLocale> element to true. These
attributes determine whether or not to enable the Japanese calendar for this region.
Important: Guidewire
uses the International Components for Unicode (ICU) open source
library to format dates according to the Japanese Imperial calendar.
The ICU library specifies formats according to the historical Imperial
calendar. Contemporary changes to the calendar, such as the start of
a new era, require an updated ICU library. If such an event occurs, contact
Guidewire support for details on how to upgrade to a newer version of
the ICU library.
Procedure
- In the Guidewire Studio Project window, navigate to and double click localization_ja_JP.xml to open it in the editor.
-
Add the
defaultCalendarattribute to the<GWLocale>element, with the value set toJapaneseImperial. -
Add the
enableJapaneseCalendarattribute to the<GWLocale>element, with the value set totrue.<GWLocale code="ja_JP" name="Japanese" typecode="ja_JP" defaultCalendar="JapaneseImperial" enableJapaneseCalendar="true">
Results
After setting these calendar attributes, if the user chooses this region in PolicyCenter, all dates are shown as Japanese Imperial Calendar dates.
What to do next
See also
