In quotes.tt line 14 we have : var sEmptyTable = _("No quotes available. Please use the \"Add quote\" button to add a quote."); The use of \" inside double quotes breaks the js in the translated pages. i.e : in french pages in the table we have "Chargement des données..." and can't go ahead.
Created attachment 36766 [details] [review] proposed patch Bug 13768: Correction of double quotes escaped into double quotes Without the patch the translated pages for quotes.tt may have the problematic line broken. So the js is broken too. The line with bad usage of double quotes escaped : var sEmptyTable = _("No quotes available. Please use the \"Add quote\" button to add a quote.");
Test plan : without patch : 1/ in English pages go to tools/Edit quotes for QOTD feature 2/ create some quotes if there is no 3/ you must have at least 2 languages translated 4/ try with a language translated the page quotes.pl 5/ you must have the translated page broken (message charging... in the table, no use possible in the page) if no try another language With the patch : same steps 1-5 5/ the translated pages must be ok thx for testing
Created attachment 36770 [details] [review] [SIGNED-OFF] Bug 13768: Correction of double quotes escaped into double quotes Without the patch the translated pages for quotes.tt may have the problematic line broken. So the js is broken too. The line with bad usage of double quotes escaped : var sEmptyTable = _("No quotes available. Please use the \"Add quote\" button to add a quote."); Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> diff on staff PO file -msgid "" -"No quotes available. Please use the \\\"Add quote\\\" button to add a quote." +#, fuzzy +msgid "No quotes available. Please use the 'Add quote' button to add a quote." No koha-qa errors
Created attachment 36905 [details] [review] [PASSED QA] Bug 13768: Correction of double quotes escaped into double quotes Without the patch the translated pages for quotes.tt may have the problematic line broken. So the js is broken too. The line with bad usage of double quotes escaped : var sEmptyTable = _("No quotes available. Please use the \"Add quote\" button to add a quote."); Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> diff on staff PO file -msgid "" -"No quotes available. Please use the \\\"Add quote\\\" button to add a quote." +#, fuzzy +msgid "No quotes available. Please use the 'Add quote' button to add a quote." No koha-qa errors Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Patch pushed to master. Thanks Christophe!
Pushed to 3.18.x will be in 3.18.6