[Bug 41325] New: register.tt is broken by translation
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41325 Bug ID: 41325 Summary: register.tt is broken by translation Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Point of Sale Assignee: koha-bugs@lists.koha-community.org Reporter: baptiste.wojtkowski@biblibre.com QA Contact: testopia@bugs.koha-community.org CC: martin.renvoize@openfifth.co.uk following template is broken since it was created in Bug 23355 after translation koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt 117 <td>{ "type": "credit", "identifier": "[%- accountline.credit_number | html -%]", "description": "[%- PROCESS account_type_description account=accountline -%] ([% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type ) | html %])", "amount": "[% accountline.amount * -1 | $Price %]", "timestamp": "[% accountline.timestamp | $KohaDates with_hours => 1 %]" }</td> For example in french: <td>{ "type" : "crédit", "identifiant" : "[%- accountline.credit_number | html -%]", "description" : "[%- PROCESS ac count_type_description account=accountline -%] ([% AuthorisedValues.GetByCode( 'PAYMENT_TYPE', accountline.payment_ty pe ) | html %])", "montant" : "[% accountline.amount * -1 | $Price %]", "horodatage" : "[% accountline.timestamp | $K ohaDates with_hours => 1 %]" }</td> Since this is in plain HTML, strings like "timestamp" get translated. Hence, while reading in this part of the code 367 if ( group ) { 368 var details = JSON.parse(rows.data().pluck(1).pop()); 369 var identifier = details.identifier || group; 370 return $('<tr class="'+details.type+'"/>') -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41325 Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |23355 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23355 [Bug 23355] Add a 'cashup' process to accounts -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org