[Koha-bugs] [Bug 25067] Move PO file manipulation code into gulp tasks
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Aug 29 14:35:22 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25067
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Signed Off |Failed QA
CC| |mtj at kohaaloha.com
--- Comment #49 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
1. Run `yarn install` and install Locale::XGettext::TT2
It looks like Locale::XGettext::TT2 has no packages for Debian yet, can you
confirm?
Ended up installatin from CPAN.
Adding Mason.
2. Run `gulp po:update`
$ gulp po:update
-bash: gulp: command not found
I've tried following this:
https://gulpjs.com/docs/en/getting-started/quick-start/
$ gulp po:update
Finishes this time.
3. Verify the contents of updated PO files
I have verified the contents of the de-DE files.
Problem: It appears that a strings have jumped from one po file to another,
requiring a lot of retranslations. Namely this seems to be the value_builder
plugins that are no longer in the MARC flavor files but appear in staff now:
Example string:
twentyfour track
This is now in the UNIMARC file, but with this patch appears in staff.
Question: Reviewing the pref po looks like before, correct?
4. Run `cd misc/translator && ./translate install <lang>`
Testing with de-DE again.
Question: do we need a follow-up to change the package commands as well?
Activated the language and the language switcher in the preferences.
5. Verify that all (templates, sysprefs, xslt, installer files) is
correctly translated
! System preferences: remained English
Staff GUI: OK
OPAC GUI: OK
XSLT in staff and OPAC: OK
messages JS: OK (verified with OPAC cart strings)
messages: OK (verified with "item" and "items" in staff result list)
installer: OK (tested with es-ES)
installed sample files: OK (tested with notices and frameworks)
Preferences don't translate.
Stopping here for now because of the problem with prefs.
6. Run `gulp po:create --lang <lang>` and verify that it created all PO
files for that language
7. Run `prove t/misc/translator`
Test Summary Report
-------------------
t/misc/translator/xgettext-pref.t (Wstat: 3840 Tests: 16 Failed: 15)
Failed tests: 1, 3-16
Non-zero exit status: 15
Files=3, Tests=56, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.34 cusr 0.07
csys = 0.45 CPU)
Result: FAIL
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list