* [gentoo-user] LINGUAS issue
@ 2015-11-12 17:20 Francisco Ares
2015-11-12 18:21 ` [gentoo-user] " Jörg Schaible
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Francisco Ares @ 2015-11-12 17:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]
Hi, all.
My locale language is "pt_BR" (Brazilian Portuguese), and many applications
now support native translations.
And there is the "pt" possible LINGUAS entry, and there is no "pt_PT"
(Portugal spoken Portuguese), for instance, neither any derivatives for
other Portuguese speaking countries, which possibly have their own regional
differences.
There are a few applications that do not distinguish "pt_BR" from "pt" and
treat Portuguese language as simply "pt". An example is the OCR program
"tesseract", that builds language specifics according to the LINGUAS
environment variable.
Is there a way for specifying particular "LINGUAS" for individual
packages? I would not like to have to build dozens of applications to
include "pt" to my "LINGUAS" definition just to have "tesseract" to include
my native language support. I've found some old messages about this on the
net, but did not get any real solution.
Or should I ask the "tesseract" package maintainer to add "pt_BR" to the
available options?
Thanks a lot for your time,
Francisco
[-- Attachment #2: Type: text/html, Size: 1379 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: LINGUAS issue
2015-11-12 17:20 [gentoo-user] LINGUAS issue Francisco Ares
@ 2015-11-12 18:21 ` Jörg Schaible
2015-11-12 18:21 ` [gentoo-user] " Florian Gamböck
2015-11-12 18:27 ` wabenbau
2 siblings, 0 replies; 4+ messages in thread
From: Jörg Schaible @ 2015-11-12 18:21 UTC (permalink / raw
To: gentoo-user
Hi Francisco,
Francisco Ares wrote:
> Hi, all.
>
> My locale language is "pt_BR" (Brazilian Portuguese), and many
> applications now support native translations.
>
> And there is the "pt" possible LINGUAS entry, and there is no "pt_PT"
> (Portugal spoken Portuguese), for instance, neither any derivatives for
> other Portuguese speaking countries, which possibly have their own
> regional differences.
>
> There are a few applications that do not distinguish "pt_BR" from "pt" and
> treat Portuguese language as simply "pt". An example is the OCR program
> "tesseract", that builds language specifics according to the LINGUAS
> environment variable.
>
> Is there a way for specifying particular "LINGUAS" for individual
> packages? I would not like to have to build dozens of applications to
> include "pt" to my "LINGUAS" definition just to have "tesseract" to
> include
> my native language support. I've found some old messages about this on
> the net, but did not get any real solution.
>
> Or should I ask the "tesseract" package maintainer to add "pt_BR" to the
> available options?
You can set this individually for every package. My LINGUAS is set to "en"
only (I hate localized man pages), but I have entries in my package.use file
to turn on linguas individually. e.g.:
app-office/libreoffice-l10n linguas_de linguas_en_GB linguas_fr offlinehelp
Cheers,
Jörg
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] LINGUAS issue
2015-11-12 17:20 [gentoo-user] LINGUAS issue Francisco Ares
2015-11-12 18:21 ` [gentoo-user] " Jörg Schaible
@ 2015-11-12 18:21 ` Florian Gamböck
2015-11-12 18:27 ` wabenbau
2 siblings, 0 replies; 4+ messages in thread
From: Florian Gamböck @ 2015-11-12 18:21 UTC (permalink / raw
To: gentoo-user
Hi Francisco,
On 2015-11-12 15:20, Francisco Ares wrote:
> Is there a way for specifying particular "LINGUAS" for individual
> packages?
Sure there is. In fact, "LINGUAS=pt_BR" is just syntactical sugar for
"USE=linguas_pt_BR". So for your specific case with tesseract, you would add a
line to packages.use, saying:
app-text/tesseract linguas_pt
Hope that helps!
--Flo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] LINGUAS issue
2015-11-12 17:20 [gentoo-user] LINGUAS issue Francisco Ares
2015-11-12 18:21 ` [gentoo-user] " Jörg Schaible
2015-11-12 18:21 ` [gentoo-user] " Florian Gamböck
@ 2015-11-12 18:27 ` wabenbau
2 siblings, 0 replies; 4+ messages in thread
From: wabenbau @ 2015-11-12 18:27 UTC (permalink / raw
To: gentoo-user
Francisco Ares <frares@gmail.com> wrote:
> Hi, all.
>
> My locale language is "pt_BR" (Brazilian Portuguese), and many
> applications now support native translations.
>
> And there is the "pt" possible LINGUAS entry, and there is no "pt_PT"
> (Portugal spoken Portuguese), for instance, neither any derivatives
> for other Portuguese speaking countries, which possibly have their
> own regional differences.
You can add locales by editing /etc/locale.gen and running locale-gen.
As i saw in /usr/share/i18n/SUPPORTED, pt_PT is supported.
> There are a few applications that do not distinguish "pt_BR" from
> "pt" and treat Portuguese language as simply "pt". An example is the
> OCR program "tesseract", that builds language specifics according to
> the LINGUAS environment variable.
>
> Is there a way for specifying particular "LINGUAS" for individual
> packages? I would not like to have to build dozens of applications to
> include "pt" to my "LINGUAS" definition just to have "tesseract" to
> include my native language support. I've found some old messages
> about this on the net, but did not get any real solution.
You can define package specific environment variables for package
builds in /etc/portage/env/
If you need package specific environment variables for runtime you
could create simple scripts to set the env and start the program.
#!/bin/sh
#
# start_tesseract.sh
#
LINGUAS="pt"
tesseract
Then modify the according menu entries / starter buttons to use the
script.
> Or should I ask the "tesseract" package maintainer to add "pt_BR" to
> the available options?
That's a good idea.
--
Regards
wabe
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-12 18:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-12 17:20 [gentoo-user] LINGUAS issue Francisco Ares
2015-11-12 18:21 ` [gentoo-user] " Jörg Schaible
2015-11-12 18:21 ` [gentoo-user] " Florian Gamböck
2015-11-12 18:27 ` wabenbau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox