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

Note: I was unable to trigger the confirmation message in the
check_form_borrowers function. I think the form is now structured in a
way that it is never triggered, thus a candidate for removal.

To test:

- Apply the patch and go to Patrons.
- Add or edit a patron.
- Select a date of birth at least one month in the past and confirm that
  the patron's age is displayed in the hint below.
- Test multiple variations to confirm that the singular and plural of
  'year' and 'month' display correctly. (e.g. 1 year 9 months, 2 years,
  etc).
- Set some patron messaging preferences for the patron.
- Change the patron category.
- You should get a confirmation: "Change messaging preferences to
  default for this category?"

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/members.js for translation, e.g.:

  msgid "%s years"
  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: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-04-12 11:40:17 +02:00
..
acqui Bug 30400: Convert invoices page tabs to Bootstrap 2022-04-12 11:40:17 +02:00
admin Bug 30417: Switch to Bootstrap tabs on the basic library transfer limit page 2022-04-12 11:40:17 +02:00
authorities Bug 30423: Convert authority merge page tabs to Bootstrap 2022-04-12 11:40:17 +02:00
basket
batch Bug 29244: Add dialog class where missing in print-notices.tt 2021-10-21 12:24:04 +02:00
catalogue Bug 20398: Added a syspref to highlight or not highlight search terms in results on the staff interface 2022-04-08 15:49:17 +02:00
cataloguing Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
circ Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
clubs Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
course_reserves Bug 28898: (follow-up) Add context to some more occurrences of Term in course reserves 2021-09-21 20:22:57 +02:00
errors Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
ill Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
installer Bug 27823: List upcoming steps during installation process 2021-11-03 15:40:52 +01:00
labels Bug 29821: Add interface for generating barcodes using svc/barcode 2022-04-08 15:49:17 +02:00
mana
members Bug 26244: Move translatable strings out of memberentrygen.tt and into JavaScript 2022-04-12 11:40:17 +02:00
offline_circ
onboarding Bug 28982: Use Flatpickr on onboarding pages 2021-11-03 15:40:53 +01:00
patron_lists Bug 16446: (follow-up) Fix translation and adjust radio buttons 2021-10-21 12:24:04 +02:00
patroncards Bug 30404: Enlarge all patron search pop-ups 2022-04-04 09:47:02 +02:00
plugins Bug 29787: Add plugin version to plugin search results 2022-04-08 15:49:15 +02:00
pos Bug 30003: Prevent double up of point-of-sale items 2022-04-04 16:23:45 +02:00
recalls Bug 19532: (follow-up) Fixing OPAC display and staff client errors 2022-03-14 22:45:51 -10:00
reports Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
reserve Bug 30395: Fix TT filtering of publicationyear in reserve/request.tt 2022-04-04 16:24:26 +02:00
reviews
rotating_collections
serials Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
services Bug 29496: (bug 27526 follow-up) Fix item form validation 2021-11-19 15:07:10 +01:00
suggestion Bug 30404: Enlarge all patron search pop-ups 2022-04-04 09:47:02 +02:00
tags Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
test
tools Bug 29695: Remove GetColumnDefs 2022-04-12 11:40:16 +02:00
virtualshelves Bug 28782: Use query param list instead of splitting elements using '/' 2022-03-03 16:11:50 -10:00
about.tt Bug 30378: Convert about page tabs to Bootstrap 2022-04-12 11:40:17 +02:00
auth.tt Bug 29915: Add selenium tests 2022-03-22 10:17:33 -10:00
intranet-main.tt Revert "Bug 30425: April fools 🐟: Add ponies to staff homepage" 2022-04-04 09:47:03 +02:00