1 |
just set LANGUAGE and LC_ALL. |
2 |
|
3 |
2015-05-29 6:35 GMT+02:00 Gevisz <gevisz@×××××.com>: |
4 |
|
5 |
> On Thu, 28 May 2015 20:07:55 -0400 Mike Gilbert <floppym@g.o> |
6 |
> wrote: |
7 |
> |
8 |
> > On Thu, May 28, 2015 at 6:41 PM, Volker Armin Hemmann |
9 |
> > <volkerarmin@××××××××××.com> wrote: |
10 |
> > > Am 28.05.2015 um 17:35 schrieb gevisz: |
11 |
> > >> In my everyday work at the computer, I read |
12 |
> > >> and type at three or even four different languages. |
13 |
> > >> |
14 |
> > >> However, I do want to have all program menues |
15 |
> > >> and system messages only in English. |
16 |
> > >> |
17 |
> > >> So, when I found out that it can be achieved by |
18 |
> > >> setting -nls USE flag at my make.conf file, I did |
19 |
> > >> it, recompiled the system and for a few weeks |
20 |
> > >> enjoyed the full control of my Gentoo system. |
21 |
> > >> |
22 |
> > >> (As far as I can remember the gettext package |
23 |
> > >> was successfully depcleaned from my Gentoo |
24 |
> > >> system just after that.) |
25 |
> > >> |
26 |
> > >> However, after those few weeks (and some system |
27 |
> > >> updates), I have noticed that my system started |
28 |
> > >> to translate some "system" messages into one of |
29 |
> > >> the languages I use but which is not my native language. |
30 |
> > >> |
31 |
> > >> Moreover, running |
32 |
> > >> $ equery depends gettext |
33 |
> > >> I get about two fullscreens of packages that supposedly |
34 |
> > >> depend on gettext. Nevertheless, in all of them the -nls |
35 |
> > >> USE flag is either unset or absent. |
36 |
> > >> |
37 |
> > >> I have tried to depclean the gettext package from my |
38 |
> > >> system once again but portage just ignored my |
39 |
> > >> $ emerge --depclean gettext |
40 |
> > >> command. |
41 |
> > >> |
42 |
> > >> I think that it is some kind of a bug in the portage tree: |
43 |
> > >> when I set -nls USE flag globally, I do expect that the "system" |
44 |
> > >> messages will appear in English only and will not be translated |
45 |
> > >> in any other language, but the system understands that as |
46 |
> > >> I would have asked for a "non-native" language support. |
47 |
> > >> |
48 |
> > >> Of course, this is not my main problem in this life, but every |
49 |
> > >> time I get the "system" messages translated into my non-native |
50 |
> > >> language, I feel as I get a reminder that I do not have a full |
51 |
> > >> control of my Gentoo system. |
52 |
> > >> |
53 |
> > >> So, my questions are: |
54 |
> > >> 1. Is it a bug? |
55 |
> > >> 2. How can I get rid of those unwelcomed translations in the right |
56 |
> way. |
57 |
> > >> |
58 |
> > >> |
59 |
> > > |
60 |
> > > 1. if a package hard depends on gettext, you can fiddle around with |
61 |
> > > useflags as much as you want, it won't change. Not a bug. Just the way |
62 |
> > > it is. |
63 |
> > |
64 |
> > Sometimes it is a bug and the ebuild doesn't need gettext |
65 |
> > unconditionally. It takes some expertise to figure that out, however. |
66 |
> |
67 |
> I also think so. |
68 |
> |
69 |
> > > 2. environment variables. Set them. LANG, LANGUAGE and of course LC_ALL |
70 |
> > > |
71 |
> > |
72 |
> > I would suggest setting LANG=foo_BAR.UTF-8 and |
73 |
> > LC_MESSAGES=en_US.UTF-8. Where foo and BAR are your native language |
74 |
> > and locale. |
75 |
> |
76 |
> I have |
77 |
> # set LC_MESSAGES=en_US.UTF-8 |
78 |
> but it have not changed anything. |
79 |
> |
80 |
> Or shall I change it in some config files and reboot the system? |
81 |
> |
82 |
> |
83 |
> |