Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Owen Leonard 2c98f4849d Bug 26230: Move translatable strings out of item_search_fields.tt and into item_search_fields.js
This patch removes the definition of translatable strings out of
templates and into the corresponding JavaScript file, using the new JS
i81n function.

To test:

- Apply the patch, go to Administration -> Item search fields.
- If necessary, add a new search field.
- From the table of search fields, click the "Delete" button for one of
  the fields.
- You should get a confirmation: "Are you sure you want to delete this
  field?"

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 the string pulled from
  koha-tmpl/intranet-tmpl/prog/js/item_search_fields.js for translation:

  #: koha-tmpl/intranet-tmpl/prog/js/item_search_fields.js:18
  msgid "Are you sure you want to delete this field?"
  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: Alexis Ripetti <alexis.ripetti@inLibro.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-29 14:28:18 +02:00
..
acqui Bug 26339: Move translatable strings out of addorderiso2709.tt into addorderiso2709.js 2020-09-29 14:28:18 +02:00
admin Bug 26230: Move translatable strings out of item_search_fields.tt and into item_search_fields.js 2020-09-29 14:28:18 +02:00
authorities Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
basket Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
batch
catalogue Bug 26323: Retrieve the correct values for LOST, DAMAGED, LOC and CCODE 2020-09-28 16:09:10 +02:00
cataloguing Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
circ Bug 23485: Show barcode in holds to pull 2020-09-28 16:09:10 +02:00
clubs Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
common Bug 24964: Restore pagination for patrons for owner/users of funds 2020-04-06 10:57:10 +01:00
course_reserves Bug 26323: (follow-up) Add new cases introduced 2020-09-28 16:09:10 +02:00
errors
ill Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
installer Bug 24973: Load custom localization file 2020-08-24 12:10:53 +02:00
labels Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
mana
members Bug 26541: Remove percent sign from discount button 2020-09-28 15:06:46 +02:00
offline_circ Bug 26212: Remove the use of jquery.checkboxes plugin from pending offline circulations 2020-08-18 15:45:49 +02:00
onboarding Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
patron_lists Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
patroncards Bug 25765: Replace LoginBranchname and LoginBranchcode with use of Branches template plugin 2020-07-23 11:17:27 +02:00
plugins Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
pos Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
reports Bug 26323: Retrieve the correct values for LOST, DAMAGED, LOC and CCODE 2020-09-28 16:09:10 +02:00
reserve Bug 26323: Retrieve the correct values for LOST, DAMAGED, LOC and CCODE 2020-09-28 16:09:10 +02:00
reviews Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
rotating_collections Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
serials Bug 26323: Retrieve the correct values for LOST, DAMAGED, LOC and CCODE 2020-09-28 16:09:10 +02:00
services
suggestion Bug 11176: Add active switch on budgets select in suggestions 2020-09-28 16:09:11 +02:00
tags Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
test
tools Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
virtualshelves Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
about.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
auth.tt Bug 24201: (QA follow-up) Only display desks picker if enabled 2020-08-07 16:54:40 +02:00
intranet-main.tt Bug 26015: Replace 2 missing occurrences 2020-08-31 16:10:25 +02:00