← Back to team overview

gufw-developers team mailing list archive

[Bug 729814] Re: gufw installs translation files in /usr/share/locale-langpack

 

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

-- 
You received this bug notification because you are a member of Gufw
Developers, which is subscribed to gui-ufw in ubuntu.
https://bugs.launchpad.net/bugs/729814

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

Status in Gufw:
  Confirmed
Status in “gui-ufw” package in Ubuntu:
  Invalid

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.



References