[Koha-patches] [PATCH] Bug 10083 - In Transit string doesn't get translated in the staff interface

Owen Leonard oleonard at myacpl.org
Fri Apr 26 22:17:27 CEST 2013


For some reason this text inside a <td> isn't getting picked up by the
translator unless it's inside a <span>. This patch adds the span and
tidies up the text.

To test, apply the patch and "translate update" a translation. Searching
the po file for "In transit from" should return a result from detail.pl.
---
 .../prog/en/modules/catalogue/detail.tt            |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
index 8f40e31..495d7e3 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -403,9 +403,7 @@ function verify_images() {
                                 : due [% item.datedue %]
                             </span>
                         [% ELSIF ( item.transfertwhen ) %]
-                            In transit from [% item.transfertfrom %],
-                            to [% item.transfertto %], since [% item.transfertwhen %]
-                            <!-- FIXME: the "since" clause is redundant w/ lastseen field -->
+                            <span class="intransit">In transit from [% itemloo.transfertfrom %] to [% itemloo.transfertto %] since [% itemloo.transfertwhen %]</span>
                         [% END %]
 
                         [% IF ( item.itemlost ) %]
-- 
1.7.9.5


More information about the Koha-patches mailing list