From owner-freebsd-questions@FreeBSD.ORG Wed Apr 18 22:09:37 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B0EE1065674 for ; Wed, 18 Apr 2012 22:09:37 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id B7AFA8FC0A for ; Wed, 18 Apr 2012 22:09:36 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q3IM9TxD037194 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 18 Apr 2012 23:09:30 +0100 (BST) (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q3IM9TxD037194 Authentication-Results: smtp.infracaninophile.co.uk/q3IM9TxD037194; dkim=none (no signature); dkim-adsp=none Message-ID: <4F8F3B8F.1@FreeBSD.org> Date: Wed, 18 Apr 2012 23:09:19 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: jbiskofski References: In-Reply-To: X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC71EB593A693A2FC8CEB8062" X-Virus-Scanned: clamav-milter 0.97.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk 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: Wed, 18 Apr 2012 22:09:37 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC71EB593A693A2FC8CEB8062 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 18/04/2012 21:27, jbiskofski wrote: > I dont see it in the response from "locale -a". How can I add this loca= le? 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. --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enigC71EB593A693A2FC8CEB8062 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+PO5gACgkQ8Mjk52CukIwc+QCfY2O4raKCx6F0qot9KAg+yOiL GY8AnRE1IyH0w/gxIVpU80kSs8YaExaL =W1K7 -----END PGP SIGNATURE----- --------------enigC71EB593A693A2FC8CEB8062--