[gtkada] Internationalisation with GTKAda and Glade.

Pascal p.p14 at orange.fr
Sat Mar 8 19:28:15 CET 2014


Hello Emmanuel, you were right, here is my configure log:
checking for gettext in libc… no

Effectively I noticed sometimes, gettext is not detected by configure.

Nevertheless, may I bring a patch proposal for gtkada.intl:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtkada.intl.diff
Type: application/octet-stream
Size: 2920 bytes
Desc: not available
URL: </pipermail/gtkada/attachments/20140308/878bcd55/attachment.obj>
-------------- next part --------------


Notice that I have kept the SetLocale procedure as it was but It seems to me wrong on LC_ALL value:
      LC_ALL : constant Integer := 6;  --  from locale.h
here is locale.h from MacOS 10.9 with LC_ALL set to zero:
 *	@(#)locale.h	8.1 (Berkeley) 6/2/93
 * $FreeBSD: /repoman/r/ncvs/src/include/locale.h,v 1.7 2002/10/09 09:19:27 tjr Exp $
 */
#ifndef _LOCALE_H_
#define _LOCALE_H_
#include <_locale.h>
#define	LC_ALL		0
#define	LC_COLLATE	1
#define	LC_CTYPE	2
#define	LC_MONETARY	3
#define	LC_NUMERIC	4
#define	LC_TIME		5
#define	LC_MESSAGES	6
#define	_LC_LAST	7		/* marks end */
__BEGIN_DECLS
char		*setlocale(int, const char *);
__END_DECLS
#endif /* _LOCALE_H_ */

HTH, Pascal.
http://blady.pagesperso-orange.fr


Le 3 mars 2014 à 15:44, Emmanuel Briot <briot at adacore.com> a écrit :

>> I was stuck on my chair when I discovered that gtkada.intl contains only empty bodies.
> 
> Check the output of 'configure', apparently it did not detect gettext for some
> reason.
> gtkada-intl.adb is generated from gtkada-intl.gpb
> 
> Emmanuel
> 



More information about the gtkada mailing list