From 6214c9da014c74998fe7d54c27cc90bc3df000c9 Mon Sep 17 00:00:00 2001 From: Owen Leonard 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 --- .../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 ) %]

Import results

@@ -373,7 +394,12 @@