file conflict in mo files and license issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gufw |
Fix Released
|
Undecided
|
Unassigned | ||
gui-ufw (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
This package has a couple issues:
* Its translation files (the gufw.mo files, one for each language) are installed into /usr/share/
- FIX: This can be fixed by releasing a new verson of the package that installs the .mo files into the package's location: /usr/share/
* The source pkg in the archives contains .mo files instead of .po files. The proper appoach is for the src package to contain .po files in a directory named po/. that directory should to include a file named POTFILES.in that lists the path to every file with translatable messages. (Doing this enables intltool.) Then the .mo files need to be created on each build of the pkg. (Note, containing .mo files in the src package may be a license violation).
Cheers,
Kyle
Changed in gui-ufw (Ubuntu): | |
status: | New → Confirmed |
Changed in gui-ufw: | |
status: | New → In Progress |
Changed in gui-ufw (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in gui-ufw: | |
status: | In Progress → Fix Committed |
Changed in gui-ufw (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in gui-ufw: | |
status: | Fix Committed → Fix Released |
Hi,
I pushed a branch that should fix these problems. https:/ /code.launchpad .net/~knitzsche /gui-ufw/ i18n-l10n- fixes
The branch implements python- distutils- extra for i18n support.
With this branch, there is a po/ directory that contains LANG_CODE.po files and a POTFILES.in file.
The po files were downloaded from LP on 17 Dec. Here's the link: http:// launchpadlibrar ian.net/ 60806909/ launchpad- export. tar.gz
(Not sure how long that link will be good.)
Note that the branch also provides completed translations for zh_CN (Chinese/ Simplified) .
When you build the pkg, it creates gufw.mo files for each locale. These are automatically installed in the correct location: /usr/share/ locale/ LANG_CODE/
You can update translations by replacing the target po file (or po files) and running (from src pkg root dir):
'./setup.py build_i18n -m'
The source pkg still contains a locale-langpack/ directory, but I believe this is no longer referenced or needed and it should be deleted. (This is the directory that contains the .mo files, which should not be included in a source package.)
See merger proposal 44278.
Cheers,
Kyle