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

Katrin Fischer katrin.fischer.83 at web.de
Mon Jun 13 08:17:09 CEST 2022


Hi Alex,

I believe this was the same bug/using the same TT construct:

*BugĀ 23713*
<https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23713> -
Subscription add form broken for translations

Hope this helps,

Katrin

On 13.06.22 08:13, Alex Buckley wrote:
>
> 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.
>
> _______________________________________________
> Koha-translate mailing list
> Koha-translate at lists.koha-community.org
> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-translate
> website:www.koha-community.org
> git: git.koha-community.org
> bugs: bugs.koha-community.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-translate/attachments/20220613/db881904/attachment.htm>


More information about the Koha-translate mailing list