Issue 55938

Summary: TwoDigitYear config prop should be per-calendar
Product: Internationalization Reporter: jjc
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: hin.stone, issues, ooo, samphan
Version: OOO 2.0 Beta2   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: FEATURE Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 41707, 54774    

Description jjc 2005-10-13 18:26:52 UTC
For the Thai locale, it would be desirable to change the default calendar to be
the Buddhist calendar.  But this creates a problem with interpretation of
two-digit years.  If a user does not go and manually change the option in the
Tools dialog, then a year of 48 (which should be interprted 2548 BE) will be
interpreted as 1948 BE (ie 1405 AD, some time in the Middle Ages).  I guess the
language pack could change the option, but even this wouldn't be write: there's
no guarantee that somebody using the Thai locale will have installed the Thai
language pack or vice-versa.

It seems to me that the right solution is that the TwoDigitYear configuration
property should not be a single year, but should rather be a list of (calendar,
year) pairs: eg (Gregorian, 1930), (Buddhist, 2500) etc.

This current UI could be left as is: it would show the TwoDigitYear for the
default calendar of the current locale.
Comment 1 ooo 2006-11-30 15:10:03 UTC
Sorry, this got stuck in my box. Not just a small enhancement, reassigning to
requirements.