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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/