Koha/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves
Jonathan Druart 75c70d42a5 Bug 14517: List shelves list is broken for translated interfaces
The translation script adds quotes ("") around translated string (Edit
for instance).
Which breaks the json structure.

Example:
"dt_action": "<a style=\"cursor:pointer\"><form action='shelves.pl'
method='get'><input class="editshelf" value="Editar" type="submit"
/></form></a>"

Test plan:
1/ On the staff interface create a private list
2/ Go to More > Lists ('Your lists' tab)
3/ Translate the templates to any language like:
  $ cd misc/translator/
  $ perl translate install es-ES
4/ Enable the translated templates on the sysprefs
5/ Switch to the translated language
6/ Go to the lists page (Mas > Listas in es-ES)
The list should be displayed correctly.

Note: There is a limitation. If a translated string contains a simple
quote ('), it will also break the json.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
2015-08-18 13:18:21 -03:00
..
tables Bug 14517: List shelves list is broken for translated interfaces 2015-08-18 13:18:21 -03:00
addbybiblionumber.tt Bug 14416: Stored XSS vulnerability - add biblio to shelf (intranet) 2015-06-22 11:00:09 -03:00
downloadshelf.tt
merge.tt
sendshelf.tt Bug 14329: Useless copy/pasta from Template::Plugin::HtmlToText 2015-06-08 09:47:06 -03:00
sendshelfform.tt
shelves.tt Bug 11325: Focus not on "Add Item" in Lists 2015-08-11 13:05:17 -03:00