]> git.koha-community.org Git - koha.git/commit
Bug 8330: Overdue email link contains untranslatable 'Overdue:'
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sun, 7 Jun 2015 22:55:22 +0000 (00:55 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 9 Jul 2015 21:16:41 +0000 (09:16 +1200)
commit637c1cdcbbcd175f3f6ca0e7861935d31036aa15
treeb96b1e83591ff19d4948b8ff70dae41acb1667ec
parent3737e834659481c0ca1134b5fa6ba8a5364dbba5
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>
(cherry picked from commit 67881bd907b4c28843c73bb26b051a69dd489094)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt