show Korean Dangi Calendar format tdf#125446

show Korean Dangi Calendar format
Ref1: MSDN - Calendar IDs
5 : CAL_KOREA
 https://docs.microsoft.com/en-us/windows/desktop/Intl/calendar-identifiers

Ref2: stackoverflow
https://stackoverflow.com/questions/54134729/what-does-the-130000-in-excel-locale-code-130000-mean

Change-Id: Ia1f367bfd5c13f29054064d89be847bbf249c0d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87689
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
This commit is contained in:
DaeHyun Sung 2020-01-29 23:39:25 +09:00 committed by Eike Rathke
parent 93670d6cb7
commit 7ffd38fc54

View File

@ -503,7 +503,13 @@ OUString SvNumberformat::ImpObtainCalendarAndNumerals( OUStringBuffer& rString,
nLang = maLocale.meLanguage = LANGUAGE_JAPANESE;
}
break;
case 0x05 : // unknown calendar
case 0x05 : // Korean Dangi calendar
sCalendar = "[~dangi]";
// Only Korean language support dangi calendar
if ( nLocaleLang != LANGUAGE_KOREAN )
{
nLang = maLocale.meLanguage = LANGUAGE_KOREAN;
}
break;
case 0x06 : // Hijri calendar
case 0x17 : // same?