---- Reported by katrin.fischer@bsz-bw.de 2010-05-14 08:20:52 ---- The files under .../koha-tmpl/intranet-tmpl/prog/[de-DE]/js and /koha-tmpl/opac-tmpl/prog/de-DE/j get not translated during translation process. An example for intranet with error messages is member.js I tried to make the error message for mandatory fields when adding a new borrower translatable. When it didn't work I looked at the other files and messages and noticed that they were not translated although formatted correctly for translation. Perhaps error messages should be handled in the template, as basket.js in opac does. ---- Additional Comments From frederic@tamil.fr 2010-05-14 08:47:02 ---- > Perhaps error messages should be handled in the template, as basket.js in opac > does. Indeed. As far as I know, there is a plan to put .js files outside template directories in order to spare disk space. But this is not the only reason. If Koha separates code from templates for Perl script, it should also do it for JavaScript. Now JS mixes program en UI. --- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:27 UTC --- This bug was previously known as _bug_ 4503 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4503 Unknown operating system Windows 2000. Setting to default OS "All". Actual time not defined. Setting to 0.0 Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one.
Lots of Javascript has moved out of the templates by now and we don't want to start copying them to the language specific directories again. Galen pointed out that something like https://code.google.com/p/jquery-i18n-properties/ could be a possible solution.
Starting work on this, patch to follow.
*** This bug has been marked as a duplicate of bug 21156 ***