Bug 41689: Make patron message labels translatable
To Test: BEFORE APPLYING PATCH: 1- Go to any patron account > Add message 2- Add a message for: "Staff - Internal note" 3- Add a second message for: "OPAC - [NAME OF THE PATRON SELECTED]" 4- Add any language (I'll use french-Canada, fr-CA, in this case): From your koha instance, enter on the command line: ./misc/translator/translate install fr-CA 5- Go to Administration > System preferences > enter language 6- Make sure to check 'Français (fr-CA)' box from the 'StaffInterfaceLanguages'preference and save. 7- Go back to the specific patron in which you added the messages 8- Switch language to 'Français' (bottom left corner) 9- Notice that: --> 'OPAC' is still the same (Since we spell OPAC the same way in both english and french. However, it might not be the case in other languages). --> 'Staff note' is not translated. 10- apply patch AFTER APPLYING PATCH: 11 - From you koha instance, enter on the command line: ./misc/translator/translate update fr-CA ./misc/translator/translate install fr-CA 12- Reload patron's page 13- Notice that 'Staff note' is now translated ** You should see this output: 'Note interne' Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
parent
7745ff9456
commit
0317f6b286
|
|
@ -327,20 +327,24 @@
|
|||
[% FOREACH patron_message IN patron_messages %]
|
||||
<li>
|
||||
[% SET span_class = '' %]
|
||||
[% SET msg_type = 'OPAC' %]
|
||||
[% IF(patron_message.message_type == "L") %]
|
||||
[% IF patron_message.message_type == "L" %]
|
||||
[% span_class = 'circ-hlt' %]
|
||||
[% msg_type = 'Staff note' %]
|
||||
[% END %]
|
||||
<span class="[% span_class | html %]">
|
||||
[% patron_message.message_date | $KohaDates %]
|
||||
[% Branches.GetName( patron_message.branchcode ) | html %]
|
||||
- [% t(msg_type) | html %]
|
||||
[% Branches.GetName(patron_message.branchcode) | html %]
|
||||
-
|
||||
[% IF patron_message.message_type == 'L' %]
|
||||
<span>Staff note</span>
|
||||
[% ELSE %]
|
||||
<span>OPAC</span>
|
||||
[% END %]
|
||||
|
||||
[% IF patron_message.manager_id %]
|
||||
(
|
||||
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron_message.manager_id | uri %]"
|
||||
>[% patron_message.get_column('manager_firstname') | html %] [% patron_message.get_column('manager_surname') | html %]</a
|
||||
>
|
||||
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron_message.manager_id | uri %]">
|
||||
[% patron_message.get_column('manager_firstname') | html %] [% patron_message.get_column('manager_surname') | html %]
|
||||
</a>
|
||||
)
|
||||
[% END %]
|
||||
<em>"[% patron_message.message | html | html_line_break %]"</em>
|
||||
|
|
|
|||
Loading…
Reference in New Issue