]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1373578: fix translatability of hold placement errors
authorGalen Charlton <gmc@esilibrary.com>
Mon, 23 May 2016 16:29:04 +0000 (12:29 -0400)
committerBen Shum <ben@evergreener.net>
Thu, 2 Jun 2016 22:00:59 +0000 (18:00 -0400)
commitae5108d5badc77c1a2ba594e836919ca70ecd9c7
treed46a29a759ec80cf27c786bcb82ccc2fb2a37e45
parent7ad3502a42f2ecca9b6d304c912f4fe3cc0fa17f
LP#1373578: fix translatability of hold placement errors

This patch fixes a circumstance where ->maketext() could be
passed an empty string, causing it to emit the PO file header text
rather than a desired string.

To test
-------
[1] Configure Evergreen to use a TPAC localization (e.g.,
    the Czech translation).
[2] Enable the "Has Local Copy Alert" library setting.
[3] In the OPAC, change locale and attempt to place a
    hold that would trigger the alert saying that there's
    already a local copy available.
[4] Note that the alert reads as "Project-Id-Version: evergreen
Report-Msgid-Bugs-To: ..."
[5] Apply the patch.
[6] Try step 3; this time the alert will be translated correctly,
    e.g., "Ve vaší domovské knihovně je již dostupný exemplář."

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <ben@evergreener.net>
Open-ILS/src/templates/opac/parts/place_hold_result.tt2