[GRASS5] GRASS internationalization

Alex Shevlakov alex at asrv.fcpf.ru
Thu, 28 Feb 2002 17:06:18 +0300


--/9DWx/yDrRhgMJTb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Feb 28, 2002 at 01:14:34PM +0000, Glynn Clements wrote:
>=20
> [In response to the recent commits]
> =20
> The references to LOCALEDIR should also be removed from the definition
> of DEFS. C files which use LOCALEDIR should use '#include <config.h>'
> to obtain the definition.
>=20
> Also:
>=20
> 1. The calls to bindtextdomain() and textdomain() need to be
> conditionalised upon the presence of libintl.h.
>=20
Yes, right. There must be ifdef. I'll commit the changes to two
modules soon.

> 2. Something should be including <locale.h> for setlocale().

It's included in libintl.h
=20
> 3. I don't think that using LC_ALL is a good idea. E.g., this will
> cause *printf() to use a comma as the decimal separator in some
> locales. It should probably just be LC_MESSAGES.
>=20
I agree with that.

> I've updated configure and config.h.in to define HAVE_LIBINTL_H, and
> updated glocale.h to use it. I haven't changed anything in
> g.select.pg/g.table.pg.
>=20
> --=20
> Glynn Clements <glynn.clements@virgin.net>

--/9DWx/yDrRhgMJTb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8fjlZVtGWG6G2qfwRAmK2AJ4ovYIBqoeep4MF1hzGm+Wjf/3fAQCfZ6cK
QI02vlMhJ5edFPYIEi/2DIg=
=z97D
-----END PGP SIGNATURE-----

--/9DWx/yDrRhgMJTb--