Browse Source

Bug 13400: Untranslatable "Are you sure you want to delete this authority?"

This patch makes the string "Are you sure you want to delete this
authority?" translatable using the function _(...)

To test, apply patch and check that deleting authorities still works.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Tested successfully with the following procedure:

1. Applied the patch.
2. Ran perl translate update de-DE
3. Edited de-DE-i-staff-t-prog-v-3006000.po to add a "translation"
4. Removed "#, fuzzy" marker from po entry.
5. perl translate -v install de-DE
6. Testing deleting an authority from the authority search results page
   and from the detail page. My translated string appeared correctly.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
3.20.x
Marc Véron 10 years ago
committed by Tomas Cohen Arazi
parent
commit
8523f208f3
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt
  2. 3
      koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt

2
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt

@ -32,7 +32,7 @@
});
function confirm_deletion() {
var is_confirmed = confirm('Are you sure you want to delete this authority?');
var is_confirmed = confirm(_('Are you sure you want to delete this authority?'));
if (is_confirmed) {
window.location="authorities-home.pl?op=delete&authid=[% authid %]";
}

3
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt

@ -5,8 +5,7 @@
<script type="text/javascript" >
//<![CDATA[
function confirm_deletion(id) {
var is_confirmed = confirm('Are you sure you want to delete this authority?');
var is_confirmed = confirm(_('Are you sure you want to delete this authority?'));
if (is_confirmed) {
window.location="authorities-home.pl?op=delete"
+ "&authid=" + id

Loading…
Cancel
Save