https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38900
David Nind <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|translation script explodes |Translation script explodes |without meaningful error |without a meaningful error |when "incorrect" structure |when an "incorrect" |is found |structure is found Text to go in the| |This fixes the translation release notes| |script so that it now | |provides a more meaningful | |error when updating a | |language that has incorrect | |strings. It now identifies | |exactly where the problem | |comes from, making it | |easier to fix the problem. | | | |An example of the updated | |error message: | | | | gulp | |po:update --lang LANG | | .. | | | |Incorrect structure found | |at | |./koha-tmpl/intranet-tmpl/p | |rog/en/modules/admin/branch | |es.tt:230: '<option | |value="*" ' at | |misc/translator/xgettext.pl | |line 124, <$INPUT> line 65. | | .. CC| |[email protected] --- Comment #6 from David Nind <[email protected]> --- Full error after applying the patch: gulp po:update --lang fr-CA [19:17:24] Using gulpfile /kohadevbox/koha/gulpfile.js [19:17:24] Starting 'po:update'... [19:17:24] Starting 'po_update_marc_marc21'... [19:17:24] Starting 'po_update_marc_unimarc'... [19:17:24] Starting 'po_update_staff'... [19:17:24] Starting 'po_update_opac'... [19:17:24] Starting 'po_update_pref'... [19:17:24] Starting 'po_update_messages'... [19:17:24] Starting 'po_update_messages_js'... [19:17:24] Starting 'po_update_installer'... [19:17:24] Starting 'po_update_installer_marc21'... [19:17:24] Starting 'po_update_installer_unimarc'... [19:17:27] Finished 'po_update_installer_unimarc' after 2.43 s [19:17:27] Finished 'po_update_installer' after 2.55 s [19:17:27] Finished 'po_update_installer_marc21' after 2.59 s [19:17:27] Finished 'po_update_pref' after 2.6 s [19:17:27] Finished 'po_update_messages_js' after 2.81 s [19:17:27] Finished 'po_update_opac' after 3.3 s [19:17:27] 'po_update_staff' errored after 3.31 s [19:17:27] Error: Command failed: misc/translator/xgettext.pl --charset=UTF-8 -F -o /tmp/koha-OQ7riK/Koha-staff-prog.pot -f /tmp/koha-OQ7riK/files Incorrect structure found at ./koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt:230: '<option value="*" ' at misc/translator/xgettext.pl line 124, <$INPUT> line 65. at ChildProcess.exithandler (node:child_process:422:12) at ChildProcess.emit (node:events:517:28) at ChildProcess.emit (node:domain:552:15) at maybeClose (node:internal/child_process:1098:16) at ChildProcess._handle.onexit (node:internal/child_process:303:5) at Process.callbackTrampoline (node:internal/async_hooks:128:17) [19:17:27] 'po:update' errored after 3.32 s -- You are receiving this mail because: 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/
