http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8942

Owen Leonard <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #12939|0                           |1
        is obsolete|                            |

--- Comment #13 from Owen Leonard <[email protected]> ---
Created attachment 13151
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=13151&action=edit
[SIGNED-OFF] Bug 8942 Fix translation of JS strings containing simple/double
quote

With this patch, translated strings containing simple or double quotes
are escaped. This prevent breaking JavaScript strings.

For example:

  Today, translated in French is Aujourd'hui. And so this JS line:

    var m = _('Today');

  become in French:

    var m = _('Aujourd'hui');

  It breaks the whole JS code. With this patch:

    var m = _('Ajourd\'hui');

Same issue with ", and JS strings like "foo".

Signed-off-by: Owen Leonard <[email protected]>

Confirmed that the example above is handled correctly after
applying the patch and generating a fresh set of French
templates.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to