Ticket #1668 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

The js calendar languages when using Brazilian Portugese

Reported by: lregebro Assigned to: lregebro
Priority: P2 Milestone: CPS 3.4.2
Component: CalZope Version: 3.4.1
Severity: normal Keywords:
Cc:

Description

When the default browser language selected is pt-br, the jscalendar should use the calendar-br.js, but it uses calendar-pt.js. When the default browser langauge is english, and the Localizer selected language is pt_BR, it uses calendar-en.js. Also, calendar-pt.js seem broken.

We need to support pt_BR, at least, and preferrably also pt.

Change History

06/06/06 11:49:29 changed by lregebro

  • status changed from new to assigned.

06/08/06 02:22:13 changed by tracguest

I know that jscalendar is a external app, but what would happen if someone speaching Breton wants to translate CPS? Which file one would use for jscalendar, calendar-br.js, calendar-XX.js?

I believe the better way to solve this is adding support in jscalendar for W3C languages codes as specified in Languages Tags and in Author Techniques for XHTML & HTML Internationalization: Specifying the language of content 1.0.

That is, for Brazilian Portuguese, we should use calendar-pt-br.js, for Canadian French, calendar-fr-ca.js and so on.

Mário Menezes (original poster of the problem in cps-users mailing list)

06/08/06 11:33:47 changed by lregebro

I agree about your suggested solution. Unfortunately, there are many other bugs in jscalendar that we have found but the author of jscalendar does not seem very inclined to fix bugs, or for that matter answer emails where I offer him my help in fixing bugs. Changing this would therefore require us to make a major incompatible branching of the jscalendar, which we want to avoid.

06/12/06 19:52:08 changed by lregebro

  • status changed from assigned to closed.
  • resolution set to fixed.

Resolved in [46420].