https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42577

Frédéric Demians <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Frédéric Demians <[email protected]> ---
Another reason to replace Gettext.js rather than just move it: it builds
the plural function of the Plural-Forms header with "new Function", which
the Content-Security-Policy blocks when it doesn't allow 'unsafe-eval'.
With the CSP enabled, every translated OPAC is broken: Koha.i18n is never
defined and every __() call throws (bug 43843).

I'd suggest replacing it with Tannin:

  https://github.com/aduth/tannin

What the change would need:

- Add tannin.min.js to the lib folders of the OPAC and the staff
  interface.
- Rewrite i18n.js on top of Tannin.
- Change the locale_data.js format: Tannin expects a format different
  from Gettext.

-- 
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]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to