Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413749 - gnome2-xxxx.eclass: support LINGUAS through IUSE_EXPAND
Summary: gnome2-xxxx.eclass: support LINGUAS through IUSE_EXPAND
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-27 16:03 UTC by Joerg Schaible
Modified: 2012-11-03 11:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Schaible 2012-04-27 16:03:01 UTC
gnucash respects the LINGUAS variable of /etc/make.conf, but does not support it with IUSE. My system language is English, but I prefer for the desktop applications German. Therefore my LINGUAS variable is set to "en" and I can add German individually with use flags. This works perfectly for the most applications (KDE stuff, firefox, opera, cups, avidemux, ...), but unfortunately not for gnucash. Before compiling a new version, I have to modify manually the LINGUAS variable in /etc/make.conf to get German support otherwise it is simply missing and I get English only.

Reproducible: Always

Steps to Reproduce:
1. Set LINGUAS in /etc/make.conf to "en"
2. emerge gnucash
3. Start gnucash with "LANG=de_DE.UTF-8 gnucash &"
Actual Results:  
Application menu is in English

Expected Results:  
Support for linguas in IUSE, to set "+linguas_de" in /etc/make/portage.use for gnucash. German application menu after starting the application with German locale.
Comment 1 Pacho Ramos gentoo-dev 2012-04-27 18:52:36 UTC
Why don't you set LINGUAS specifying both langs?
Comment 2 Joerg Schaible 2012-04-28 09:06:39 UTC
Because I don't want German locales for most of the applications. For me it does not make sense to have German man pages for the command line tools and it is annoying if Konqueror always presents an alternative for "man:/bash" instead of displaying the English one directly.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-06-23 09:23:08 UTC
Most (if not all) gnome ebuilds do not support linguas through IUSE_EXPAND variable. We could maybe have an eclass add support for this automatically but this would change quite a lot of ebuilds so please bring this up to gentoo-dev mailing list as it is unlikely that we will modify ebuilds one by one to satisfy such a specific need.

Please note that you can achieve the same result with portage package.env file.
Comment 4 Mart Raudsepp gentoo-dev 2012-06-23 13:01:58 UTC
LINGUAS is a standard GNU variable for this, and integration with USE flags does not make much sense at this point of time without some sort of heavy PM support. We can not reasonably somehow peek into tarballs which languages are supported and deal with getting LINGUAS IUSE_EXPAND updated all the time on each bump, with changes in your global LINGUAS setting causing recompiles of everything (while you could just localepurge if trimming it up or something).
The LINGUAS USE expand is primarily used for ebuilds to be able to do conditional downloads of language packs in their SRC_URI declaration, but with gettext translations included in the main tarball this is not necessary.

I vote WONTFIX or CANTFIX.
Comment 5 Joerg Schaible 2012-06-28 17:44:48 UTC
Well, since I use normally KDE, this behavior was simply surprising. I have no problems to maintain a package.env for some view desktop applications/packages I'd like to have an additional language and which expect LINGUAS to be set in the environment.
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-11-03 11:29:36 UTC
Closing wontfix per comments and (old) -dev ml discussions.