@@ -, +, @@ untranslatable --- cataloguing/value_builder/dateaccessioned.pl | 2 +- cataloguing/value_builder/unimarc_leader.pl | 2 +- koha-tmpl/intranet-tmpl/js/Gettext.js | 8 ++++---- koha-tmpl/intranet-tmpl/prog/js/authtype.js | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) --- a/cataloguing/value_builder/dateaccessioned.pl +++ a/cataloguing/value_builder/dateaccessioned.pl @@ -50,7 +50,7 @@ function Click$function_name(event) { function set_to_today( id, force ) { /* The force parameter is used in Click but not in Focus ! */ - if (! id) { alert(_("Bad id ") + id + _(" sent to set_to_today()")); return 0; } + if (! id) { alert(__("Bad id ") + id + __(" sent to set_to_today()")); return 0; } if (\$("#" + id).val() == '' || force ) { \$("#" + id).val("$date"); } --- a/cataloguing/value_builder/unimarc_leader.pl +++ a/cataloguing/value_builder/unimarc_leader.pl @@ -36,7 +36,7 @@ sub plugin_javascript { function Blur$function_name(subfield_managed) { var leader_length = document.getElementById(\"$field_number\").value.length; if (leader_length != 24 && leader_length !=0) { - alert(_('leader has an incorrect size: ' + leader_length + ' instead of 24 chars')); + alert(__('leader has an incorrect size: ' + leader_length + ' instead of 24 chars')); } return 1; } --- a/koha-tmpl/intranet-tmpl/js/Gettext.js +++ a/koha-tmpl/intranet-tmpl/js/Gettext.js @@ -35,7 +35,7 @@ Javascript Gettext - Javascript implemenation of GNU Gettext API. var gt = new Gettext(params); // create a shortcut if you'd like function _ (msgid) { return gt.gettext(msgid); } - alert(_("some string")); + alert(__("some string")); // or use fully named method alert(gt.gettext("some string")); // change to use a different "domain" @@ -71,7 +71,7 @@ Javascript Gettext - Javascript implemenation of GNU Gettext API. return this.gt.gettext(msgid); }; MyNamespace.MyClass.prototype.something = function () { - var myString = this._("this will get translated"); + var myString = this.__("this will get translated"); }; // ////////////////////////////////////////////////////////// @@ -81,7 +81,7 @@ Javascript Gettext - Javascript implemenation of GNU Gettext API. function _ (msgid) { return myGettext.gettext(msgid); } - alert( _("text") ); + alert( __("text") ); // ////////////////////////////////////////////////////////// // Data structure of the json data @@ -1210,7 +1210,7 @@ It's still recommended to use the statically defined