Gentoo Archives: gentoo-user

From: gevisz <gevisz@×××××.com>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Unwelcomed non-native language support
Date: Fri, 29 May 2015 16:20:24
Message-Id: CA+t6X7cn-oyWJU7aEk0VSKx4=L4uS-ue_vMdk1W5Nm4t+gcujw@mail.gmail.com
In Reply to: Re: [gentoo-user] Unwelcomed non-native language support by Mick
1 2015-05-29 17:46 GMT+03:00 Mick <michaelkintzios@×××××.com>:
2 > On Friday 29 May 2015 05:24:49 Gevisz wrote:
3 >> On Fri, 29 May 2015 00:41:08 +0200 Volker Armin Hemmann
4 > <volkerarmin@××××××××××.com> wrote:
5 >> > Am 28.05.2015 um 17:35 schrieb gevisz:
6 >> > > In my everyday work at the computer, I read
7 >> > > and type at three or even four different languages.
8 >> > >
9 >> > > However, I do want to have all program menues
10 >> > > and system messages only in English.
11 >> > >
12 >> > > So, when I found out that it can be achieved by
13 >> > > setting -nls USE flag at my make.conf file, I did
14 >> > > it, recompiled the system and for a few weeks
15 >> > > enjoyed the full control of my Gentoo system.
16 >> > >
17 >> > > (As far as I can remember the gettext package
18 >> > > was successfully depcleaned from my Gentoo
19 >> > > system just after that.)
20 >> > >
21 >> > > However, after those few weeks (and some system
22 >> > > updates), I have noticed that my system started
23 >> > > to translate some "system" messages into one of
24 >> > > the languages I use but which is not my native language.
25 >> > >
26 >> > > Moreover, running
27 >> > > $ equery depends gettext
28 >> > > I get about two fullscreens of packages that supposedly
29 >> > > depend on gettext. Nevertheless, in all of them the -nls
30 >> > > USE flag is either unset or absent.
31 >> > >
32 >> > > I have tried to depclean the gettext package from my
33 >> > > system once again but portage just ignored my
34 >> > > $ emerge --depclean gettext
35 >> > > command.
36 >> > >
37 >> > > I think that it is some kind of a bug in the portage tree:
38 >> > > when I set -nls USE flag globally, I do expect that the "system"
39 >> > > messages will appear in English only and will not be translated
40 >> > > in any other language, but the system understands that as
41 >> > > I would have asked for a "non-native" language support.
42 >> > >
43 >> > > Of course, this is not my main problem in this life, but every
44 >> > > time I get the "system" messages translated into my non-native
45 >> > > language, I feel as I get a reminder that I do not have a full
46 >> > > control of my Gentoo system.
47 >> > >
48 >> > > So, my questions are:
49 >> > > 1. Is it a bug?
50 >> > > 2. How can I get rid of those unwelcomed translations in the right way.
51 >> >
52 >> > 1. If a package hard depends on gettext, you can fiddle around with
53 >> > useflags as much as you want, it won't change. Not a bug. Just the way
54 >> > it is.
55 >>
56 >> If a package hard depend on gettext, it is a bug, IMHO.
57 >>
58 >> > 2. Environment variables. Set them. LANG, LANGUAGE and of course LC_ALL
59 >>
60 >> $ echo $LANG
61 >> en_US.UTF-8
62 >> $ echo $LANGUAGE
63 >> %%% This environment variable is not set
64 >> $ echo $LC_ALL
65 >> %%% This environment variable is not set
66 >>
67 >> Why the system suddenly decided that my native language is one of
68 >> the easten-europien ones, then?
69 >>
70 >> And a month or two ago, all the system messages was in English
71 >> with exactly the same evironment variables setting. (And packages
72 >> did not hard-depend on gettext.) Strange.
73 >
74 > Do you get anything unexpected when you run 'locale'?
75
76 Nothing. (Thank you for your question.)
77
78 I have just re-read the Gentoo Localization Guide
79 (https://wiki.gentoo.org/wiki/Localization/Guide)
80 and checked what I have in my /etc/env.d/02locale
81 file: every possible option, except for LC_COLLATE
82 and LC_ALL, is set to en_US.UTF-8. Here is its full
83 content:
84
85 LANG="en_US.UTF-8"
86 LC_CTYPE="en_US.UTF-8"
87 LC_NUMERIC="en_US.UTF-8"
88 LC_TIME="en_US.UTF-8"
89 LC_COLLATE=C
90 LC_MONETARY="en_US.UTF-8"
91 LC_MESSAGES="en_US.UTF-8"
92 LC_PAPER="en_US.UTF-8"
93 LC_NAME="en_US.UTF-8"
94 LC_ADDRESS="en_US.UTF-8"
95 LC_TELEPHONE="en_US.UTF-8"
96 LC_MEASUREMENT="en_US.UTF-8"
97 LC_IDENTIFICATION="en_US.UTF-8"
98
99 Here is what I get from
100 $ locale
101 LANG=en_US.UTF-8
102 LC_CTYPE=en_US.UTF-8
103 LC_NUMERIC=en_US.UTF-8
104 LC_TIME=en_US.UTF-8
105 LC_COLLATE=C
106 LC_MONETARY=en_US.UTF-8
107 LC_MESSAGES=en_US.UTF-8
108 LC_PAPER=en_US.UTF-8
109 LC_NAME=en_US.UTF-8
110 LC_ADDRESS=en_US.UTF-8
111 LC_TELEPHONE=en_US.UTF-8
112 LC_MEASUREMENT=en_US.UTF-8
113 LC_IDENTIFICATION=en_US.UTF-8
114 LC_ALL=
115
116 I am almost giving up on this issue.

Replies

Subject Author
Re: [gentoo-user] Unwelcomed non-native language support Mick <michaelkintzios@×××××.com>