Ticket #1722 (closed defect: invalid)

Opened 8 months ago

Last modified 1 month ago

admi18n javascript is broken

Reported by: cvogler Assigned to: anonymous
Priority: normal Milestone: 1.1 beta 2
Component: TurboGears Version: 1.0.4.3
Severity: major Keywords: i18n, kid, javascript, needs feedback
Cc:

Description

The Javascript on the admi18n pages (language_management in particular) is broken. Clicking on "Compile selected locales/Merge strings" has no effect; neither does clicking on any of the message id/message string boxes on the translation page, for this matter.

I tracked down the problem to Javascript syntax errors in the for loops of the type:

for(var i=0;i < elements.length;i++)

This looks like the old problem of Kid escaping "<" inside CDATA elements. So, it seems that the easiest way to fix this would be to move the Javascript code out of the template and into an external file.

What I don't understand, though, is how this could ever have worked. It did when I used TurboGears 1.0.1.

Change History

06/06/08 06:14:58 changed by faide

  • priority changed from normal to high.

08/24/08 10:26:59 changed by faide

  • milestone changed from 1.5 to 1.1.

08/28/08 15:44:23 changed by Chris Arndt

  • milestone changed from 1.1 to 1.1 beta 1.

08/30/08 07:43:10 changed by Chris Arndt

  • keywords changed from i18n kid javascript to i18n, kid, javascript, needs feedback.
  • priority changed from high to normal.

I can not reproduce this with the current (r5308) HEAD of the 1.0 or 1.1 branch. Can somebody confirm that this is still an issue? If not, I'll close this bug as invalid before the "1.1 beta" release.

09/09/08 18:40:26 changed by Chris Arndt

  • status changed from new to closed.
  • resolution set to invalid.

Beta 1 is out. Nobody reported this as still broken. If you can reproduce this, please re-open ticket