Bugzilla – Attachment 118327 Details for
Bug 27816
"Click to edit" in Point of sale is untranslatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27816: "Click to edit" in Point of sale is untranslatable
Bug-27816-Click-to-edit-in-Point-of-sale-is-untran.patch (text/plain), 2.43 KB, created by
Martin Renvoize (ashimema)
on 2021-03-16 14:36:10 UTC
(
hide
)
Description:
Bug 27816: "Click to edit" in Point of sale is untranslatable
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-03-16 14:36:10 UTC
Size:
2.43 KB
patch
obsolete
>From d494673e609bd2e546dead52f3d7d7fc53b39048 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 15 Mar 2021 17:06:16 +0000 >Subject: [PATCH] Bug 27816: "Click to edit" in Point of sale is untranslatable >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch adds an option to the Point of sale jEditable configuration >to explicitly set the title attribute to "Click to edit." This will >allow the string to be picked up for translation. > >To test, apply the patch and test that the correct string is >translated. In this example I'm testing fr-FR: > > - Update a translation: > > > cd misc/translator > > perl translate update fr-FR > > The "Click to edit" string should already have been translated, so > it's not necessary to update the .po file. > > - Install the updated translation: > > > perl translate install fr-FR > >In the staff interface, switch to the language you're testing and open >the point of sale page. Add some items for purchase. They should appear >in the "This sale" table. Hover your mouse over the values in the "Coût" >and "Quantité" columns. You should see the translated string, "Cliquer >pour modifier." > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >index 6637b0054b..5e35eadee2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >@@ -307,7 +307,8 @@ > type : 'text', > pattern : "^\\d+(\.\\d{2})?$", > onblur : 'submit', >- width : "8em" >+ width : "8em", >+ tooltip : _("Click to edit") > }); > local.$('.editable_int').editable( function(value, settings) { > var aPos = local.fnGetPosition( this ); >@@ -317,7 +318,8 @@ > type : 'text', > pattern : "[0-9]*", > onblur : 'submit', >- width : "4em" >+ width : "4em", >+ tooltip : _("Click to edit") > }); > }, > "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { >-- >2.20.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 27816
:
118251
| 118327