Re: [?] internationalizing shell scripts
Santiago Vila <email@example.com> writes:
> On 16 May 2002, Olaf Meeuwissen wrote:
> > I'd swear I saw it fly by on one of the debian lists I subscribe to,
> > but now I can't find it for the life of me.
> > How do I internationalize my shell scripts?
> > The C parts of the package are already using AM_GNU_GETTEXT if that
> > makes a diference.
> > Please tell me what FM2R and I'll happily do so.
> if [ -x /usr/bin/gettext ]; then
> echo="echo -n"
> export TEXTDOMAIN=libc
> $echo "cheese"
> echo ""
> $ LANG=es_ES; ./test-script
Thanks! It looks like this is the more portable version. The other
two suggestions require bash and although that is not really a problem
it would be nice to be able to use any /bin/sh compatible shell.
Now, how would I integrate this with my automake/autoconf/gettext
build machinery ...
Olaf Meeuwissen Epson Kowa Corporation, CID
GnuPG key: 6BE37D90/AB6B 0D1F 99E7 1BF5 EB97 976A 16C7 F27D 6BE3 7D90
LPIC-2 -- I hack, therefore I am -- BOFH
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com