Fwd: [GRASS-dev] Scripting in Linux
Kim Besson
kimbesson1981 at gmail.com
Fri Jan 29 10:56:57 EST 2010
Hello Clements
I used --with-nls at my configure command.
- Regarding i18N Platform.make:
#i18N
HAVE_NLS = 1
(seems ok)
- Config.h (/usr/local/grass-6.4.0svn/include/grass/):
/* define if libintl.h exists */
#define HAVE_LIBINTL_H 1
/* define if iconv.h exists */
#define HAVE_ICONV_H 1
/* define if NLS requested */
#define USE_NLS 1
(seems to be equal)
By doing:
nm /usr/local/grass-6.4.0svn/lib/libgrass_gis.so
U bindtextdomain ==> There was no output with bindtextdomain
U dgettext==> There was no output with dgettext
Only:
00029130 T G_gettext
About:
nm /usr/local/grass-6.4.0svn/bin/g.parser
U G_gettext ==> Nothing with gettext...
So, what the prognosis? :)
I didn't modified po files. I just using mo files installed by GRASS
svn6.4.0, so I'm not touching them
2010/1/29 Glynn Clements <glynn at gclements.plus.com>
>
> Kim Besson wrote:
>
> > Ok I try that command and nothing seems to happen.
> >
> > Then I tried GRASS with DE language package and only wxGUI was
> translated.
>
> This normally indicates that GRASS was built without NLS.
>
> > What am I missing? Because it should be just fine... Or what should I
> have
> > to do to debug this issue?
>
> 1. Are you sure that NLS is enabled? I mention this because configure
> silently ignores unknown (e.g. mis-spelled) configure switches.
>
> Check for:
>
> #i18N
> HAVE_NLS = 1
>
> in Platform.make and :
>
> /* define if libintl.h exists */
> #define HAVE_LIBINTL_H 1
>
> /* define if iconv.h exists */
> #define HAVE_ICONV_H 1
>
> /* define if NLS requested */
> #define USE_NLS 1
>
> in config.h.
>
> Also check for:
>
> U bindtextdomain
> and:
> U dgettext
>
> in the output from:
>
> nm -D dist.i686-pc-linux-gnu/lib/libgrass_gis.so
>
> and:
> U G_gettext
>
> in the output from:
>
> nm -D dist.i686-pc-linux-gnu/bin/g.parser
>
> 2. Have you re-created the .mo file after modifying the .po file? This
> is done with:
>
> make -C locale mo
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20100129/80304d0c/attachment.html
More information about the grass-dev
mailing list