Bugzilla – Attachment 157599 Details for
Bug 34098
Improve translation of some strings in the patron import template
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34098: Improve translation of some strings in the patron import template
Bug-34098-Improve-translation-of-some-strings-in-t.patch (text/plain), 5.06 KB, created by
David Nind
on 2023-10-21 23:34:34 UTC
(
hide
)
Description:
Bug 34098: Improve translation of some strings in the patron import template
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-10-21 23:34:34 UTC
Size:
5.06 KB
patch
obsolete
>From 6214c9da014c74998fe7d54c27cc90bc3df000c9 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 22 Jun 2023 15:42:52 +0000 >Subject: [PATCH] Bug 34098: Improve translation of some strings in the patron > import template > >This patch updates a few sections of the patron import template in order >to import the way strings are identified for translation. > >To test, apply the patch and install another translation if necessary. > >- Go to Tools -> Import patrons >- Under "Notes," you should see a link, "Download a Starter CSV file > with all the columns." >- Test the process of importing a batch of patron records. > - When the import completes, confirm that the status messages are > correct: > > X imported records > X overwritten records > X not imported because they are already in borrowers table and > overwrite is disabled > X not imported because they are not in the expected format > X records parsed > >TESTING TRANSLATABILITY > >- Update a translation, e.g. fr-FR: > >> cd misc/translator >> perl translate update fr-FR > >- Open the corresponding .po file for the updated strings, e.g. > misc/translator/po/fr-FR-messages.po >- Locate strings pulled import_borrowers.tt for translation and confirm > that they are readable and have context information under 'msgctxt' > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../prog/en/modules/tools/import_borrowers.tt | 40 +++++++++++++++---- > 1 file changed, 33 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt >index ec1cb170a4..0ea592976e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt >@@ -58,14 +58,35 @@ > [% IF ( uploadborrowers ) %] > <h2>Import results</h2> > <ul> >- <li>[% imported | html %] imported records [% IF ( lastimported ) %](last was [% lastimported | html %])[% END %]</li> >+ <li> >+ [% tpx("Patron import", "{count_of_imported_records} imported records", {count_of_imported_records = imported}) | html %] >+ [% IF ( lastimported ) %] >+ [% tpx("Patron import", "(last was {last_imported_record})", {last_imported_record = lastimported}) | html %] >+ [% END %] >+ </li> > [% IF imported and patronlistname %] >- <li>Patronlist with imported patrons: [% patronlistname | html %]</li> >+ <li>Patron list with imported patrons: [% patronlistname | html %]</li> > [% END %] >- <li>[% overwritten | html %] overwritten [% IF ( lastoverwritten ) %](last was [% lastoverwritten | html %])[% END %]</li> >- <li>[% alreadyindb | html %] not imported because already in borrowers table and overwrite disabled [% IF ( lastalreadyindb ) %](last was [% lastalreadyindb | html %])[% END %]</li> >- <li>[% invalid | html %] not imported because they are not in the expected format [% IF ( lastinvalid ) %](last was [% lastinvalid | html %])[% END %]</li> >- <li>[% total | html %] records parsed</li> >+ <li> >+ [% tpx("Patron import", "{count_of_overwritten_records} overwritten records", {count_of_overwritten_records = overwritten}) | html %] >+ [% IF ( lastoverwritten ) %] >+ [% tpx("Patron import", "(last was {last_overwritten_record})", {last_overwritten_record = lastoverwritten}) | html %] >+ [% END %] >+ </li> >+ <li> >+ [% tpx("Patron import", "{count_of_existing_records} not imported because they are already in borrowers table and overwrite is disabled ", {count_of_existing_records = alreadyindb}) | html %] >+ [% IF ( lastalreadyindb ) %] >+ [% tpx("Patron import", "(last was {last_existing_record})", {last_existing_record = lastalreadyindb}) | html %] >+ [% END %] >+ </li> >+ <li> >+ [% tpx("Patron import", "{count_of_invalid_records} not imported because they are not in the expected format", {count_of_invalid_records = invalid}) | html %] >+ [% IF ( lastinvalid ) %] >+ [% tpx("Patron import", "(last was {last_invalid_record})", {last_invalid_record = lastinvalid}) | html %] >+ [% END %] >+ <li> >+ [% tpx("Patron import", "{total} records parsed", {total = total}) | html %] >+ </li> > <li><a href="/cgi-bin/koha/tools/tools-home.pl">Back to Tools</a></li> > </ul> > >@@ -373,7 +394,12 @@ > <ul> > <li>The first line in the file must be a header row defining which columns you are supplying in the import file.</li> > >- <li><strong>Download a <a href="?sample=1">Starter CSV file</a> with all the columns.</strong> Values are comma-separated.</li> >+ <li> >+ <strong> >+ <a href="?sample=1">Download a Starter CSV file with all the columns.</a> >+ </strong> >+ [% tp("CSV file", "Values are comma-separated.") | html %] >+ </li> > > <li> > OR choose which fields you want to supply from the following list: >-- >2.30.2
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 34098
:
152577
|
157599
|
158195