Owen Leonard
ea8151da56
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> |
||
---|---|---|
.. | ||
accountline-details.tt | ||
apikeys.tt | ||
boraccount.tt | ||
deletemem.tt | ||
discharge.tt | ||
discharges.tt | ||
files.tt | ||
holdshistory.tt | ||
housebound.tt | ||
ill-requests.tt | ||
mancredit.tt | ||
maninvoice.tt | ||
member-flags.tt | ||
member-password.tt | ||
member.tt | ||
memberentrygen.tt | ||
members-update.tt | ||
merge-patrons.tt | ||
moremember-brief.tt | ||
moremember-print.tt | ||
moremember.tt | ||
notices.tt | ||
pay.tt | ||
paycollect.tt | ||
printfeercpt.tt | ||
printinvoice.tt | ||
purchase-suggestions.tt | ||
readingrec.tt | ||
recallshistory.tt | ||
routing-lists.tt | ||
search.tt | ||
statistics.tt | ||
update-child.tt |