From: | Enrico Weigelt <weigelt@×××××.de> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Questions regarding the usage of multiple locales | ||
Date: | Fri, 25 Jun 2010 18:11:46 | ||
Message-Id: | 20100625180518.GB21445@nibiru.local | ||
In Reply to: | [gentoo-user] Questions regarding the usage of multiple locales by Christopher Swift |
1 | * Christopher Swift <christopher.swift@×××××.com> wrote: |
2 | |
3 | > Is it at all possible to set a locale, i.e. cy_GB to be the primary LANG |
4 | > parameter but if there is no .po for cy_GB or the .po is incomplete to |
5 | > use en_GB as a backup instead of the default en_US? |
6 | |
7 | gettext allows to specify fallback languages: |
8 | |
9 | http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable |
10 | |
11 | Actually, I dont know if this works for your situation. |
12 | |
13 | Conceptionally, you want some kind of overlay. You could do this |
14 | by a little script, which compiles several locales to a "virtual" |
15 | one, eg. by creating symlinks or compiling to new .po files |
16 | using msmerge: |
17 | |
18 | http://www.gnu.org/software/gettext/manual/gettext.html#Updating |
19 | |
20 | BUT: these files would become dynamic data, which is not handled |
21 | (eg. automatic removed on uninstall) by portage. |
22 | |
23 | |
24 | cu |
25 | -- |
26 | --------------------------------------------------------------------- |
27 | Enrico Weigelt == metux IT service - http://www.metux.de/ |
28 | --------------------------------------------------------------------- |
29 | Please visit the OpenSource QM Taskforce: |
30 | http://wiki.metux.de/public/OpenSource_QM_Taskforce |
31 | Patches / Fixes for a lot dozens of packages in dozens of versions: |
32 | http://patches.metux.de/ |
33 | --------------------------------------------------------------------- |