From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E5B941384B4 for ; Thu, 12 Nov 2015 18:28:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B9A9F21C0B8; Thu, 12 Nov 2015 18:28:14 +0000 (UTC) Received: from mail.web-xs.org (mail.web-xs.org [148.251.4.204]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 91BA621C0A0 for ; Thu, 12 Nov 2015 18:28:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.web-xs.org (Postfix) with ESMTP id 6F2A56EC305D for ; Thu, 12 Nov 2015 19:28:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.web-xs.org Received: from mail.web-xs.org ([127.0.0.1]) by localhost (mail.web-xs.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q8mxe6ZQEAcl for ; Thu, 12 Nov 2015 19:28:10 +0100 (CET) Received: from server-1.localdomain (p54A71716.dip0.t-ipconnect.de [84.167.23.22]) (Authenticated sender: lukas@der-erste-sinn.de) by mail.web-xs.org (Postfix) with ESMTPA id CEF9A6EC305B for ; Thu, 12 Nov 2015 19:28:10 +0100 (CET) Received: from hal9000.localdomain (hal.localdomain [192.168.0.2]) by server-1.localdomain (Postfix) with ESMTP id 4B9FE5C3 for ; Thu, 12 Nov 2015 14:42:32 +0100 (CET) Date: Thu, 12 Nov 2015 19:27:31 +0100 From: To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] LINGUAS issue Message-ID: <20151112192731.2797a446@hal9000.localdomain> In-Reply-To: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 08340897-c70a-4a11-b960-5f8d9a9eadfa X-Archives-Hash: 0a98cba9b65f44101444207a30c3eacd 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. 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