Bug 8330: Overdue email link contains untranslatable 'Overdue:'
commit67881bd907b4c28843c73bb26b051a69dd489094
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sun, 7 Jun 2015 22:55:22 +0000 (8 00:55 +0200)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Mon, 22 Jun 2015 14:50:48 +0000 (22 11:50 -0300)
treeade4597a9903c42123b6f278ca7921299768fd6d
parent8ce79c4c8bb721f9f06d7b1928116a0e7e6cec18
Bug 8330: Overdue email link contains untranslatable 'Overdue:'

The translation scripts don't pick up text from href attributes,
which is what we want, with a small exception for this script.

Patch uses a TT trick to make the Overdue: in the subject
of the mailto: link translatable.

Regression test:
- Make sure you have an overdue item
- Go to Circulation > Overdues
- Verify the [email] link works and a subject
  with 'Overdue: <title>' is generated
- Apply patch and repeat steps

Bonus: Verify the branch name now shows instead of
       the branchcode in the table

To test translatability:
- cd misc/translator
- perl translate update de-DE
- Open file po/de-DE-staff-prog.po
- Search for Overdue:
- Translate string, remove 'fuzzy' marker
- perl translate install de-DE
- Test again, subject should now be translated

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt