(
Locale locale,
String calendarType
)
| 567 | } |
| 568 | |
| 569 | private static Map<String, String> loadTextForms( |
| 570 | Locale locale, |
| 571 | String calendarType |
| 572 | ) { |
| 573 | |
| 574 | Map<String, String> map = CalendarText.getInstance(calendarType, locale).getTextForms(); |
| 575 | |
| 576 | if ( |
| 577 | !calendarType.equals(CalendarText.ISO_CALENDAR_TYPE) |
| 578 | && !"true".equals(map.get("hasDayPeriods")) |
| 579 | ) { |
| 580 | map = CalendarText.getIsoInstance(locale).getTextForms(); // fallback |
| 581 | } |
| 582 | |
| 583 | return map; |
| 584 | |
| 585 | } |
| 586 | |
| 587 | private static boolean accept(String key) { |
| 588 |
no test coverage detected