[GRASS translations] Re: [GRASS-dev] Re: fprintf in raster modules
converted to G_message
Hamish
hamish_nospam at yahoo.com
Thu Dec 14 00:51:37 EST 2006
Jachym Cepicky wrote:
> My suggestion is:
>
> Index: include/glocale.h
> ===================================================================
> RCS file: /grassrepository/grass6/include/glocale.h,v
> retrieving revision 2.2
> diff -u -r2.2 glocale.h
> --- include/glocale.h 26 Nov 2006 21:32:36 -0000 2.2
> +++ include/glocale.h 13 Dec 2006 18:51:56 -0000
> @@ -1,6 +1,11 @@
> #ifndef GRASS_GLOCALE_H
> #define GRASS_GLOCALE_H
>
> +#define ERRMSG_RASTER_OPEN_FILE _("Unable to find raster map <%s>")
> +#define ERRMSG_VECTOR_OPEN_FILE _("Unable to find vector map <%s>")
> +#define ERRMSG_ASCII_OPEN_FILE _("Unable to find ASCII file <%s>")
> +#define ERRMSG_OTHER_OPEN_FILE _("Unable to find file <%s>")
Will that hardcode whatever language GRASS was built with as the
only translation it can use for those messages? Or will the _(macros)
survive the build process and be processed normally at run-time?
Hamish
More information about the grass-translations
mailing list