https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41522

Jonathan Druart <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
             Status|Signed Off                  |Failed QA

--- Comment #16 from Jonathan Druart <[email protected]> ---
You shouldn't cut the sentences, it makes them hard to translate.

Instead you should use KohaSpan, like that:
admin/curbside_pickup.tt:            <div class="alert alert-info">The [%
pref_CurbsidePickup_link | $raw | $KohaSpan %] preference is not enabled, do
not forget to enable it to turn the feature on.</div>

In your examples, you should not spit the sentences with Template::Toolkit
tags, but do repetitions instead.

I would suggest:

[% IF UserHasSysPrefsPerm %]
    [% SET pref_RequireChoosingExistingAuthority_link = '<a
href="admin/preferences.pl?op=search&searchfield=RequireChoosingExistingAuthority&ok=Search">RequireChoosingExistingAuthority</a>'
%]
    [% SET pref_AutoCreateAuthorities_link = '<a
href="admin/preferences.pl?op=search&searchfield=AutoCreateAuthorities&ok=Search">AutoCreateAuthorities</a>'
%]
    <p>System preference [% pref_RequireChoosingExistingAuthority_link | $raw |
$KohaSpan %] is disabled, but needs [% pref_AutoCreateAuthorities_link | $raw |
$KohaSpan %] enabled.</p>
[% ELSE %]
    <p>System preference 'RequireChoosingExistingAuthority' is disabled, but
needs 'AutoCreateAuthorities' enabled.</p>
[% END %]
<p>Otherwise catalogers can add headings that will not be linked to
authorities.</p>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to