[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug#374483: gettext does not detect "gettext" and "eval_gettext" str
From: |
Michelle Konzack |
Subject: |
Re: Bug#374483: gettext does not detect "gettext" and "eval_gettext" strings in Shell scripts (fwd) |
Date: |
Fri, 11 Aug 2006 20:57:12 -0000 |
Am 2006-06-20 14:06:51, schrieb Bruno Haible:
> Hi,
>
> Michelle Konzack wrote:
> > If I create my POT file, gettext does not detect gettext strings if I
> > use for example
> >
> > Xdialog --title "gettext test" \
> > --backtitle "$(gettext 'This is a gettext test.')" \
> > --msgbox "$(gettext 'Hey maintainer, I like gettext supporting
> > this.')" 0x0
>
> Indeed, xgettext so far only supports the backquoted syntax
Right and the suggestion to remove the outher quotes is not realy good,
since in Xdialog the line
Xdialog --msgbox $(gettext 'I like gettext supporting this.') 0x0
become
Xdialog --msgbox I like gettext supporting this. 0x0
which mean, Xdialog think, each word of the phrase is a parameter...
> Xdialog --title "gettext test" \
> --backtitle "`gettext 'This is a gettext test.'`" \
> --msgbox "`gettext 'Hey maintainer, I like gettext supporting
> this.'`" 0x0
> But I'm not recommending that you change your scripts to use this antique
> backquote syntax. The $(...) syntax is so much better. Please have a little
> patience until xgettext support for it is added.
No problem I will wait for the new feature... like to test it.
Sometimes I have experienced errors using the backticks so I have
changed all of my scripts using $() construchts whichg are working
perfectly and went suggested by several developers.
> Thanks for the report! It's only through such reports that I get aware of
> such "small" missing features.
I know ;-)
But keep attention if they are some constructs like:
RETVAL=$(Xdialog --title "gettext test" \
--backtitle "$(gettext 'This is a gettext test.')" \
--inputbox "$(gettext 'I like gettext supporting this.')" 0x0 $INIT)
With my script which replace currently xgettext I had some problems...
:-)
But now it works...
> Bruno
Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Bug#374483: gettext does not detect "gettext" and "eval_gettext" strings in Shell scripts (fwd),
Michelle Konzack <=