Tpac; hold error message 18n string extraction repairs user/berick/tpac-hold-messages-i18n-repair
authorBill Erickson <berick@esilibrary.com>
Wed, 2 Nov 2011 13:47:04 +0000 (09:47 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 2 Nov 2011 13:54:29 +0000 (09:54 -0400)
commita1ac90df31e6c002ff8c5d9c970bb20e899d9ea2
tree38857c8d0e3ed4cdfab8ed00c75983607add8430
parent8399d37d204e7190d4f1cb1c8efe245d3bdda94c
Tpac; hold error message 18n string extraction repairs

Make it possible for xgettext.pl (using
Locale::Maketext::Extract::Plugin::TT2) to extract hold error
message strings for translation.  The plugin is not quite
smart enough to extract wholly dynamic values from the templates, since
it (presumably) only parses the templates and does not execute them.
The solution is to wrap the strings in l() where they are defined.

Add an example for the EVENT_MSG_MAP for the event PATRON_EXCEEDS_FINES.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/opac/parts/hold_error_messages.tt2
Open-ILS/src/templates/opac/parts/place_hold_result.tt2