MozillaZine

Bug of Sunbird 0.2 in Chinese lanugage OS

For discussing the Mozilla Calendar, Sunbird and Lightning projects.
foxchan
 
Posts: 2
Joined: February 20th, 2005, 5:57 am

Post Posted February 20th, 2005, 6:19 am

I'm using Sunbird 0.2 in a chinese Windows XP Pro and i found:
<img src="http://img.photobucket.com/albums/v293/foxchan/sunbird.jpg">
1.when you add "New task" or "New event",the time always shows "a.m." & "p.m." in chinese while all the other stuffs are in english
That's doesn't really bother me coz i can read both,but it leads to the next problem

2.after you input a time that is after noon,once u clicked else where,it automatically switched back to a.m. in both the Start and the End
Therefore i can only add a task that starts and end in the morning

i don't know if this is dealed to my language in OS or not.I don't have an English OS therefore i can't prove it.But i don't see ya all having such a problem so i guess the answer is yes

Rod Whiteley

User avatar
 
Posts: 11480
Joined: December 6th, 2004, 3:41 am
Location: UK

Post Posted February 20th, 2005, 8:30 am

1. Yes, the AM and PM strings are from the operating system. So they are in the operating system's language, not in Sunbird's language.

2. If you type a time in the afternoon, you must type 上午 or 下午 (AM or PM in Chinese). If you do not type either, then you get the default, which is 上午 (AM). Alternatively, you can use the time picker to choose the time.

You can change the strings in the operating system to AM and PM. Then you will see AM and PM in all your applications, and you can type AM and PM to specify times.

It works the same way in English. If your operating system uses AM and PM, then you cannot simply type 2, meaning 2 PM. You get 2 AM instead. It would be better for Sunbird to default to a time in your normal working day, but someone would have to code it...
Rod

foxchan
 
Posts: 2
Joined: February 20th, 2005, 5:57 am

Post Posted February 20th, 2005, 1:49 pm

Umm

Thank you for the first answer but i think you got me wrong for the second one

No matter i type in PM or choose a time after 12:00 from the time picker,it just switched back to am once i click elsewhere

ok,let's make it start at 20:00,that's PM 8:00
<img src="http://img.photobucket.com/albums/v293/foxchan/sunbird1.jpg">
when i clicked elsewhere
<img src="http://img.photobucket.com/albums/v293/foxchan/sunbird2.jpg">

faun
 
Posts: 190
Joined: December 4th, 2003, 11:44 am
Location: Germany

Post Posted February 21st, 2005, 1:42 am

Rod Whiteley wrote:So they are in the operating system's language, not in Sunbird's language.

Why does Sunbird sometimes use os language and sometimes application language? In day view it's "Monday" and one line below its "Montag, 21. März". So I would prefer to use the operating system's language for daynames and monthnames or switch completely to the Sunbird language instead of mixing it...

Rod Whiteley

User avatar
 
Posts: 11480
Joined: December 6th, 2004, 3:41 am
Location: UK

Post Posted February 21st, 2005, 4:05 am

foxchan wrote:...i think you got me wrong for the second one...
OK. On your system you have a bug that I cannot reproduce. You might want to report it in Bugzilla.

later...

I found out how to reproduce it. The problem occurs when AM/PM is to the left of the time, even in English. The bug is already reported. It is fixed for several languages, including Chinese, so it should be OK in the next Sunbird build.
Last edited by Rod Whiteley on February 21st, 2005, 7:19 am, edited 1 time in total.
Rod

Rod Whiteley

User avatar
 
Posts: 11480
Joined: December 6th, 2004, 3:41 am
Location: UK

Post Posted February 21st, 2005, 4:15 am

faun wrote:Why does Sunbird sometimes use os language and sometimes application language?
Lazy coding, I suppose. It is difficult to write code that gives consistent results, because JavaScript's Date object is badly designed.

To display the day name, the easiest way is to get the day number from JavaScript, then get the day name from an array of names in a stringbundle. The stringbundle comes from the application's locale, so you see "Monday".

To display the entire date, the easiest way is to get the entire date from JavaScript. JavaScript uses the operating system locale, so you see "Montag, 21. März".

You might want to report this in Bugzilla.
Rod

Return to Calendar


Who is online

Users browsing this forum: No registered users and 15 guests