Created attachment 3489 [details] [review] Proposed Patch
casServersLoop template var depends on bug 5630, which still needs signoff. As I was the main developper of the CAS feature, someone else than me should signoff it.
Created attachment 4599 [details] [review] rewrited for template toolkit
Updating Version : This ENH will be for Koha 3.8
Bug versionned for master. entries will be made against rel_3_8 once the patch has been applied (see thread about that on koha-devel yesterday)
Does not apply Applying: Bug 5983 minor fix in html to improve translatability /home/chrisc/git/catalyst-koha/.git/rebase-apply/patch:14: trailing whitespace. <p><acronym title="Central Authentication Service">If you have a CAS account</acronym>, warning: 1 line adds whitespace errors. Using index info to reconstruct a base tree... <stdin>:14: trailing whitespace. <p><acronym title="Central Authentication Service">If you have a CAS account</acronym>, warning: 1 line applied after fixing whitespace errors. Falling back to patching base and 3-way merge... Auto-merging koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt CONFLICT (content): Merge conflict in koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt Failed to merge in the changes. Patch failed at 0001 Bug 5983 minor fix in html to improve translatability I think this patch may no longer be needed. The existing code is <p>If you have a <acronym title="Central Authentication Service">CAS</acronym> account, [% IF ( casServerUrl ) %] please <a href="[% casServerUrl %]">click here to login</a>.<p> [% END %] [% IF ( casServersLoop ) %] please choose against which one you would like to authenticate: </p> <ul> [% FOREACH casServer IN casServersLoop %] <li><a href="[% casServer.value %]">[% casServer.name %]</a></li> [% END %] [% END %] </ul> So I think this has been fixed already, if you agree please mark it so.
I think a part of this patch is still relevant: -<p>If you have a <acronym title="Central Authentication Service">CAS</acronym> account, +<p><acronym title="Central Authentication Service">If you have a CAS account</acronym>, With the <acronym> tag in the middle of the string, the result is hard to translate, you get 3 strings: If you have CAS account, which can only be translated awfully in french. Stéphane, can you provide another patch please ?
(In reply to comment #7) > I think a part of this patch is still relevant: > -<p>If you have a <acronym title="Central Authentication Service">CAS</acronym> > account, > +<p><acronym title="Central Authentication Service">If you have a CAS > account</acronym>, > Hmm but wouldn't that be wrong, the acronym tag should only be around the acronym shouldn't it? Chris
Looks like this was implemented by another patch at some point.