From c5f4e4227fdf1ee04f73ce8341dad5bc5b34965e Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Thu, 3 Apr 2014 10:10:33 -0300 Subject: [PATCH] [SIGNED-OFF] Bug 11227 - Staff po files contain some Javascript Content-Type: text/plain; charset="utf-8" This patch rewrites authorities_js.inc so translate script process it correctly. To that I add at the file To test: 1) Update po files for your preffered language 2) Check occurrence of mergeAuth on staff PO file or try egrep -n "Merging with authority: |Cancel merge" strings appear in a JS func 3) Apply the patch 4) Update translations again, chech again, old strings now begin with #~ (obsoleted) and there are new entries for the messages 5) Check functionality provided by script Signed-off-by: Owen Leonard --- .../prog/en/includes/authorities_js.inc | 4 ++++ .../en/modules/authorities/authorities-home.tt | 2 +- .../en/modules/authorities/searchresultlist.tt | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc index d1964d1..4981a39 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc @@ -1,3 +1,5 @@ + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt index 558746e..7290744 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities-home.tt @@ -19,9 +19,9 @@ function searchauthority() { function confirm_deletion() { // not really implemented, but required by phantom delAuthButton code in authorities-toolbar.inc return true; } -[% INCLUDE 'authorities_js.inc' %] //]]> +[% INCLUDE 'authorities_js.inc' %] [% INCLUDE 'header.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt index 49ba49f..ebe5491 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt @@ -36,9 +36,9 @@ function searchauthority() { window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains"; } -[% INCLUDE 'authorities_js.inc' %] //]]> +[% INCLUDE 'authorities_js.inc' %] [% INCLUDE 'header.inc' %] -- 1.7.9.5