Create and install locale files with Python 3
Bug #1922975 reported by
Jeff Davis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Won't Fix
|
Medium
|
Unassigned | ||
3.9 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The Python scripts in build/i18n/scripts don't quite work with Python 3, which is an obstacle to generating and installing translations on Ubuntu 20.04.
I was able to get the scripts working with some minor changes, which I will share in a moment.
Changed in evergreen: | |
assignee: | nobody → Jane Sandberg (sandbej) |
tags: | added: i18n |
no longer affects: | evergreen/3.7 |
Changed in evergreen: | |
status: | Confirmed → Won't Fix |
Changed in evergreen: | |
milestone: | 3.8.1 → none |
To post a comment you must log in.
Working branch user/jeffdavis/ lp1922975- build-i18n- scripts- python3 should make build/i18n/scripts Python3-compatible:
https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ jeffdavis/ lp1922975- build-i18n- scripts- python3
To test, do `cd build/i18n && make LOCALE=fr-CA install` (you may need to do configure && make first). In my Ubuntu 20.04 environment, this fails with current master, but succeeds if I apply the changes from my working branch. The issue does not arise on Ubuntu 18.04, which will use Python 2 by default.
I'm not sure how to make the changes available, since different environments need different versions of these scripts.