[Koha-bugs] [Bug 31694] MARC overlay rules presets don't change anything if presets are translated

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Nov 19 22:05:08 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31694

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at davidnind.com

--- Comment #27 from David Nind <david at davidnind.com> ---
I have tested and got things to work as far as I could tell. Since translation
is not something all that familiar to me, may be a second sign off would be
useful?

Testing notes using koha-testing-docker (KTD):

1. Not related to this bug. With the recent changes to languages in master, the
normal commands for updating and installing a language didn't work as expected
for me. See [1] for the errors and my work around.

2. After applying the patches, but before step 7 of the main patch, I had to
update and install the language again.


[1] Installing and updating translations using KTD
==================================================

Error when using gulp po:update
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I got an error when using the command (maybe need to access using ktd --root
--shell ?):

kohadev-koha at kohadevbox:koha(bz31694)$ gulp po:update
[20:04:18] Using gulpfile /kohadevbox/koha/gulpfile.js
[20:04:18] Starting 'po:update'...
[20:04:18] Starting 'po_update_marc_marc21'...
[20:04:18] Starting 'po_update_marc_unimarc'...
[20:04:18] Starting 'po_update_staff'...
[20:04:18] Starting 'po_update_opac'...
[20:04:18] Starting 'po_update_pref'...
[20:04:18] Starting 'po_update_messages'...
[20:04:18] Starting 'po_update_messages_js'...
[20:04:18] Starting 'po_update_installer'...
[20:04:18] Starting 'po_update_installer_marc21'...
[20:04:18] Starting 'po_update_installer_unimarc'...
[20:04:25] Finished 'po_update_installer_unimarc' after 6.41 s
[20:04:29] Finished 'po_update_installer_marc21' after 10 s
[20:04:29] Finished 'po_update_installer' after 10 s
[20:04:29] Finished 'po_update_marc_unimarc' after 10 s
[20:04:29] Finished 'po_update_pref' after 10 s
[20:04:29] Finished 'po_update_marc_marc21' after 10 s
[20:04:32] Finished 'po_update_messages_js' after 14 s
[20:04:32] Finished 'po_update_opac' after 14 s
[20:04:34] 'po_update_messages' errored after 15 s
[20:04:34] Error: Command failed: msgmerge --backup=off --no-wrap --quiet -F
--update misc/translator/po/vi-VN-messages.po misc/translator/Koha-messages.pot
misc/translator/Koha-messages.pot:11:35: syntax error
misc/translator/Koha-messages.pot:11: keyword "n" unknown
misc/translator/Koha-messages.pot:12: end-of-line within string
msgmerge: found 3 fatal errors

    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 Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:517:28)
    at Socket.emit (node:domain:552:15)
    at Pipe.<anonymous> (node:net:350:12)
    at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)
[20:04:34] 'po:update' errored after 15 s


Permission errors when using misc/translator/translate
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I also got permission errors when using misc/translator/translate:

misc/translator/translate update fr-FR

misc/translator/translate install fr-FR
mkdir /kohadevbox/koha/misc/translator/po/fr_FR: Permission denied at
/kohadevbox/koha/misc/translator/LangInstaller.pm line 454.

sudo misc/translator/translate  install fr-FR
Can't locate C4/Context.pm in @INC (you may need to install the C4::Context
module) (@INC contains: /kohadevbox/koha/misc/translator /etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1
/usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32
/usr/share/perl/5.32 /usr/local/lib/site_perl) at
/kohadevbox/koha/misc/translator/LangInstaller.pm line 22.
BEGIN failed--compilation aborted at
/kohadevbox/koha/misc/translator/LangInstaller.pm line 22.
Compilation failed in require at ./translate line 28.
BEGIN failed--compilation aborted at ./translate line 28.


Work around
~~~~~~~~~~~

In the end, I accessed KTD using root to update and install languages.

david at david-thinkpad-t14:~/git-koha/koha-testing-docker$ ktd --root --shell
root at kohadevbox:kohadevbox$ cd koha
root at kohadevbox:koha$ misc/translator/translate update fr-FR
root at kohadevbox:koha$ misc/translator/translate install fr-FR
root at kohadevbox:koha$ chown -R kohadev-koha:kohadev-koha misc/translator/po

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list