Bugzilla – Attachment 153288 Details for
Bug 34247
Improve translation of notice character count
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34247: Improve translation of notice character count
Bug-34247-Improve-translation-of-notice-character-.patch (text/plain), 2.74 KB, created by
Owen Leonard
on 2023-07-10 16:57:34 UTC
(
hide
)
Description:
Bug 34247: Improve translation of notice character count
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-07-10 16:57:34 UTC
Size:
2.74 KB
patch
obsolete
>From ae1a755cb65170388d3aa639f09c7412f7f70bd0 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 22 Jun 2023 12:35:34 +0000 >Subject: [PATCH] Bug 34247: Improve translation of notice character count > >This patch restructures the template markup around the part of the >notice edit screen where the system tracks how many characters have been >entered in an SMS message. The change is intended to make translation >easier. > >To test, apply the patch and run the translation script to update the >.po files, e.g. > >perl misc/translator/translate update fr-FR > >Check the updated .po files: > >- In fr-FR-staff-prog.po there should not be a line with the string "160 > characters" >- In fr-FR-messages.po the string should have been picked up like this: > > msgid "{content_length} / 160 characters" > msgstr "" > >- Add a translation to fr-FR-messages.pl and install the updated > translation: > > perl misc/translator/translate install fr-FR > >- Switch to the update language in the staff interface and go to Tools -> > Notices. Edit any notice and expand the "SMS" block. (you may be asked > to enable SMSSendDriver). >- Confirm that the "X/160 characters" text updates correctly as you > enter content into the textarea. Confirm that the same is true when > you switch to your updated translation. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 7 ++++--- > 1 file changed, 4 insertions(+), 3 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 7ffbee6dd5..f2e6eeca38 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt >@@ -588,10 +588,11 @@ > [% IF letter.message_transport_type == 'sms' %] > <span class="sms_counter" id="sms_counter_[% lang | html %]"> > [% IF letter.content && letter.content.length > 0 %] >- [% letter.content.length | html %] >+ [% tx("{content_length} / 160 characters", {content_length = letter.content.length} ) %] > [% ELSE %] >- 0 >- [% END %]/160 characters</span> >+ [% tx("{content_length} / 160 characters", {content_length = 0} ) %] >+ [% END %] >+ </span> > [% END %] > <table> > <tr> >-- >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 34247
:
153288
|
154307
|
155075