Bugzilla – Attachment 159549 Details for
Bug 33766
Accessibility: Fix ambiguous form field in OPAC login form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33766: (follow-up) Enable translation for strings
Bug-33766-follow-up-Enable-translation-for-strings.patch (text/plain), 1.89 KB, created by
Owen Leonard
on 2023-12-04 17:01:17 UTC
(
hide
)
Description:
Bug 33766: (follow-up) Enable translation for strings
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-12-04 17:01:17 UTC
Size:
1.89 KB
patch
obsolete
>From 6ec6a2055b46aee89c481b43cbe20bc16844e28b Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 31 Aug 2023 15:55:26 +0000 >Subject: [PATCH] Bug 33766: (follow-up) Enable translation for strings > >In my test the strings inside a SET directive were not picked up for >translation. This patch adds the t() function around the new strings in >order to allow them to be translated. > >To test, apply the patch and test the translation process for any >language, in this example fr-FR: > >- Run 'perl translate update fr-FR' >- Open misc/translator/po/fr-FR-messages.po >- Look for the affected strings: "Username", "Cardnumber", and > "Cardnumber or username." >- Update the po file with translations of the strings >- Run 'perl translate install fr-FR' >- View the OPAC in your translated language and test each setting of > OPACLoginLabelTextContent to confirm that the translated strings > appear. >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc >index 2dcd70c546..4ce9794f77 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc >@@ -171,11 +171,11 @@ > > [% BLOCK login_label %] > [%- SET preference_value = Koha.Preference('OPACLoginLabelTextContent') %] >- [%- SET label = "Cardnumber" %] >+ [%- SET label = t("Cardnumber") %] > [%- IF preference_value == "username" %] >- [%- SET label = "Username" %] >+ [%- SET label = t("Username") %] > [%- ELSIF preference_value == "cardnumberorusername" %] >- [%- SET label = "Cardnumber or username" %] >+ [%- SET label = t("Cardnumber or username") %] > [%- END %] > <label for="[% for | html %]">[% label | html %]:</label> > [% END %] >-- >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 33766
:
151416
|
151427
|
154566
|
154567
|
154570
|
155017
|
155018
|
155019
|
155022
|
155023
|
155024
|
155025
|
155026
|
157854
|
157855
|
157856
|
157857
|
157858
|
159342
|
159546
|
159547
|
159548
|
159549
|
159550
|
168600
|
168601
|
168602
|
168603
|
168604
|
168605
|
173757
|
173758
|
173759
|
173760
|
173761
|
173762
|
173972
|
173973
|
173974
|
173975
|
173976
|
173977
|
174037
|
174038
|
174039
|
174040
|
174041
|
174042