Bug 32584

Summary: Can't update po files on master, because of missing UNIMARC files
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: I18N/L10NAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: bgkriegel, f.demians
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Katrin Fischer 2023-01-06 22:43:10 UTC
When following the instructions on https://wiki.koha-community.org/wiki/Translating_Koha#Updating_the_po_files_in_your_installation you currently have 2 errors running gulp po:update:

[22:41:06] Error: File not found with singular glob: /kohadevbox/koha/misc/translator/po/si-installer-UNIMARC.po (if this was purposeful, use `allowEmpty` option)
    at Glob.<anonymous> (/kohadevbox/koha/node_modules/glob-stream/readable.js:84:17)
    at Object.onceWrapper (events.js:520:26)
    at Glob.emit (events.js:400:28)
    at Glob.emit (domain.js:475:12)
    at Glob._finish (/kohadevbox/koha/node_modules/glob/glob.js:197:8)
    at done (/kohadevbox/koha/node_modules/glob/glob.js:182:14)
    at Glob._processSimple2 (/kohadevbox/koha/node_modules/glob/glob.js:688:12)
    at /kohadevbox/koha/node_modules/glob/glob.js:676:10
    at Glob._stat2 (/kohadevbox/koha/node_modules/glob/glob.js:772:12)
    at lstatcb_ (/kohadevbox/koha/node_modules/glob/glob.js:764:12)

When you create the file, you notice a second file missing:

[22:42:33] 'po_update_installer_unimarc' errored after 85 ms
[22:42:33] Error: File not found with singular glob: /kohadevbox/koha/misc/translator/po/tk-installer-UNIMARC.po (if this was purposeful, use `allowEmpty` option)
    at Glob.<anonymous> (/kohadevbox/koha/node_modules/glob-stream/readable.js:84:17)
    at Object.onceWrapper (events.js:520:26)
    at Glob.emit (events.js:400:28)
    at Glob.emit (domain.js:475:12)
    at Glob._finish (/kohadevbox/koha/node_modules/glob/glob.js:197:8)
    at done (/kohadevbox/koha/node_modules/glob/glob.js:182:14)
    at Glob._processSimple2 (/kohadevbox/koha/node_modules/glob/glob.js:688:12)
    at /kohadevbox/koha/node_modules/glob/glob.js:676:10
    at Glob._stat2 (/kohadevbox/koha/node_modules/glob/glob.js:772:12)
    at lstatcb_ (/kohadevbox/koha/node_modules/glob/glob.js:764:12)
[22:42:33] 'po:update' errored after 1.63 s

This hinders testing, but I also wonder why we are missing the files?
Comment 1 Frédéric Demians 2023-01-07 11:13:08 UTC
I confirm that those 2 files are missing:

misc/translator/po/si-installer-UNIMARC.po
misc/translator/po/tk-installer-UNIMARC.po