From owner-freebsd-questions@FreeBSD.ORG Thu Apr 19 14:54:22 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 953431065673; Thu, 19 Apr 2012 14:54:22 +0000 (UTC) (envelope-from jbiskofski@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 363668FC14; Thu, 19 Apr 2012 14:54:22 +0000 (UTC) Received: by ghrr20 with SMTP id r20so5389049ghr.13 for ; Thu, 19 Apr 2012 07:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4x9vNKfmUmjqKwSG0I7sXiibsZfx5iQwL2W0yohDafg=; b=puD+NAoaqvlMAqrNXBJeC+NcV6imDec5tSPyCWL/5FLo+Ckm0UB46ZOWG49z++Lwd4 dUHCmad2SuEU3mAoFT8FhnZzOWBlg568eQLvVtjcl9G3WJeJUUE8LUXJnKnJitec5Y98 z2uBWGzP6XHqHk876qiytlI2hsraGAxWa/NctuXfEWUnCkeGnJkZskUAYbgHtAkJ6UDt mYGADYtXD0qy+0cT7s00UBC6oYVZ0pYWiWZoHIZi4nZvSXQClZFwRgt/bNkmG/fnmZ5n LPmwywuya0VSjLSJWch2PA4V6wzXbUu9ciyV8tS9gIajhPMnXhNleKwdjw23/oDA/wKR 9ucg== MIME-Version: 1.0 Received: by 10.236.76.41 with SMTP id a29mr2287755yhe.117.1334847259957; Thu, 19 Apr 2012 07:54:19 -0700 (PDT) Received: by 10.236.28.198 with HTTP; Thu, 19 Apr 2012 07:54:19 -0700 (PDT) In-Reply-To: <4F8F3B8F.1@FreeBSD.org> References: <4F8F3B8F.1@FreeBSD.org> Date: Thu, 19 Apr 2012 09:54:19 -0500 Message-ID: From: jbiskofski To: Matthew Seaman Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: how to add es_MX locale ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2012 14:54:22 -0000 Matt, Thanks for the help I was able to build the locale I needed with your instructions. I will be submitting it. Thanks again for your help. - Jose On Wed, Apr 18, 2012 at 5:09 PM, Matthew Seaman wrote= : > On 18/04/2012 21:27, jbiskofski wrote: > > I dont see it in the response from "locale -a". How can I add this > locale? > > You'ld have to generate the appropriate locale data files for es_MX. > Look at the equivalents for es_ES in > /usr/share/locale/{es_ES.ISO8859-1,es_ES.ISO8859-15,es_ES.UTF-8} -- > although as ISO8859-15 is actually identical to ISO8859-1 apart from the > addition of the Euro (=80) currency symbol you can probably skip that for > es_MX. > > These LC_* files have sources in the following sub-directories of > /usr/src/share: > > LC_CTYPE mklocale > LC_COLLATE colldef > LC_MESSAGES msgdef > LC_MONETARY monetdef > LC_NUMERIC numericdef > LC_TIME timedef > > If you look at the Makefiles in those directories you can see how the > different output files are generated. Note that where the source would > be the same for many locales, only one source file is used, and the > Makefile copies the result appropriately for other locales. > > For example, the LC_CTYPE files for languages written in the latin > alphabet are generated from generic sources in /usr/src/share/mklocale > -- so for the ISO8859-1 character set, the source code is in > /usr/src/share/mklocale/la_LN.ISO8859-1.src > > Once you've got the es_MX files sorted out, submit your changes as a > diff by using send-pr(1), and try and get a committer interested in > adding them to the tree. You probably won't need to write many es_MX > specific files -- it could be just monetdef/es_MX.UTF-8.src [*] to > specify the currency -- but you will need to add the right bits to the > Makefiles to get the other es_MX LC_* files properly generated. > > Cheers, > > Matthew > > [*] I believe UTF-8 is preferred nowadays, rather than ISO8859-1 or > ISO8859-15. > > -- > Dr Matthew J Seaman MA, D.Phil. > PGP: http://www.infracaninophile.co.uk/pgpkey > > >