Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Bad user experience when entering dates in Thai locale | ||
---|---|---|---|
Product: | Internationalization | Reporter: | jjc |
Component: | code | Assignee: | AOO issues mailing list <issues> |
Status: | CONFIRMED --- | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | falko.tesch, hin.stone, issues, markpeak, ooo |
Version: | 680m130 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Latest Confirmation in: | --- |
Developer Difficulty: | --- | ||
Issue Depends on: | 55938 | ||
Issue Blocks: | 41707 |
Description
jjc
2005-09-19 01:16:56 UTC
Hi James, This is because the th_TH locale data applied with issue 43766 defined Gregorian to be the default calendar. If you changed <Calendar unoid="gregorian" default="true"> ... <Calendar unoid="buddhist" default="false"> to <Calendar unoid="gregorian" default="false"> ... <Calendar unoid="buddhist" default="true"> all date input would be evaluated according to the Buddhist calendar instead. To display Gregorian dates the date format codes would need a leading [~gregorian] calendar switch though. The Tools.Options.OOo.General two digits year could then be set to something around 2500. As a default Buddhist calendar is probably not a thoroughly tested scenario, especially not in applications other than Calc, I suggest to do some testing before finally changing this. I therefore reassign this issue to you to provide adapted and tested locale data, please reassign within the Thai team. Thanks Eike Reassigning, see last comment. Please provide changed tested locale data and reassign to me when ready. Hi Eike, I change th_TH locale data follow in your advice. Now I can enter calendar in Buddhist era but I have a problem with number of digit of year section. If I set locale to THAI and set format of cell to 'DD/MM/YYYY'. I enter date in '15/5/48', the output is '15/05/1948' so it wrong. In the others hand, I enter date in '15/5/2548', The output is '15/05/2548' so it right. If I enter 2 digit in Buddhist era, the OOo will recognize year section to 4 digit by try to insert number '19' or '20' at begin of year section. In Buddhist era, OOo should be insert number '25' at begin of year section. Regard, Hin There's an option you can set under Tools|Options under the OpenOffice.org/General category which says how two digit years should be interpreted. I guess we would need to configure the Thai locale to automatically set that appropriately. Not sure how we do that. We need to solve the two-digit year problem before we can make the default calendar be Buddhist. See issue 55938. Reset assignee on issues not touched by assignee in more than 2000 days. |