Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
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
..
accountline-details.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
apikeys.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
boraccount.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
deletemem.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
discharge.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
discharges.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
files.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
holdshistory.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
housebound.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
ill-requests.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
mancredit.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
maninvoice.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
member-flags.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
member-password.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
member.tt Bug 30063: Fix QA issues 2022-04-04 09:47:02 +02:00
memberentrygen.tt Bug 26244: Move translatable strings out of memberentrygen.tt and into JavaScript 2022-04-12 11:40:17 +02:00
members-update.tt Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
merge-patrons.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
moremember-brief.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
moremember-print.tt Bug 29820: Set paging option using boolean instead of string 2022-01-18 21:15:05 -10:00
moremember.tt Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
notices.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
pay.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
paycollect.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
printfeercpt.tt Bug 26734: Convert printfeercpt/printinvoice to use GetPreparedLetter 2021-04-27 16:23:49 +02:00
printinvoice.tt Bug 26734: Convert printfeercpt/printinvoice to use GetPreparedLetter 2021-04-27 16:23:49 +02:00
purchase-suggestions.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
readingrec.tt Bug 30456: Convert checkout history tabs to Bootstrap 2022-04-12 11:40:17 +02:00
recallshistory.tt Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
routing-lists.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
search.tt Bug 30063: Make the main patron search use the REST API 2022-04-04 09:47:01 +02:00
statistics.tt Bug 30093: Rename patron-search.inc to patron-search-header.inc 2022-04-04 09:47:00 +02:00
update-child.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00