[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

i18l, gettext and (X)dialog



Hello,

I have gotten a couple of tools and frontends which are
using (X)dialog but unfortunatly they are only in english.
OK, no problem, - I was thinking...

Most displayed text are now i18n but there is a problem
with "--backtitle" in (X)dialog.

Example:

Xdialog --title "sampleprogi" --screen-center --no-cancel --wrap \
        --backtitle "Here a text which show $FOO BAR" --fixed-font \
        --textbox $FILE 30 $DLGW

this is working fine, but I want the Backtitle i18n.
So I have tried:

BACKTITLE=`eval_gettext "Here a text which show \$FOO BAR"`
Xdialog --title "sampleprogi" --screen-center --no-cancel --wrap \
        --backtitle "$BACKTITLE" --fixed-font \
        --textbox $FILE 30 $DLGW

RESULT: not working
(xgettext does not find the string, because it runs in a new shell)

Xdialog --title "sampleprogi" --screen-center --no-cancel --wrap \
        --backtitle "`eval_gettext \"Here a text which show \$FOO BAR\"`" \
        --fixed-font --textbox $FILE 30 $DLGW

RESULT: not working, same problem as above.

Does anyone know, how to get this running?

Oh yes, the old version $"Some text to translate." was working fine,
but it is deprecated and a security problem.

Greetings
    Michelle


-- 
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/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)



Reply to: