gufw installs translation files in /usr/share/locale-langpack

Bug #729814 reported by Daniel Nylander
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gufw
Fix Released
Undecided
Unassigned
gui-ufw (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

gufw installs translation files in /usr/share/locale-langpack, they should reside in /usr/share/locale

$ dpkg -L gufw
...
/usr/share/locale-langpack
/usr/share/locale-langpack/lv
/usr/share/locale-langpack/lv/LC_MESSAGES
/usr/share/locale-langpack/lv/LC_MESSAGES/gufw.mo
/usr/share/locale-langpack/fr
/usr/share/locale-langpack/fr/LC_MESSAGES
/usr/share/locale-langpack/fr/LC_MESSAGES/gufw.mo
/usr/share/locale-langpack/ast
/usr/share/locale-langpack/ast/LC_MESSAGES
/usr/share/locale-langpack/ast/LC_MESSAGES/gufw.mo
/usr/share/locale-langpack/fo
/usr/share/locale-langpack/fo/LC_MESSAGES
/usr/share/locale-langpack/fo/LC_MESSAGES/gufw.mo
/usr/share/locale-langpack/ja
/usr/share/locale-langpack/ja/LC_MESSAGES
/usr/share/locale-langpack/ja/LC_MESSAGES/gufw.mo
...
etc.

Related branches

Revision history for this message
costales (costales) wrote :

I have a lot of doubts about this directory. Could anybody help us with this? thanks! ;)

Changed in gui-ufw (Ubuntu):
status: New → Opinion
costales (costales)
Changed in gui-ufw (Ubuntu):
status: Opinion → Invalid
Revision history for this message
David Planella (dpm) wrote :

Applications should generally install their translations on /usr/share/locale, or to be more correct, to a location specified by the --prefix option at build time (i.e. $prefix/locale).

The /usr/share/locale-langpack directory is an Ubuntu-specific feature to allow translations be shipped in language packs.

However, this only applies to packages in the main repository, and not to packages in universe, which should ship their translations in /usr/share/locale (well, $prefix/locale).

In any case, the /usr/share/locale-langpack should never be hardcoded in an upstream application.

The merge proposal submitted a while ago in this branch should fix this issue:

https://code.launchpad.net/~dpm/gui-ufw/improve-i18n/+merge/33303

It's just a matter of modifying the setup.py file to use python-distutils-extra and using standard practices instead of re-writing code to manage translations there.

I'll be more than happy to help further on this.

Changed in gui-ufw:
status: New → Confirmed
costales (costales)
Changed in gui-ufw:
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gui-ufw - 11.10.0-0ubuntu1

---------------
gui-ufw (11.10.0-0ubuntu1) oneiric; urgency=low

  * New upstram release (LP: #776518, #729814).
  * debian/rules: use python2 sequence.
  * debian/control: add python (>= 2.6.6-3~) to Build-Depends
    field.
  * debian/control: remove Build-Depends-Indep field.
  * Bump Standards-Version to 3.9.2.
 -- Devid Antonio Filoni <email address hidden> Tue, 12 Jul 2011 19:19:42 +0200

Changed in gui-ufw (Ubuntu):
status: Invalid → Fix Released
costales (costales)
Changed in gui-ufw:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.