ICU-10249 Implement new Islamic calendar variants tbla, rgsa (fix for broken test)

X-SVN-Rev: 34178
This commit is contained in:
Scott Russell 2013-09-04 02:44:27 +00:00
parent 6fdda37087
commit d5f385d4e5

View File

@ -868,8 +868,10 @@ public class IslamicCalendar extends Calendar {
setType(CalculationType.ISLAMIC_UMALQURA);
else if("islamic-tbla".equals(localeCalType))
setType(CalculationType.ISLAMIC_TBLA);
else
setType(CalculationType.ISLAMIC); // needs to be last so it's always the default
else if(localeCalType.startsWith("islamic"))
setType(CalculationType.ISLAMIC); // needs to be last so it's always the default if it's islamic-something-unhandled
else
setType(CalculationType.ISLAMIC_CIVIL); // default for any non-islamic calendar locale
}