[Koha-devel] opac-overdrive-search.tt translation bug

Alex Buckley alexbuckley at catalyst.net.nz
Mon Jun 13 08:13:01 CEST 2022


Hi there,

I see this line
https://github.com/Koha-Community/Koha/blob/beb663836b45a77f45195774133cc9b78957fcd5/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt#L75
does not get translated correctly.

The 0 in the ELSE is lost in the translated versions of
opac-overdrive-search.tt, for example below:

/var OD_password_required = [% IF
Koha.Preference('OverDrivePasswordRequired') %]1[% ELSE %][% END %];/

This in turn throws a JavaScript error if a library does not have the
/OverDrivePasswordRequired/ syspref enabled./
/

I checked the en-NZ-opac-bootstrap.po
<https://translate.koha-community.org/export/22.05/en_NZ/en-NZ-opac-bootstrap.po>
and it has no translation for that JS line.

Could someone please give me some pointers on how we could stop the 0
being lost?

Any help gratefully received!

Many thanks,

Alex


-- 
Alex Buckley (he/him)
Koha Developer | Implementation Lead

Catalyst IT - Expert Open Source Solutions
www.catalyst.net.nz <http://www.catalyst.net.nz>

CONFIDENTIALITY NOTICE: This email is intended for the named recipients
only. It may contain privileged, confidential or copyright information.
If you are not the named recipient, any use, reliance upon, disclosure
or copying of this email or its attachments is unauthorised. If you have
received this email in error, please reply via email or call +64 4 499 2267.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20220613/706b30ad/attachment.htm>


More information about the Koha-devel mailing list