Ticket #2318 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Bug with Portugese translation and Javascript

Reported by: rgrp Owned by: seanh
Priority: major Milestone: ckan-sprint-2012-04-30
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

If you switch to Portugese and try to add a resource on dataset edit it will fail. This is because there is a string translation in js_strings.html that has quotes in it. When this is inserted into the file this causes a js exception which then prevents any further js processing.

Specifically:

CKAN.Strings.youHaveUnsavedChanges = "Você tem alterações não salvas. Certifique-se de ter clicado "Salvar Alterações" abaixo antes de sair desta página.";
Uncaught SyntaxError: Unexpected identifier

To fix is simple i imagine: need to escape " correctly in js_strings.html (or translations used).

I have temporarily patched this live in order to allow the hackday here to continue.

Change History

comment:1 Changed 2 years ago by seanh

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.