Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1037 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

calendar widgets Chinese translation file can't work.

Reported by: nEO Owned by: godoy
Priority: normal Milestone:
Component: TG Widgets Version: 0.9a6
Severity: major Keywords: calendar zh tw cn
Cc: gentoo.cn@…

Description

$tg/widgets/static/calendar/lang/calendar-zh.js

contain a bug, the original translator missing one line "Calendar._FD = 0;"

the chinese calendar will display all days as undefined.

I have fixed this bug, and convert the file to UTF-8 encoding.

Because the jscalendar suggest use UTF-8 as default encoding.

the attachment is the fixed version. place it to

$tg/widgets/static/calendar/lang/calendar-zh.js

and

$tg/widgets/static/calendar/lang/calendar-zh-cn.js

and

$tg/widgets/static/calendar/lang/calendar-zh-cn-utf8.js

and

$tg/widgets/static/calendar/lang/calendar-zh-cn-utf-8.js

Attachments

calendar-zh.js Download (3.6 KB) - added by nEO 13 years ago.
The fixed version of calendar-zh.js
calendar-zh-cn.js Download (3.6 KB) - added by nEO 13 years ago.
calendar-zh-cn.js
calendar-zh-tw.js Download (3.6 KB) - added by nEO 13 years ago.
calendar-zh-tw.js

Change History

Changed 13 years ago by nEO

The fixed version of calendar-zh.js

comment:1 Changed 13 years ago by godoy

  • Status changed from new to closed
  • Resolution set to fixed

Commited it at [1662] in 1.0 branch and [1663] in the trunk.

comment:2 Changed 13 years ago by nEO

  • Status changed from closed to reopened
  • Resolution fixed deleted

hi, godoy

Would you pls. copy the calendar-zh.js to calendar-zh-cn.js too?

Because firefox use zh and IE use zh-cn.

And even zh-cn-utf8, zh-cn-utf-8 for more compatibility.

comment:3 Changed 13 years ago by godoy

Sure. Can you please check all the other Chinese files? The ones with Big5 are Chinese as well, aren't they? Are they correct?

I've also asked you on the ML for confirmation on the filename 'cause there's no calendar-zh-cn.js but there's a cn_utf8.js there...

Please, take a look at it, tell me what is better for Chinese and attach files as needed here. :-) I'll do the changes based on your (and other people on the ML and here) inputs.

Be seeing you.

comment:4 Changed 13 years ago by godoy

Forgot to ask here for you to take a look at the Big5 files as well...

Changed 13 years ago by nEO

calendar-zh-cn.js

Changed 13 years ago by nEO

calendar-zh-tw.js

comment:5 Changed 13 years ago by nEO

the Big5 file should name as calendar-zh-tw.js

I have attached zh-cn and zh-tw files.

The cn_utf8.js is no use, we can remove it.

comment:6 Changed 13 years ago by godoy

  • Keywords tw cn added

Please, test the changes after [1672] (this was changed in [1671] for 1.0 branch and [1672] in the trunk) and see if I got things correctly for the three languages, including your requested UTF-8 variations in the name of the file.

I've left the "Big5" versions there and added the "zh-tw" one from your email. Should I remove Big5? Isn't this encoding used anymore?

If all changes are fine and I should keep Big5, please close this bug. Otherwise tell me to remove Big5 and your wishes will come true :-)

(And forget that I named Taiwan as Thailand in my comment... :-P Sorry... Those stupid Brazilians that do things while waking up and have no clue on physics, I mean, geography ;-))

comment:7 Changed 13 years ago by godoy

  • Owner changed from anonymous to godoy
  • Status changed from reopened to new

comment:8 Changed 13 years ago by nEO

  • Status changed from new to closed
  • Resolution set to fixed

Tested with r1672.

It's working fine.

close this bug.

Note: See TracTickets for help on using tickets.