From f26db1e56058f590a9128bd7324bfe5eaa1820e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Mon, 12 Jun 2017 09:07:28 +0200 Subject: [PATCH] Bug 18781: Translatability: Get rid of exposed tt directives in openlibrary-readapi.inc The file koha-tmpl/opac-tmpl/bootstrap/en/includes/openlibrary-readapi.inc exposes template directives to translation. The only string that should appear in .po from this file is "Open Library: " To test: - Apply patch - Verify that code changes make sense - Bonus test: create a new language 'aa-AA', verify in aa-AA-opac-bootstrap.po that there is only the following string for openlibrary-readapi.inc: msgid "Open Library: " msgstr "" NOTE: Followed a test plan similar to bug 18776 comment 3 Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart (cherry picked from commit 23cc8b39682fea7b0a9150933c65c34ef22d23dd) Signed-off-by: Fridolin Somers (cherry picked from commit 861fa8c8db8bd8bbd6281863d5029d55675f359c) Signed-off-by: Katrin Fischer --- .../bootstrap/en/includes/openlibrary-readapi.inc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/openlibrary-readapi.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/openlibrary-readapi.inc index 5681000d81..91cf4d7704 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/openlibrary-readapi.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/openlibrary-readapi.inc @@ -1,10 +1,4 @@ -[%# Input params: - bib - search result biblio record -%] -[% IF OpenLibrarySearch && ( - bib.normalized_isbn || - bib.lccn || - bib.normalized_oclc -) %] +[%# Input params: bib - search result biblio record %] +[% IF OpenLibrarySearch && ( bib.normalized_isbn || bib.lccn || bib.normalized_oclc ) %]
Open Library:
[% END %] -- 2.39.5