Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Owen Leonard 45558c35e3 Bug 26291: Move translatable strings out of z3950_search.inc into z3950_search.js
This patch moves translatable strings out of z3950_search.inc into
z3950_search.js, wrapped in the double-underscore function for
translation.

To test, apply the patch and go to Cataloging.

 - Click "New from Z39.50/SRU"
 - In the search form, uncheck all search targets and submit the form.
   You should get an error: "Please choose at least one external target"
 - Peform a search which will return multiple pages of results.
 - Test  that you can enter a number in the "Go to page" form to
   navigate to a specific page.
 - Enter a non-number in the field and submit. You should get an error,
   "The page entered is not a number."
 - Enter a number in the field which is greater than the number of pages
   of results. Submitting the form should trigger an error, "The page
   should be a number between 1 and 10."

 - Perform the same tests from the other Z39.50 search results
   interfaces:
   - Acquisitions -> Add to basket -> From an external source.
   - Authorities -> New authority -> New from Z39.50/SRU.

TESTING TRANSLATABILITY

- Update a translation, e.g. fr-FR:

  > cd misc/translator
  > perl translate update fr-FR

- Open the corresponding .po file for JavaScript strings, e.g.
  misc/translator/po/fr-FR-messages-js.po
- Locate strings pulled from
  koha-tmpl/intranet-tmpl/prog/js/z3950_search.js for translation,
  e.g.:

  msgid "The page entered is not a number."
  msgstr ""

- Edit the "msgstr" string however you want (it's just for testing).
- Install the updated translation:

  > perl translate install fr-FR

- Switch to your newly translated language in the staff client
  and repeat the test plan above. The translated strings should
  appear.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-29 14:28:19 +02:00
..
csv Bug 24161: Keep tracks of late orders claims 2020-05-04 09:44:44 +01:00
tables Bug 18480: Get rid of unwanted / distracting link in patron search for fund owner 2018-10-15 14:19:08 +00:00
acqui-home.tt Bug 25033: Display both local and all pending suggestions counts if the numbers differ 2020-08-25 11:31:40 +02:00
addorder.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
addorderiso2709.tt Bug 26339: Move translatable strings out of addorderiso2709.tt into addorderiso2709.js 2020-09-29 14:28:18 +02:00
ajax.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
basket.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
basketgroup.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
basketheader.tt Bug 23863: (QA follow-up) Add missing html filter 2019-10-24 10:56:17 +01:00
booksellers.tt Bug 24648: Contextualization of past tense 'Created' 2020-02-19 15:57:21 +00:00
cancelorder.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
duplicate_orders.tt Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
edi_ean.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
edifactmsgs.tt Bug 23682: Add ability to manually import EDI invoices as an alternative to automatic importing on download 2020-09-03 15:00:48 +02:00
edimsg.tt Bug 20667: Update two-column templates with Bootstrap grid: Acquisitions part 1 2018-07-06 13:19:35 +00:00
histsearch.tt Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
invoice-files.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
invoice.tt Bug 24157: Handle the case where logged in user does not have edit_invoices 2020-07-30 17:30:23 +02:00
invoices.tt Bug 24157: Handle the case where logged in user does not have edit_invoices 2020-07-30 17:30:23 +02:00
lateorders.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
modordernotes.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
neworderempty.tt Bug 25317: Move translatable strings out of additem.js.inc 2020-09-29 14:28:18 +02:00
neworderempty_duplicate.tt Bug 23958: Use Font Awesome icon to replace "new window" icon image 2019-11-27 09:25:16 +00:00
newordersubscription.tt Bug 11500: Use dateformat syspref and datepicker on additems.pl (and other item cataloguing pages) 2019-12-23 12:01:45 +00:00
newordersuggestion.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
ordered.tt Bug 23983: Remove comment 2019-11-13 13:15:49 +00:00
orderreceive.tt Bug 25317: Move translatable strings out of additem.js.inc 2020-09-29 14:28:18 +02:00
parcel.tt Bug 17458: Remove use of datereceived from order receive page 2020-09-28 16:09:10 +02:00
parcels.tt Bug 22975: Remove type attribute from script tags: Acquisitions 2019-05-30 10:25:53 +00:00
showorder.tt Bug 24161: Keep tracks of late orders claims 2020-05-04 09:44:44 +01:00
spent.tt Bug 23983: Remove comment 2019-11-13 13:15:49 +00:00
supplier.tt Bug 24877: Add link from vendor to linked subscriptions 2020-03-24 11:28:32 +00:00
transferorder.tt Bug 24648: Contextualization of past tense 'Created' 2020-02-19 15:57:21 +00:00
uncertainprice.tt Bug 26217: Move translatable strings out of templates into acq.js 2020-09-29 14:28:18 +02:00
z3950_search.tt Bug 26291: Move translatable strings out of z3950_search.inc into z3950_search.js 2020-09-29 14:28:19 +02:00