Bugzilla – Attachment 152533 Details for
Bug 34081
Contextualization of "Approved" (one term) vs "Approved" (more than one term), and other tag statuses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34081: Contextualization of "Approved" (one term) vs "Approved" (more than one term), and other tag statuses
Bug-34081-Contextualization-of-Approved-one-term-v.patch (text/plain), 6.52 KB, created by
Caroline Cyr La Rose
on 2023-06-21 16:29:18 UTC
(
hide
)
Description:
Bug 34081: Contextualization of "Approved" (one term) vs "Approved" (more than one term), and other tag statuses
Filename:
MIME Type:
Creator:
Caroline Cyr La Rose
Created:
2023-06-21 16:29:18 UTC
Size:
6.52 KB
patch
obsolete
>From e1d8c9219bc002112d6f9d735d1d94a334178c9d Mon Sep 17 00:00:00 2001 >From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >Date: Wed, 21 Jun 2023 12:27:12 -0400 >Subject: [PATCH] Bug 34081: Contextualization of "Approved" (one term) vs > "Approved" (more than one term), and other tag statuses >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: > >1. Apply patch > >2. Install language > > ./misc/translator/translate install xx-XX > >3. Update po files > > ./misc/translator/translate update xx-XX > >4. View the xx-XX-messages.po file > > --> Strings for tag statuses for one tag should be separated from strings for statuses for multiple tags, with context Tags (single) or Tags (multiple) > >5. Change the strings so you know which is which > > For example, in French, the approved status for a single tag would be "Approuvé" and for multiple tags would be "Approuvés" (with the plural s at the end) > >6. Apply translations > > ./misc/translator/translate install xx-XX > >7. Add tags through the OPAC > 7.1. In another tab, go to the OPAC > 7.2. Log in > 7.3. Search for a record > 7.4. From the detailed record, click Add tags > 7.5. Enter a tag and click Add > >8. In the staff interface, go to Tools > Tags > >9. Approve/Reject the tag > --> The status in the table and on the button should be the singular status, the status in the summary on the right should be plural >--- > .../prog/en/modules/tags/review.tt | 17 +++++++++-------- > 1 file changed, 9 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt >index d3ab56fef4..8b8b6772f0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt >@@ -1,6 +1,7 @@ > [% USE raw %] > [% USE Asset %] > [% USE KohaDates %] >+[% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title>[% IF ( do_it ) %]Review[% ELSE %]Review tags[% END %] › Tags › Tools › Koha</title> >@@ -110,15 +111,15 @@ tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } > <td> > [% IF ( tagloo.approved == -1 ) %] > <label for="checkbox[% offset + loop.count | html %]"> >- <span class="rejected status[% offset + loop.count | html %]">Rejected</span> >+ <span class="rejected status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Rejected') | html %]</span> > </label> > [% ELSIF ( tagloo.approved == 1 ) %] > <label for="checkbox[% offset + loop.count | html %]"> >- <span class="approved status[% offset + loop.count | html %]">Approved</span> >+ <span class="approved status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Approved') | html %]</span> > </label> > [% ELSE %] > <label for="checkbox[% offset + loop.count | html %]"> >- <span class="pending status[% offset + loop.count | html %]">Pending</span> >+ <span class="pending status[% offset + loop.count | html %]">[% tp('Tags (single)', 'Pending') | html %]</span> > </label> > [% END %] > </td> >@@ -130,9 +131,9 @@ tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } > <td class="actions"><span class="ajax_buttons" style="visibility:hidden"> > [% IF ( tagloo.approved == -1 ) %] > <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Approve" name="approve"><i class="fa fa-check"></i> Approve</button> >- <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Rejected" name="reject"><i class="fa fa-times"></i> Rejected</button> >+ <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Rejected" name="reject"><i class="fa fa-times"></i> [% tp('Tags (single)', 'Rejected') | html %]</button> > [% ELSE %] >- <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Approved" name="approve"><i class="fa fa-check"></i> Approved</button> >+ <button data-num="[% offset + loop.count | html %]" class="approval_btn ok btn btn-default btn-xs" disabled="disabled" type="submit" title="[% tagloo.term | html %]" value="Approved" name="approve"><i class="fa fa-check"></i> [% tp('Tags (single)', 'Approved') | html %]</button> > <button data-num="[% offset + loop.count | html %]" class="approval_btn rej btn btn-default btn-xs" type="submit" title="[% tagloo.term | html %]" value="Reject" name="reject"><i class="fa fa-times"></i> Reject</button> > [% END %] > </span> >@@ -167,13 +168,13 @@ tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } > <fieldset class="brief"> > <h4>Terms summary</h4> > <ul> >- <li><a href="/cgi-bin/koha/tags/review.pl?approved=1">Approved</a>: >+ <li><a href="/cgi-bin/koha/tags/review.pl?approved=1">[% tp('Tags (multiple)', 'Approved') | html %]</a>: > <span id="terms_summary_approved_count">[% approved_count | html %]</span> > </li> >- <li><a href="/cgi-bin/koha/tags/review.pl?approved=-1">Rejected</a>: >+ <li><a href="/cgi-bin/koha/tags/review.pl?approved=-1">[% tp('Tags (multiple)', 'Rejected') | html %]</a>: > <span id="terms_summary_rejected_count">[% rejected_count | html %]</span> > </li> >- <li><a href="/cgi-bin/koha/tags/review.pl?approved=0">Pending</a>: >+ <li><a href="/cgi-bin/koha/tags/review.pl?approved=0">[% tp('Tags (multiple)', 'Pending') | html %]</a>: > <span id="terms_summary_unapproved_count">[% unapproved_count | html %]</span> > </li> > <li><a href="/cgi-bin/koha/tags/review.pl?approved=all">Total</a>: >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34081
:
152533
|
152557
|
155476