datatables_20.1200050.js:32 Uncaught ReferenceError: __ is not defined at datatables_20.1200050.js:32
Confirmed on /cgi-bin/koha/sco/sco-main.pl I wonder if this could affect translations, as __( is used for Javascript translation.
I was wondering that as well. What's the difference between __() and _()? I've noticed some cases where they'll both be used close to each other.
__() is used in .js files, _() in TT files.
(In reply to Katrin Fischer from comment #3) > __() is used in .js files, _() in TT files. Ahh interesting. I wish I remembered where I saw the combo..
Created attachment 121687 [details] [review] Bug 28488: Javascript error in self-checkout (__ is not defined) This patch adds inclusion of the internationalization JavaScript which is required by the newest version of the DataTables include. It references the double-underscore function provided by i18n.js. To test, apply the patch and log into the self-checkout system as a user with checkouts. The table of checkouts should display correctly and there should be no JavaScript errors in the console.
Created attachment 121695 [details] [review] Bug 28488: Javascript error in self-checkout (__ is not defined) This patch adds inclusion of the internationalization JavaScript which is required by the newest version of the DataTables include. It references the double-underscore function provided by i18n.js. To test, apply the patch and log into the self-checkout system as a user with checkouts. The table of checkouts should display correctly and there should be no JavaScript errors in the console. Signed-off-by: David Nind <david@davidnind.com>
Created attachment 121865 [details] [review] Bug 28488: Javascript error in self-checkout (__ is not defined) This patch adds inclusion of the internationalization JavaScript which is required by the newest version of the DataTables include. It references the double-underscore function provided by i18n.js. To test, apply the patch and log into the self-checkout system as a user with checkouts. The table of checkouts should display correctly and there should be no JavaScript errors in the console. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Pushed to master for 21.11, thanks to everybody involved!
Pushed to 21.05.x for 21.05.01
Pushed to 20.11.x for 20.11.07
Not backported to oldoldstable (20.05.x). Feel free to ask if it's needed.