Bugzilla – Attachment 96866 Details for
Bug 24358
"Bibliographic record does not exist!" is not translatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24358: (bug 21232) Make the alert string translatable
Bug-24358-bug-21232-Make-the-alert-string-translat.patch (text/plain), 2.58 KB, created by
Jonathan Druart
on 2020-01-06 22:12:33 UTC
(
hide
)
Description:
Bug 24358: (bug 21232) Make the alert string translatable
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-01-06 22:12:33 UTC
Size:
2.58 KB
patch
obsolete
>From a462bac9d7e63423e02e14de189a9d1bdf036ddf Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 6 Jan 2020 23:08:55 +0100 >Subject: [PATCH] Bug 24358: (bug 21232) Make the alert string translatable > >"Bibliographic record does not exist!" was not translatable as it was >defined in the .js file > >Test plan: >Repeat test plan from bug 21232 > >Bonus point: update and install a localized version and confirm that the >message is translatable >--- > koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt | 1 + > koha-tmpl/intranet-tmpl/prog/js/subscription-add.js | 4 ++-- > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt >index c5dd38639c..c2b3af0a59 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt >@@ -534,6 +534,7 @@ fieldset.rows table { clear: none; margin: 0; } > [%- END -%] > var MSG_LINK_TO_VENDOR = _("If you wish to claim late or missing issues you must link this subscription to a vendor. Click OK to ignore or Cancel to return and enter a vendor"); > var MSG_LINK_BIBLIO = _("You must choose or create a bibliographic record"); >+ var MSG_BIBLIO_NOT_EXIST = _("Bibliographic record does not exist!"); > var MSG_REQUIRED_SUB_LENGTH = _("You must choose a subscription length or an end date."); > var MSG_TEST_PREDICTION = _("Please click on 'Test prediction pattern' before saving subscription."); > var MSG_REQUIRED_PUB_DATE = _("You must choose a first publication date"); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js b/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js >index 8f14fba505..06fae0fdde 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js >@@ -1,4 +1,4 @@ >-/* global _ irregularity more_than_one_serial subscriptionid tags interface theme mana_enabled MSG_FREQUENCY_LENGTH_ERROR */ >+/* global _ irregularity more_than_one_serial subscriptionid tags interface theme mana_enabled MSG_FREQUENCY_LENGTH_ERROR MSG_BIBLIO_NOT_EXIST */ > > var globalnumpatterndata; > var globalfreqdata; >@@ -61,7 +61,7 @@ function Check_page1() { > > var bib_exists = $("input[name='title']").val().length; > >- if (!bib_exists) alert(_("Bibliographic record does not exist!")); >+ if (!bib_exists) alert(MSG_BIBLIO_NOT_EXIST); > return bib_exists; > } > >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24358
:
96866
|
96868
|
97185