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 1OSDNR-00079N-Ui for garchives@archives.gentoo.org; Fri, 25 Jun 2010 18:11:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 697CFE0797; Fri, 25 Jun 2010 18:11:17 +0000 (UTC) Received: from s15216962.onlinehome-server.info (forum.psychotherapie.org [217.160.22.205]) by pigeon.gentoo.org (Postfix) with ESMTP id 1D121E0797 for ; Fri, 25 Jun 2010 18:11:14 +0000 (UTC) Received: (from uucp@localhost) by s15216962.onlinehome-server.info (8.13.3/8.13.3) with UUCP id o5PIBE05025802 for gentoo-user@lists.gentoo.org; Fri, 25 Jun 2010 20:11:14 +0200 Received: (from weigelt@localhost) by nibiru.metux.de (8.12.10/8.12.10) id o5PI5I9t002161 for gentoo-user@lists.gentoo.org; Fri, 25 Jun 2010 20:05:18 +0200 Date: Fri, 25 Jun 2010 20:05:18 +0200 From: Enrico Weigelt To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Questions regarding the usage of multiple locales Message-ID: <20100625180518.GB21445@nibiru.local> References: <1277169274.32558.6.camel@ianto-gentoo-amd.home> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1277169274.32558.6.camel@ianto-gentoo-amd.home> User-Agent: Mutt/1.4.1i X-Terror: bin laden, kill bush, Briefbombe, Massenvernichtung, KZ, X-Nazi: Weisse Rasse, Hitlers Wiederauferstehung, 42, X-Antichrist: weg mit schaeuble, ausrotten, heiliger krieg, al quaida, X-Killer: 23, endloesung, Weltuntergang, X-Doof: wer das liest ist doof X-Archives-Salt: 7f6b77d3-55cf-437c-b592-f9ce330bae30 X-Archives-Hash: 0e50f511a8d5d5bc56e863cec2800169 * Christopher Swift wrote: > Is it at all possible to set a locale, i.e. cy_GB to be the primary LANG > parameter but if there is no .po for cy_GB or the .po is incomplete to > use en_GB as a backup instead of the default en_US? gettext allows to specify fallback languages: http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable Actually, I dont know if this works for your situation. Conceptionally, you want some kind of overlay. You could do this by a little script, which compiles several locales to a "virtual" one, eg. by creating symlinks or compiling to new .po files using msmerge: http://www.gnu.org/software/gettext/manual/gettext.html#Updating BUT: these files would become dynamic data, which is not handled (eg. automatic removed on uninstall) by portage. cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service - http://www.metux.de/ --------------------------------------------------------------------- Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ ---------------------------------------------------------------------