From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MWu0n-0006N8-OA for garchives@archives.gentoo.org; Fri, 31 Jul 2009 15:27:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3040E0499; Fri, 31 Jul 2009 15:27:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 799E1E0499 for ; Fri, 31 Jul 2009 15:27:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 2866066139 for ; Fri, 31 Jul 2009 15:27:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.524 X-Spam-Level: X-Spam-Status: No, score=-3.524 required=5.5 tests=[AWL=0.075, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i2g6DfU669Qi for ; Fri, 31 Jul 2009 15:27:05 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id CBEF766BCD for ; Fri, 31 Jul 2009 15:27:02 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MWu0V-0007NC-Rn for gentoo-devhelp@gentoo.org; Fri, 31 Jul 2009 15:26:56 +0000 Received: from athedsl-391450.home.otenet.gr ([79.131.81.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Jul 2009 15:26:55 +0000 Received: from realnc by athedsl-391450.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Jul 2009 15:26:55 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-devhelp@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-devhelp] Re: LINGUAS vs LANGUAGES Date: Fri, 31 Jul 2009 18:26:45 +0300 Organization: Lucas Barks Message-ID: References: <4A0D8068.3090304@arcor.de> <6142e6140905150801y7d9a6698obe04cb1c1dd01ca@mail.gmail.com> <4A0D99DC.1090502@googlemail.com> <23125183.lyQsYuCQA3@news.friendly-coders.info> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Development-related help X-BeenThere: gentoo-devhelp@gentoo.org X-BeenThere: gentoo-devhelp@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-391450.home.otenet.gr User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090730 Thunderbird/3.0b3 In-Reply-To: <23125183.lyQsYuCQA3@news.friendly-coders.info> Sender: news X-Archives-Salt: e311d8e5-0ecd-4fa2-818c-69c64f6f6b8a X-Archives-Hash: ea0ce434c28be780250f4de58bed63a8 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: > http://mywiki.wooledge.org/BashFAQ/073 (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.