Issue 55938 - TwoDigitYear config prop should be per-calendar
Summary: TwoDigitYear config prop should be per-calendar
Alias: None
Product: Internationalization
Classification: Code
Component: code (show other issues)
Version: OOO 2.0 Beta2
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Blocks: 41707 54774
  Show dependency tree
Reported: 2005-10-13 18:26 UTC by jjc
Modified: 2013-02-07 22:41 UTC (History)
4 users (show)

See Also:
Issue Type: FEATURE
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
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