public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] LINGUAS
  2006-04-05 15:46   ` Matthias Bethke
@ 2006-04-05 21:03     ` Benno Schulenberg
  0 siblings, 0 replies; 26+ messages in thread
From: Benno Schulenberg @ 2006-04-05 21:03 UTC (permalink / raw
  To: gentoo-user

Matthias Bethke wrote:
> on Wednesday, 2006-04-05 at 14:50:29, you wrote:
> > Just put LINGUAS="fr en".  I'm unsure whether en-us is
> > recognized.
>
> The Localization Guide isn't very clear about the syntax of
> these, nor how to get a list of available codes. I guess the
> basic ones are the two-letter ISO codes as for locales, but is it
> "en-us", "en_US" or something?

The latter.  Grepping through the ebuilds for "LINGUAS" shows that 
it checks in some places for codes like pt_BR and zh_CN.  So the 
original poster could use LINGUAS="fr en en_US".

Benno
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
       [not found] <20060729145743.GA24325@brego.pewamo.office>
@ 2006-07-29 15:20 ` Alexander Skwar
  2006-07-29 20:41   ` Michael George
  2006-07-29 20:16 ` Richard Fish
  2006-07-29 20:41 ` Benno Schulenberg
  2 siblings, 1 reply; 26+ messages in thread
From: Alexander Skwar @ 2006-07-29 15:20 UTC (permalink / raw
  To: gentoo-user

Michael George schrieb:
> I am building OOo 2.0.3 and I happened to notice in the verbose emerge
> output that there is a long list of languages listed in the LINGUAS
> variable:
> 
>  LINGUAS="-af% -ar% -be_BY% -bg% -bn% -bs% -ca% -cs% -cy% -da% -de% -el%
>  -en% -en_GB% -en_US% -en_ZA% -es% -et% -fa% -fi% -fr% -gu_IN% -he%
>  -hi_IN% -hr% -hu% -it% -ja% -km% -ko% -lt% -mk% -nb% -nl% -nn% -nr%
>  -ns% -pa_IN% -pl% -pt% -pt_BR% -ru% -rw% -sh_YU% -sk% -sl% -sr_CS% -st%
>  -sv% -sw_TZ% -th% -tn% -tr% -ts% -vi% -xh% -zh_CN% -zh_TW% -zu%"
> 
> Does this mean that NONE of those languages will be built in or that ALL
> of them will be?

If all of them have a - before, then yes, none will be built.

> The docs I found on gentoo localization indicate that I can set LINGUAS
> in make.conf and build for just the languages I desire.  I set it to:
> LINGUAS="en_US"
> but all that does is prepend en_US to the beginning of the string above.

How? What's shown?

> Where are those settings coming from?

make.conf

Alexander Skwar
-- 
The one sure way to make a lazy man look respectable is to put a fishing
rod in his hand.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
       [not found] <20060729145743.GA24325@brego.pewamo.office>
  2006-07-29 15:20 ` Alexander Skwar
@ 2006-07-29 20:16 ` Richard Fish
  2006-08-01 16:01   ` Michael George
  2006-07-29 20:41 ` Benno Schulenberg
  2 siblings, 1 reply; 26+ messages in thread
From: Richard Fish @ 2006-07-29 20:16 UTC (permalink / raw
  To: gentoo-user

On 7/29/06, Michael George <george@mutualdata.com> wrote:
> The docs I found on gentoo localization indicate that I can set LINGUAS
> in make.conf and build for just the languages I desire.  I set it to:
> LINGUAS="en_US"
> but all that does is prepend en_US to the beginning of the string above.

Look closer; it should put "en_US" at the begining of the string, and
remove the "-en_US" from the middle.  The normal configuration of
portage is to display set USE flags first, followed by the unset
flags, and each group is sorted alphabetically.

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
       [not found] <20060729145743.GA24325@brego.pewamo.office>
  2006-07-29 15:20 ` Alexander Skwar
  2006-07-29 20:16 ` Richard Fish
@ 2006-07-29 20:41 ` Benno Schulenberg
  2 siblings, 0 replies; 26+ messages in thread
From: Benno Schulenberg @ 2006-07-29 20:41 UTC (permalink / raw
  To: gentoo-user

Michael George wrote:
>  LINGUAS="-af% -ar% -be_BY% -bg% -bn% -bs% -ca% -cs% -cy% -da%
> -de% -el% -en% -en_GB% -en_US% -en_ZA% -es% -et% -fa% -fi% -fr%
> -gu_IN% -he% -hi_IN% -hr% -hu% -it% -ja% -km% -ko% -lt% -mk% -nb%
> -nl% -nn% -nr% -ns% -pa_IN% -pl% -pt% -pt_BR% -ru% -rw% -sh_YU%
> -sk% -sl% -sr_CS% -st% -sv% -sw_TZ% -th% -tn% -tr% -ts% -vi% -xh%
> -zh_CN% -zh_TW% -zu%"
>
> Does this mean that NONE of those languages will be built in or
> that ALL of them will be?

None, as they all start with a minus sign.

> I set it to: LINGUAS="en_US"
> but all that does is prepend en_US to the beginning of the string
> above.

Not quite: it also removes the -en_US.  It makes no difference, 
though, as the ebuild uses en_US by default when LINGUAS is empty.

> Where are those settings coming from?

>From the ebuild: it specifies that it can handle LANGS="af ar ...".

Benno
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2006-07-29 15:20 ` Alexander Skwar
@ 2006-07-29 20:41   ` Michael George
  2006-07-29 21:08     ` Alexander Skwar
  0 siblings, 1 reply; 26+ messages in thread
From: Michael George @ 2006-07-29 20:41 UTC (permalink / raw
  To: gentoo-user

On Sat, Jul 29, 2006 at 05:20:13PM +0200, Alexander Skwar wrote:
> Michael George schrieb:
> >I am building OOo 2.0.3 and I happened to notice in the verbose emerge
> >output that there is a long list of languages listed in the LINGUAS
> >variable:
> >
> > LINGUAS="-af% -ar% -be_BY% -bg% -bn% -bs% -ca% -cs% -cy% -da% -de% -el%
> > -en% -en_GB% -en_US% -en_ZA% -es% -et% -fa% -fi% -fr% -gu_IN% -he%
> > -hi_IN% -hr% -hu% -it% -ja% -km% -ko% -lt% -mk% -nb% -nl% -nn% -nr%
> > -ns% -pa_IN% -pl% -pt% -pt_BR% -ru% -rw% -sh_YU% -sk% -sl% -sr_CS% -st%
> > -sv% -sw_TZ% -th% -tn% -tr% -ts% -vi% -xh% -zh_CN% -zh_TW% -zu%"
> >
> >Does this mean that NONE of those languages will be built in or that ALL
> >of them will be?
> 
> If all of them have a - before, then yes, none will be built.

Okay, that's what I figured it meant.

> >The docs I found on gentoo localization indicate that I can set LINGUAS
> >in make.conf and build for just the languages I desire.  I set it to:
> >LINGUAS="en_US"
> >but all that does is prepend en_US to the beginning of the string above.
> 
> How? What's shown?

If I put LINGUAS="en_US" into make.conf, then the LINGUAS line reads:

LINGUAS="en_US% -af% -ar% -be_BY% -bg% -bn% -bs% -ca% -cs% -cy% -da% -de%
-el% -en% -en_GB% -en_ZA% -es% -et% -fa% -fi% -fr% -gu_IN% -he%
-hi_IN% -hr% -hu% -it% -ja% -km% -ko% -lt% -mk% -nb% -nl% -nn% -nr%
-ns% -pa_IN% -pl% -pt% -pt_BR% -ru% -rw% -sh_YU% -sk% -sl% -sr_CS% -st%
-sv% -sw_TZ% -th% -tn% -tr% -ts% -vi% -xh% -zh_CN% -zh_TW% -zu%"

en_US is put on the front and -en_US disappears from the list.  I didn't
notice it disappearing before...

> >Where are those settings coming from?
> 
> make.conf

Any that I specify to be built are in make.conf, but there is nothing in
make.conf that specifies the "-" entries....

Thank you for your reply!

-- 
-M

There are 10 kinds of people in this world:
	Those who can count in binary and those who cannot.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2006-07-29 20:41   ` Michael George
@ 2006-07-29 21:08     ` Alexander Skwar
  0 siblings, 0 replies; 26+ messages in thread
From: Alexander Skwar @ 2006-07-29 21:08 UTC (permalink / raw
  To: gentoo-user

Michael George schrieb:
> On Sat, Jul 29, 2006 at 05:20:13PM +0200, Alexander Skwar wrote:
>> Michael George schrieb:
>> >I am building OOo 2.0.3 and I happened to notice in the verbose emerge
>> >output that there is a long list of languages listed in the LINGUAS
>> >variable:
>> >
>> > LINGUAS="-af% -ar% -be_BY% -bg% -bn% -bs% -ca% -cs% -cy% -da% -de% -el%
>> > -en% -en_GB% -en_US% -en_ZA% -es% -et% -fa% -fi% -fr% -gu_IN% -he%
>> > -hi_IN% -hr% -hu% -it% -ja% -km% -ko% -lt% -mk% -nb% -nl% -nn% -nr%
>> > -ns% -pa_IN% -pl% -pt% -pt_BR% -ru% -rw% -sh_YU% -sk% -sl% -sr_CS% -st%
>> > -sv% -sw_TZ% -th% -tn% -tr% -ts% -vi% -xh% -zh_CN% -zh_TW% -zu%"
>> >
>> >Does this mean that NONE of those languages will be built in or that ALL
>> >of them will be?
>> 
>> If all of them have a - before, then yes, none will be built.
> 
> Okay, that's what I figured it meant.
> 
>> >The docs I found on gentoo localization indicate that I can set LINGUAS
>> >in make.conf and build for just the languages I desire.  I set it to:
>> >LINGUAS="en_US"
>> >but all that does is prepend en_US to the beginning of the string above.
>> 
>> How? What's shown?
> 
> If I put LINGUAS="en_US" into make.conf, then the LINGUAS line reads:
> 
> LINGUAS="en_US% -af% -ar% -be_BY% -bg% -bn% -bs% -ca% -cs% -cy% -da% -de%
> -el% -en% -en_GB% -en_ZA% -es% -et% -fa% -fi% -fr% -gu_IN% -he%
> -hi_IN% -hr% -hu% -it% -ja% -km% -ko% -lt% -mk% -nb% -nl% -nn% -nr%
> -ns% -pa_IN% -pl% -pt% -pt_BR% -ru% -rw% -sh_YU% -sk% -sl% -sr_CS% -st%
> -sv% -sw_TZ% -th% -tn% -tr% -ts% -vi% -xh% -zh_CN% -zh_TW% -zu%"
> 
> en_US is put on the front and -en_US disappears from the list.  

See, it works just like a USE flag. Means: You now enabled the en_US linguas.

>> >Where are those settings coming from?
>> 
>> make.conf
> 
> Any that I specify to be built are in make.conf, but there is nothing in
> make.conf that specifies the "-" entries....

Of course not - just like there's (mostly) nothing in your make.conf
or package.use, which specifies "- USE flags".

Alexander Skwar
-- 
MSDOS is not dead, it just smells that way.
		-- Henry Spencer
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2006-07-29 20:16 ` Richard Fish
@ 2006-08-01 16:01   ` Michael George
  0 siblings, 0 replies; 26+ messages in thread
From: Michael George @ 2006-08-01 16:01 UTC (permalink / raw
  To: gentoo-user

On 7/29/06, Michael George <george@mutualdata.com> wrote:
>The docs I found on gentoo localization indicate that I can set LINGUAS
>in make.conf and build for just the languages I desire.  I set it to:
>LINGUAS="en_US"
>but all that does is prepend en_US to the beginning of the string above.

Thanks to all who responded to my questions.  I now have a better
understanding of this variable, USE flags, and emerge in general.

-- 
-M

There are 10 kinds of people in this world:
	Those who can count in binary and those who cannot.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* [gentoo-user] LINGUAS
@ 2010-08-18 21:25 Elmar Hinz
  2010-08-18 21:39 ` Alan McKinnon
  0 siblings, 1 reply; 26+ messages in thread
From: Elmar Hinz @ 2010-08-18 21:25 UTC (permalink / raw
  To: gentoo-user

The gentoo wiki suggests in different places to set the LINGUAS
environment variable in make.conf.

What has LINGUAS todo with make? I would expect it in rc.conf near the
UNICODE setting.

Al



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-18 21:25 [gentoo-user] LINGUAS Elmar Hinz
@ 2010-08-18 21:39 ` Alan McKinnon
  2010-08-19 11:48   ` Elmar Hinz
  0 siblings, 1 reply; 26+ messages in thread
From: Alan McKinnon @ 2010-08-18 21:39 UTC (permalink / raw
  To: gentoo-user

Apparently, though unproven, at 23:25 on Wednesday 18 August 2010, Elmar Hinz 
did opine thusly:

> The gentoo wiki suggests in different places to set the LINGUAS
> environment variable in make.conf.
> 
> What has LINGUAS todo with make? I would expect it in rc.conf near the
> UNICODE setting.


It has nothing to do with make. It has everything to do with portage.


-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-18 21:39 ` Alan McKinnon
@ 2010-08-19 11:48   ` Elmar Hinz
  2010-08-19 11:56     ` Alan McKinnon
                       ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: Elmar Hinz @ 2010-08-19 11:48 UTC (permalink / raw
  To: gentoo-user

2010/8/18 Alan McKinnon <alan.mckinnon@gmail.com>:
> Apparently, though unproven, at 23:25 on Wednesday 18 August 2010, Elmar Hinz
> did opine thusly:
>
>> The gentoo wiki suggests in different places to set the LINGUAS
>> environment variable in make.conf.
>>
>> What has LINGUAS todo with make? I would expect it in rc.conf near the
>> UNICODE setting.
>
>
> It has nothing to do with make. It has everything to do with portage.
>

Even than, LINGUAS has rather to do with OpenOffice.

Has it anything to do with portage at all?



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 11:48   ` Elmar Hinz
@ 2010-08-19 11:56     ` Alan McKinnon
  2010-08-19 12:21     ` Nganon
  2010-08-19 12:27     ` Graham Murray
  2 siblings, 0 replies; 26+ messages in thread
From: Alan McKinnon @ 2010-08-19 11:56 UTC (permalink / raw
  To: gentoo-user; +Cc: Elmar Hinz

Apparently, though unproven, at 13:48 on Thursday 19 August 2010, Elmar Hinz 
did opine thusly:

> 2010/8/18 Alan McKinnon <alan.mckinnon@gmail.com>:
> > Apparently, though unproven, at 23:25 on Wednesday 18 August 2010, Elmar
> > Hinz
> > 
> > did opine thusly:
> >> The gentoo wiki suggests in different places to set the LINGUAS
> >> environment variable in make.conf.
> >> 
> >> What has LINGUAS todo with make? I would expect it in rc.conf near the
> >> UNICODE setting.
> > 
> > It has nothing to do with make. It has everything to do with portage.
> 
> Even than, LINGUAS has rather to do with OpenOffice.
> 
> Has it anything to do with portage at all?

It's in make.conf isn't it?

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 11:48   ` Elmar Hinz
  2010-08-19 11:56     ` Alan McKinnon
@ 2010-08-19 12:21     ` Nganon
  2010-08-19 12:27     ` Graham Murray
  2 siblings, 0 replies; 26+ messages in thread
From: Nganon @ 2010-08-19 12:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 947 bytes --]

On 19 August 2010 14:48, Elmar Hinz <oss.elmar@googlemail.com> wrote:

> 2010/8/18 Alan McKinnon <alan.mckinnon@gmail.com>:
> > Apparently, though unproven, at 23:25 on Wednesday 18 August 2010, Elmar
> Hinz
> > did opine thusly:
> >
> >> The gentoo wiki suggests in different places to set the LINGUAS
> >> environment variable in make.conf.
> >>
> >> What has LINGUAS todo with make? I would expect it in rc.conf near the
> >> UNICODE setting.
> >
> >
> > It has nothing to do with make. It has everything to do with portage.
> >
>
> Even than, LINGUAS has rather to do with OpenOffice.
>
> Has it anything to do with portage at all?
>
>
It has something to with packages that has localization support,
thus everything to with portage.

Global linguas flags are set in make.conf as
LINGUAS="en de ru"

and application specific ones can be set in package.use as
www-client/firefox linguas_en_GB
app-office/openoffice-bin linguas_en_GB linguas_de

[-- Attachment #2: Type: text/html, Size: 1502 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 11:48   ` Elmar Hinz
  2010-08-19 11:56     ` Alan McKinnon
  2010-08-19 12:21     ` Nganon
@ 2010-08-19 12:27     ` Graham Murray
  2010-08-19 12:37       ` Florian CROUZAT
  2010-08-19 12:57       ` Elmar Hinz
  2 siblings, 2 replies; 26+ messages in thread
From: Graham Murray @ 2010-08-19 12:27 UTC (permalink / raw
  To: gentoo-user

Elmar Hinz <oss.elmar@googlemail.com> writes:

> 2010/8/18 Alan McKinnon <alan.mckinnon@gmail.com>:
>> Apparently, though unproven, at 23:25 on Wednesday 18 August 2010, Elmar Hinz
>> did opine thusly:
>>
>>> The gentoo wiki suggests in different places to set the LINGUAS
>>> environment variable in make.conf.
>>>
>>> What has LINGUAS todo with make? I would expect it in rc.conf near the
>>> UNICODE setting.
>>
>>
>> It has nothing to do with make. It has everything to do with portage.
>>
>
> Even than, LINGUAS has rather to do with OpenOffice.
>
> Has it anything to do with portage at all?

Several packages, not just OpenOffice, can include/support different
languages. Portage uses the value of LINGUAS to tell these packages
which languages to include/support.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 12:27     ` Graham Murray
@ 2010-08-19 12:37       ` Florian CROUZAT
  2010-08-19 13:21         ` Arttu V.
  2010-08-19 14:17         ` Bill Longman
  2010-08-19 12:57       ` Elmar Hinz
  1 sibling, 2 replies; 26+ messages in thread
From: Florian CROUZAT @ 2010-08-19 12:37 UTC (permalink / raw
  To: gentoo-user


On 19 août 2010, at 14:27, Graham Murray wrote:

> Elmar Hinz <oss.elmar@googlemail.com> writes:
> 
>> 2010/8/18 Alan McKinnon <alan.mckinnon@gmail.com>:
>>> Apparently, though unproven, at 23:25 on Wednesday 18 August 2010, Elmar Hinz
>>> did opine thusly:
>>> 
>>>> The gentoo wiki suggests in different places to set the LINGUAS
>>>> environment variable in make.conf.
>>>> 
>>>> What has LINGUAS todo with make? I would expect it in rc.conf near the
>>>> UNICODE setting.
>>> 
>>> 
>>> It has nothing to do with make. It has everything to do with portage.
>>> 
>> 
>> Even than, LINGUAS has rather to do with OpenOffice.
>> 
>> Has it anything to do with portage at all?
> 
> Several packages, not just OpenOffice, can include/support different
> languages. Portage uses the value of LINGUAS to tell these packages
> which languages to include/support.

I have access to this box where linguas=fr is set.
Check this output:
 $ type -a [
[ est une primitive du shell
[ est /usr/bin/[

[ is a shell built-in becomes "est une primitive du shell"
I can't see any use flags in coreutils/bash that informs me it will be emerged with the linguas support.
How do I know which package will be localized then ? Just curious, I don't tweak my linguas.


-----
Florian.
/ For security reasons, all text in this mail 
  is double-rot13 encrypted. /




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 12:27     ` Graham Murray
  2010-08-19 12:37       ` Florian CROUZAT
@ 2010-08-19 12:57       ` Elmar Hinz
  2010-08-19 13:13         ` Arttu V.
  2010-08-19 13:33         ` Andrea Conti
  1 sibling, 2 replies; 26+ messages in thread
From: Elmar Hinz @ 2010-08-19 12:57 UTC (permalink / raw
  To: gentoo-user

>> Even than, LINGUAS has rather to do with OpenOffice.
>>
>> Has it anything to do with portage at all?
>
> Several packages, not just OpenOffice, can include/support different
> languages. Portage uses the value of LINGUAS to tell these packages
> which languages to include/support.
>

When  Portage evaluates this variable it makes some sense.

On the other hand LINGUAS is still a general variable AFAIK and not
portage specific.

So shouldn't it be set in a general location like time and locales?

Al



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 12:57       ` Elmar Hinz
@ 2010-08-19 13:13         ` Arttu V.
  2010-08-19 13:38           ` Elmar Hinz
  2010-08-19 13:33         ` Andrea Conti
  1 sibling, 1 reply; 26+ messages in thread
From: Arttu V. @ 2010-08-19 13:13 UTC (permalink / raw
  To: gentoo-user

On 8/19/10, Elmar Hinz <oss.elmar@googlemail.com> wrote:
>>> Even than, LINGUAS has rather to do with OpenOffice.
>>>
>>> Has it anything to do with portage at all?
>>
>> Several packages, not just OpenOffice, can include/support different
>> languages. Portage uses the value of LINGUAS to tell these packages
>> which languages to include/support.
>>
>
> When  Portage evaluates this variable it makes some sense.
>
> On the other hand LINGUAS is still a general variable AFAIK and not
> portage specific.
>
> So shouldn't it be set in a general location like time and locales?

No, I think you're mixing up compile-time and run-time values -- and
also reading too much into the file names. "make.conf" should really
rather be called "portage.conf". That would make much more sense IMHO.
:)

-- 
Arttu V. -- Running Gentoo is like running with scissors



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 12:37       ` Florian CROUZAT
@ 2010-08-19 13:21         ` Arttu V.
  2010-08-19 14:17         ` Bill Longman
  1 sibling, 0 replies; 26+ messages in thread
From: Arttu V. @ 2010-08-19 13:21 UTC (permalink / raw
  To: gentoo-user

On 8/19/10, Florian CROUZAT <gentoo@floriancrouzat.net> wrote:
>
> On 19 août 2010, at 14:27, Graham Murray wrote:
>
>> Several packages, not just OpenOffice, can include/support different
>> languages. Portage uses the value of LINGUAS to tell these packages
>> which languages to include/support.
>
> I have access to this box where linguas=fr is set.
> Check this output:
>  $ type -a [
> [ est une primitive du shell
> [ est /usr/bin/[
>
> [ is a shell built-in becomes "est une primitive du shell"
> I can't see any use flags in coreutils/bash that informs me it will be
> emerged with the linguas support.
> How do I know which package will be localized then ? Just curious, I don't
> tweak my linguas.

Check for the tell-tale USE="nls" flag in the ebuilds.

Not all ebuild's bother listing explicitly out all of the LINGUAS
their sources actually support. coreutils is one of the lazy ones.

Just look at its sources: 39 different .po files, that's 39
localizations available. No point printing out such monstrous long
lists -- your localization is in there, period! ;)  But coreutils does
obey LINGUAS anyway. It only installs what you have in your LINGUAS
(check, e.g., with equery files coreutils).

Openoffice is a special case (surprise!). Its ebuild depends
dynamically on spell-check packages depending on the value of LINGUAS
-- so the poor Gentoo OOo maintainers must list out every supported
lingua in the ebuild. :)

-- 
Arttu V. -- Running Gentoo is like running with scissors



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
       [not found]   ` <fjbN8-7SC-9@gated-at.bofh.it>
@ 2010-08-19 13:27     ` David W Noon
  0 siblings, 0 replies; 26+ messages in thread
From: David W Noon @ 2010-08-19 13:27 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1185 bytes --]

On Thu, 19 Aug 2010 13:50:02 +0200, Elmar Hinz wrote about Re:
[gentoo-user] LINGUAS:

>2010/8/18 Alan McKinnon <alan.mckinnon@gmail.com>:
>> Apparently, though unproven, at 23:25 on Wednesday 18 August 2010,
>> Elmar Hinz did opine thusly:
>>
>>> The gentoo wiki suggests in different places to set the LINGUAS
>>> environment variable in make.conf.
>>>
>>> What has LINGUAS todo with make? I would expect it in rc.conf near
>>> the UNICODE setting.
>>
>>
>> It has nothing to do with make. It has everything to do with portage.
>>
>
>Even than, LINGUAS has rather to do with OpenOffice.

Not really.

>Has it anything to do with portage at all?

The LINGUAS variable is used by many packages that use
internationalization (i18n) or localization (l10n).  It is the standard
place for an ebuild to check what National Language Support (NLS) is
required for a package.  Check which packages you have installed that
have the "nls" USE flag.
-- 
Regards,

Dave  [RLU #314465]
======================================================================
dwnoon@ntlworld.com (David W Noon)
======================================================================

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 12:57       ` Elmar Hinz
  2010-08-19 13:13         ` Arttu V.
@ 2010-08-19 13:33         ` Andrea Conti
  2010-08-19 13:53           ` Elmar Hinz
  2010-08-19 19:45           ` Mike Edenfield
  1 sibling, 2 replies; 26+ messages in thread
From: Andrea Conti @ 2010-08-19 13:33 UTC (permalink / raw
  To: gentoo-user

> On the other hand LINGUAS is still a general variable AFAIK and not
> portage specific.

LINGUAS is strictly portage-specific. It's used to control the
compile-time inclusion of languages and/or locales for packages which
have that kind of option (i.e. OpenOffice, KDE, Firefox and many
others); as such it is generally set in make.conf, although it can be
controlled on a per-package basis as others have said.

On the other hand, things like bash and coreutils usually have a "nls"
USE flag which controls the compile-time inclusion of *all* supported
localizations.

Packages built with support for multiple locales will usually pick the
right one at run-time by looking at the LANG and LC_* environment variables.
(See http://www.gentoo.org/doc/en/guide-localization.xml#doc_chap3 for
more details)

andrea



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 13:13         ` Arttu V.
@ 2010-08-19 13:38           ` Elmar Hinz
  0 siblings, 0 replies; 26+ messages in thread
From: Elmar Hinz @ 2010-08-19 13:38 UTC (permalink / raw
  To: gentoo-user

>
> No, I think you're mixing up compile-time and run-time values -- and
> also reading too much into the file names. "make.conf" should really
> rather be called "portage.conf". That would make much more sense IMHO.
> :)
>

As long as the source is the documentation, it should be possible by
concept to read in filenames.

I think you are right, that portage.conf would be the natural name.

Al



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 13:33         ` Andrea Conti
@ 2010-08-19 13:53           ` Elmar Hinz
  2010-08-19 14:26             ` Bill Longman
  2010-08-19 19:48             ` Mike Edenfield
  2010-08-19 19:45           ` Mike Edenfield
  1 sibling, 2 replies; 26+ messages in thread
From: Elmar Hinz @ 2010-08-19 13:53 UTC (permalink / raw
  To: gentoo-user

2010/8/19 Andrea Conti <alyf@alyf.net>:
>> On the other hand LINGUAS is still a general variable AFAIK and not
>> portage specific.
>
> LINGUAS is strictly portage-specific.

Really?

Researching the web I understand it origins from gettext and portage
has implemented it. If I understand right, it would still matter if
you compile something without portage.

But is the following generalization correct?

* LINGUAS is the compile time setting (for multiple languages)
* LANG is the runtime setting (for the current language).

Al



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 12:37       ` Florian CROUZAT
  2010-08-19 13:21         ` Arttu V.
@ 2010-08-19 14:17         ` Bill Longman
  1 sibling, 0 replies; 26+ messages in thread
From: Bill Longman @ 2010-08-19 14:17 UTC (permalink / raw
  To: gentoo-user

On 08/19/2010 05:37 AM, Florian CROUZAT wrote:
> 
> On 19 août 2010, at 14:27, Graham Murray wrote:
> 
>> Elmar Hinz <oss.elmar@googlemail.com> writes:
>>
>>> 2010/8/18 Alan McKinnon <alan.mckinnon@gmail.com>:
>>>> Apparently, though unproven, at 23:25 on Wednesday 18 August 2010, Elmar Hinz
>>>> did opine thusly:
>>>>
>>>>> The gentoo wiki suggests in different places to set the LINGUAS
>>>>> environment variable in make.conf.
>>>>>
>>>>> What has LINGUAS todo with make? I would expect it in rc.conf near the
>>>>> UNICODE setting.
>>>>
>>>>
>>>> It has nothing to do with make. It has everything to do with portage.
>>>>
>>>
>>> Even than, LINGUAS has rather to do with OpenOffice.
>>>
>>> Has it anything to do with portage at all?
>>
>> Several packages, not just OpenOffice, can include/support different
>> languages. Portage uses the value of LINGUAS to tell these packages
>> which languages to include/support.
> 
> I have access to this box where linguas=fr is set.
> Check this output:
>  $ type -a [
> [ est une primitive du shell
> [ est /usr/bin/[
> 
> [ is a shell built-in becomes "est une primitive du shell"
> I can't see any use flags in coreutils/bash that informs me it will be emerged with the linguas support.
> How do I know which package will be localized then ? Just curious, I don't tweak my linguas.

As others have said, it's the nls setting that does this. Specifically,
the string "est une primitive du shell" is part of the i18n that's in
the bash binary. When you set LANG or LC_MESSAGES to something
different, i.e., el_GR, you'll get the Greek translation. The man page
for locale has lots of info about this.




^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 13:53           ` Elmar Hinz
@ 2010-08-19 14:26             ` Bill Longman
  2010-08-19 19:48             ` Mike Edenfield
  1 sibling, 0 replies; 26+ messages in thread
From: Bill Longman @ 2010-08-19 14:26 UTC (permalink / raw
  To: gentoo-user

On 08/19/2010 06:53 AM, Elmar Hinz wrote:
> 2010/8/19 Andrea Conti <alyf@alyf.net>:
>>> On the other hand LINGUAS is still a general variable AFAIK and not
>>> portage specific.
>>
>> LINGUAS is strictly portage-specific.
> 
> Really?
> 
> Researching the web I understand it origins from gettext and portage
> has implemented it. If I understand right, it would still matter if
> you compile something without portage.
> 
> But is the following generalization correct?
> 
> * LINGUAS is the compile time setting (for multiple languages)
> * LANG is the runtime setting (for the current language).

Yeah, but with the caveat that LANG is the generalization for all the
LC_* variables.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 13:33         ` Andrea Conti
  2010-08-19 13:53           ` Elmar Hinz
@ 2010-08-19 19:45           ` Mike Edenfield
  2010-08-20  6:18             ` Andrea Conti
  1 sibling, 1 reply; 26+ messages in thread
From: Mike Edenfield @ 2010-08-19 19:45 UTC (permalink / raw
  To: gentoo-user; +Cc: Andrea Conti

On 8/19/2010 9:33 AM, Andrea Conti wrote:
>> On the other hand LINGUAS is still a general variable AFAIK and not
>> portage specific.
> 
> LINGUAS is strictly portage-specific. It's used to control the
> compile-time inclusion of languages and/or locales for packages which
> have that kind of option (i.e. OpenOffice, KDE, Firefox and many
> others); as such it is generally set in make.conf, although it can be
> controlled on a per-package basis as others have said.

It's more accurate to say LINGUAS is "build-time specific".  Portage is
not the only build process/package manager/configuration system/coffee
maker that knows what LINGUAS means.  It's the "official" (as far as
there is such a thing) place to store the list of gettext translations
you want on your system, and most autotools-based builds and binary
package managers also recognize it.

--Mike



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 13:53           ` Elmar Hinz
  2010-08-19 14:26             ` Bill Longman
@ 2010-08-19 19:48             ` Mike Edenfield
  1 sibling, 0 replies; 26+ messages in thread
From: Mike Edenfield @ 2010-08-19 19:48 UTC (permalink / raw
  To: gentoo-user

On 8/19/2010 9:53 AM, Elmar Hinz wrote:

> But is the following generalization correct?
> 
> * LINGUAS is the compile time setting (for multiple languages)
> * LANG is the runtime setting (for the current language).

Yes, as long as you're aware that LINGUAS support is recommended, but
optional.  A package that simply installs every .po file it has will
still operate in the correct locale based on your LANG setting, it will
just waste a lot of space.

--Mike



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] LINGUAS
  2010-08-19 19:45           ` Mike Edenfield
@ 2010-08-20  6:18             ` Andrea Conti
  0 siblings, 0 replies; 26+ messages in thread
From: Andrea Conti @ 2010-08-20  6:18 UTC (permalink / raw
  To: gentoo-user

> It's the "official" (as far as
> there is such a thing) place to store the list of gettext translations
> you want on your system, and most autotools-based builds and binary
> package managers also recognize it.

I didn't know that. Thanks for clarifying!

andrea



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2010-08-20  6:19 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-18 21:25 [gentoo-user] LINGUAS Elmar Hinz
2010-08-18 21:39 ` Alan McKinnon
2010-08-19 11:48   ` Elmar Hinz
2010-08-19 11:56     ` Alan McKinnon
2010-08-19 12:21     ` Nganon
2010-08-19 12:27     ` Graham Murray
2010-08-19 12:37       ` Florian CROUZAT
2010-08-19 13:21         ` Arttu V.
2010-08-19 14:17         ` Bill Longman
2010-08-19 12:57       ` Elmar Hinz
2010-08-19 13:13         ` Arttu V.
2010-08-19 13:38           ` Elmar Hinz
2010-08-19 13:33         ` Andrea Conti
2010-08-19 13:53           ` Elmar Hinz
2010-08-19 14:26             ` Bill Longman
2010-08-19 19:48             ` Mike Edenfield
2010-08-19 19:45           ` Mike Edenfield
2010-08-20  6:18             ` Andrea Conti
     [not found] <fiYZz-3aF-3@gated-at.bofh.it>
     [not found] ` <fiYZz-3aF-1@gated-at.bofh.it>
     [not found]   ` <fjbN8-7SC-9@gated-at.bofh.it>
2010-08-19 13:27     ` David W Noon
     [not found] <20060729145743.GA24325@brego.pewamo.office>
2006-07-29 15:20 ` Alexander Skwar
2006-07-29 20:41   ` Michael George
2006-07-29 21:08     ` Alexander Skwar
2006-07-29 20:16 ` Richard Fish
2006-08-01 16:01   ` Michael George
2006-07-29 20:41 ` Benno Schulenberg
  -- strict thread matches above, loose matches on Subject: below --
2006-04-05 11:48 [gentoo-user] emerge without download go moko
2006-04-05 12:50 ` Benno Schulenberg
2006-04-05 15:46   ` Matthias Bethke
2006-04-05 21:03     ` [gentoo-user] LINGUAS Benno Schulenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox