Gentoo Archives: gentoo-devhelp

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-devhelp@l.g.o
Subject: [gentoo-devhelp] Re: LINGUAS vs LANGUAGES
Date: Fri, 31 Jul 2009 15:27:13
Message-Id: h4v2fl$74f$
In Reply to: [gentoo-devhelp] Re: LINGUAS vs LANGUAGES by Steven J Long
On 07/21/2009 01:13 PM, Steven J Long wrote:
> Nikos Chantziaras wrote: > >> Thanks. I ended up doing it this way, though with only one loop in >> src_install(), which seems to be a bit more efficient and shorter: >> >> >> LANGUAGES="de" >> for i in ${LANGUAGES}; do >> IUSE="${IUSE} linguas_${i}" >> done >> > Just on a side-note (not saying it's how you want to do this one), this is > something that BASH arrays are nice for (saving another loop): > $ foo=(bar baz quux) > $ echo "prefixed: '${foo[*]/#/pfx_}'" > prefixed: 'pfx_bar pfx_baz pfx_quux' > > Parameter Expansion (incl on arrays) is discussed more at: >
(Late reply because I was away on vacation.) I ended up removing LINGUAS support altogether and installing the extra language file regardless of the user's LINGUAS. The Gentoo developer maintaining the ebuild said that's how it should be done when the package only supports two languages.