Bugzilla – Attachment 137101 Details for
Bug 31068
Context for translation: Print (verb) vs. Print (noun)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31068: Context for translation: Print (verb) vs. Print (noun)
Bug-31068-Context-for-translation-Print-verb-vs-Pr.patch (text/plain), 6.25 KB, created by
Caroline Cyr La Rose
on 2022-07-04 16:13:00 UTC
(
hide
)
Description:
Bug 31068: Context for translation: Print (verb) vs. Print (noun)
Filename:
MIME Type:
Creator:
Caroline Cyr La Rose
Created:
2022-07-04 16:13:00 UTC
Size:
6.25 KB
patch
obsolete
>From f74b156b5263acb4070ec2da17a22826e6cb49bc Mon Sep 17 00:00:00 2001 >From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >Date: Mon, 4 Jul 2022 12:10:54 -0400 >Subject: [PATCH] Bug 31068: Context for translation: Print (verb) vs. Print > (noun) > >This patch adds context to the term Print in the context of message transport types (as opposed to printing something/print button), for translation purposes. > >To test: >0- Apply patch > >Check the terms to be changed >1- Go to Tools > Notifications & slips >2- Edit a notification >** 3- In the tabs for different transport types, check the 'Print' term (letter.tt) >4- Go to Tools > Overdue notice/status triggers >** 5- In the transport types, check the 'Print' column heading (overduerules.tt) > >Add a new language (fr-CA in the example, change for whatever language code you want) >6- In a terminal, run >gulp po:create --lang fr-CA >7- Then, run >gulp po:update --lang fr-CA >8- In system preferences, enable the new language in language and OpacLanguages >9- Switch the language in staff interface and OPAC > >Change the translations >10- In your favourite text editor, open fr-CA-messages.po >11- Find the string msgctxt "Message transport type" >12- Enter a word in msgstr >13- Save the file >14- In a terminal, go to misc/translator >15- Run >./translate install fr-CA > >Check the translations >16- Redo the steps to check the terms (steps 1-5) and make sure the terms in steps 3 and 5 are changed for the word you put in step 12. > >17- Optionally, check the other pages where the term is supposed to be unchanged and make sure it is unchanged > >Check the terms to leave unchanged (optional) >18- Enable the HoldsAutoFill and UseCashRegisters system preferences >19- Go to Administration > Cash registers and create a cash register >20- Go to a patron's account >** 21- Check the 'Print' button in the menu bar or the patron's account (members-toolbar.inc) >22- Go to the 'Accounting' tab >23- Create a manual invoice >** 24- In the 'Transactions' tab, check the 'Print' button in the fee line (boraccount.tt) >25- Pay the fee (make sure to use the cash register) >** 26- In the 'Transactions' tab, check the 'Print' button in the payment line (boraccount.tt) >27- At the top of the transactions table, click the 'Export' option >** 28- Check the 'Print' option (columns_settings.inc) >29- Go to the 'Check out' tab and check out an item >30- Go to the item's bibliographic record >** 31- Check the 'Print' button in the menu bar of the detailed record (cat-toolbar.inc) >32- Add the record to the cart and open the cart >** 33- Check the 'Print' button in the cart (basket.tt) >34- Place a hold on the item >35- In the search bar at the top, click the 'Check in' tab and check in the item >** 36- Check the 'Print' button in the 'Hold filled for' message (returns.tt) >37- Go to Tools > Cash summary for Branch >38- Click 'record cashup' and confirm >39- Click the 'Summary' link in the 'Last cashup' column >** 40- Check the 'Print' button in the cashup summary modal (cashup_summary.inc) >41- Go to Serials >42- Create a subscription (if there aren't any) >43- Receive an issue >44- From the subscription detail page, go to Create routing list >45- Add a recipient to the list >46- Save the routing list >47- Click 'Save and preview routing slip' >** 48- Check the 'Print' button in the routing list preview (routing_preview_slip.tt) > >Note: I can't find where the 'Print' from tinymce_i18n.inc is displayed in the staff interface >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 3 ++- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt | 3 ++- > 2 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >index 341379e84f..9442e7d806 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -4,6 +4,7 @@ > [% USE KohaDates %] > [% USE Branches %] > [% USE TablesSettings %] >+[% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title> >@@ -476,7 +477,7 @@ > <a role="button" class="collapsed" data-toggle="collapse" data-parent="#group_[% lang | html %]" href="#[% letter.message_transport_type | html %]_[% lang | html %]" aria-expanded="false" aria-controls="[% letter.message_transport_type | html %]_[% lang | html %]"> > [% SWITCH letter.message_transport_type %] > [% CASE 'email' %]<span>Email</span> >- [% CASE 'print' %]<span>Print</span> >+ [% CASE 'print' %]<span>[% tp('Message transport type', 'Print') | html %]</span> > [% CASE 'sms' %]<span>SMS</span> > [% CASE 'feed' %]<span>Feed</span> > [% CASE 'itiva' %]<span>Phone ( Itiva )</span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt >index 4d250ad21d..15abea26a8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt >@@ -2,6 +2,7 @@ > [% USE Asset %] > [% USE Koha %] > [% USE Branches %] >+[% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Overdue notice/status triggers › Tools › Koha</title> >@@ -95,7 +96,7 @@ > <th scope="col"> > [% SWITCH mtt %] > [% CASE 'email' %]<span>Email</span> >- [% CASE 'print' %]<span>Print</span> >+ [% CASE 'print' %]<span>[% tp('Message transport type', 'Print') | html %]</span> > [% CASE 'sms' %]<span>SMS</span> > [% CASE 'feed' %]<span>Feed</span> > [% CASE 'itiva' %]<span>Phone (i-tiva)</span> >-- >2.25.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 31068
:
137101
|
137141
|
137772