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

Probleme mit Xdialog



Hallo Leute,

ich bin dabei, ein paar meine console tools mit Xdialog aufzupepen
und stoße unverhoft mit --treeview auf probleme...

Die folgende Datei sollte eigentlich vom ersten bis fünften Dialog
funktionieren, nur aufgrund eines unbekannten Fehlers funktioniert
es ab dem vierten Dialog nicht mehr

----8<--------------------------------------------------------------
#!/bin/bash

source gettext.sh
export TEXTDOMAIN=tdgettext
export TEXTDOMAINDIR=/home/michelle.konzack/locale

COMMAND=tdgettext
ICON=/home/michelle.konzack/pixmaps/64x64.tdgettext.xpm

AN="Michelle Konzack"
EM="linux4michelle@freenet.de"
PO="de fr ar tr fa"
AM="yes"
H_AUTHORNAME="Set the default author name for new translations."
H_AUTHORMAIL="Set the default author mail for new translations."
H_POLANGUAGES="The two letter country codes. Setup here all languages you want to generate automaticaly."
H_AUTOMERGE="If you create new POT files, it will automaticaly merge it with an older translation."
H_PROJECTS="The Folder where the projects are stored."
H_tdxmodmap="Help for tdxmodmap"

# First Dialog
Xdialog --wmclass $COMMAND --title "$COMMAND" --allow-close --center \
--screen-center --no-wrap --cr-wrap --stdout --buttons-style default \
--no-tags --item-help --icon "$ICON" --help "Test Help" \
--treeview "$(gettext 'First Dialog\n\nWorking Dialog!')" 360x480 0 \
AUTHORNAME              "Set author name ($AN)"              off  0  "$H_AUTHORNAME" \
AUTHORMAIL              "Set author mail ($EM)"              off  0  "$H_AUTHORMAIL" \
POLANGUAGES             "Set PO languages ($PO)"             off  0  "$H_POLANGUAGES" \
AUTOMERGE               "Automerge ($AM)"                    off  0  "$H_AUTOMERGE" \
PROJECTS                "Projects"                           on   0  "$H_PROJECTS" \
\
P_tdxmodmap             "tdxmodmap"                          on   1  "$H_tdxmodmap" \
P_tdxmodmap_0.1.0       "POT: 0.1.0"                         off  2  "" \
P_tdxmodmap_0.2.1       "POT: 0.2.1"                         on   2  "" \

# Second Dialog
Xdialog --wmclass $COMMAND --title "$COMMAND" --allow-close --center \
--screen-center --no-wrap --cr-wrap --stdout --buttons-style default \
--no-tags --item-help --icon "$ICON" --help "Test Help" \
--treeview "$(gettext 'Second Dialog\n\nWorking Dialog!')" 360x480 0 \
AUTHORNAME              "Set author name ($AN)"              off  0  "$H_AUTHORNAME" \
AUTHORMAIL              "Set author mail ($EM)"              off  0  "$H_AUTHORMAIL" \
POLANGUAGES             "Set PO languages ($PO)"             off  0  "$H_POLANGUAGES" \
AUTOMERGE               "Automerge ($AM)"                    off  0  "$H_AUTOMERGE" \
PROJECTS                "Projects"                           on   0  "$H_PROJECTS" \
\
P_tdxmodmap             "tdxmodmap"                          on   1  "$H_tdxmodmap" \
P_tdxmodmap_0.1.0       "POT: 0.1.0"                         off  2  "" \
P_tdxmodmap_0.1.0de1    "PO: de (revision 1)"                off  3  "" \
P_tdxmodmap_0.2.1       "POT: 0.2.1"                         on   2  "" \
P_tdxmodmap_0.2.1de1    "PO: de (revision 1)"                on   3  "" \

# Third Dialog
Xdialog --wmclass $COMMAND --title "$COMMAND" --allow-close --center \
--screen-center --no-wrap --cr-wrap --stdout --buttons-style default \
--no-tags --item-help --icon "$ICON" --help "Test Help" \
--treeview "$(gettext 'Third Dialog\n\nWorking Dialog!')" 360x480 0 \
AUTHORNAME              "Set author name ($AN)"              off  0  "$H_AUTHORNAME" \
AUTHORMAIL              "Set author mail ($EM)"              off  0  "$H_AUTHORMAIL" \
POLANGUAGES             "Set PO languages ($PO)"             off  0  "$H_POLANGUAGES" \
AUTOMERGE               "Automerge ($AM)"                    off  0  "$H_AUTOMERGE" \
PROJECTS                "Projects"                           on   0  "$H_PROJECTS" \
\
P_tdxmodmap             "tdxmodmap"                          on   1  "$H_tdxmodmap" \
P_tdxmodmap_0.1.0       "POT: 0.1.0"                         off  2  "" \
P_tdxmodmap_0.1.0de1    "PO: de (revision 1)"                off  3  "" \
P_tdxmodmap_0.2.1       "POT: 0.2.1"                         on   2  "" \
P_tdxmodmap_0.2.1de1    "PO: de (revision 1)"                on   3  "" \
P_tdxmodmap_0.2.1de1-A  "Translater: Michelle Konzack"       off  4  "" \
P_tdxmodmap_0.2.1de1-B  "E-Mail: linux4michelle@freenet.de"  off  4  "" \
P_tdxmodmap_0.2.1de1-C  "Date: 2006-06-19 01:54+0200"        off  4  "" \
P_tdxmodmap_0.2.1de1-D  "Charset: utf-8"                     off  4  ""

# Fourth Dialog
Xdialog --wmclass $COMMAND --title "$COMMAND" --allow-close --center \
--screen-center --no-wrap --cr-wrap --stdout --buttons-style default \
--no-tags --item-help --icon "$ICON" --help "Test Help" \
--treeview "$(gettext 'Fourth Dialog\n\nNot more working!')" 360x480 0 \
AUTHORNAME              "Set author name ($AN)"              off  0  "$H_AUTHORNAME" \
AUTHORMAIL              "Set author mail ($EM)"              off  0  "$H_AUTHORMAIL" \
POLANGUAGES             "Set PO languages ($PO)"             off  0  "$H_POLANGUAGES" \
AUTOMERGE               "Automerge ($AM)"                    off  0  "$H_AUTOMERGE" \
PROJECTS                "Projects"                           on   0  "$H_PROJECTS" \
\
P_tdxmodmap             "tdxmodmap"                          on   1  "$H_tdxmodmap" \
P_tdxmodmap_0.1.0       "POT: 0.1.0"                         off  2  "" \
P_tdxmodmap_0.1.0de1    "PO: de (revision 1)"                off  3  "" \
P_tdxmodmap_0.1.0de1-A  "Translater: Michelle Konzack"       off  4  "" \
P_tdxmodmap_0.1.0de1-B  "E-Mail: linux4michelle@freenet.de"  off  4  "" \
P_tdxmodmap_0.1.0de1-C  "Date: 2006-06-19 01:45+0200"        off  4  "" \
P_tdxmodmap_0.1.0de1-D  "Charset: utf-8"                     off  4  "" \
P_tdxmodmap_0.2.1       "POT: 0.2.1"                         on   2  "" \
P_tdxmodmap_0.2.1de1    "PO: de (revision 1)"                on   3  "" \

# Fiveth Dialog
Xdialog --wmclass $COMMAND --title "$COMMAND" --allow-close --center \
--screen-center --no-wrap --cr-wrap --stdout --buttons-style default \
--no-tags --item-help --icon "$ICON" --help "Test Help" \
--treeview "$(gettext 'Fiveth Dialog\n\nNot more working!')" 360x480 0 \
AUTHORNAME              "Set author name ($AN)"              off  0  "$H_AUTHORNAME" \
AUTHORMAIL              "Set author mail ($EM)"              off  0  "$H_AUTHORMAIL" \
POLANGUAGES             "Set PO languages ($PO)"             off  0  "$H_POLANGUAGES" \
AUTOMERGE               "Automerge ($AM)"                    off  0  "$H_AUTOMERGE" \
PROJECTS                "Projects"                           on   0  "$H_PROJECTS" \
\
P_tdxmodmap             "tdxmodmap"                          on   1  "$H_tdxmodmap" \
P_tdxmodmap_0.1.0       "POT: 0.1.0"                         off  2  "" \
P_tdxmodmap_0.1.0de1    "PO: de (revision 1)"                off  3  "" \
P_tdxmodmap_0.1.0de1-A  "Translater: Michelle Konzack"       off  4  "" \
P_tdxmodmap_0.1.0de1-B  "E-Mail: linux4michelle@freenet.de"  off  4  "" \
P_tdxmodmap_0.1.0de1-C  "Date: 2006-06-19 01:45+0200"        off  4  "" \
P_tdxmodmap_0.1.0de1-D  "Charset: utf-8"                     off  4  "" \
P_tdxmodmap_0.2.1       "POT: 0.2.1"                         on   2  "" \
P_tdxmodmap_0.2.1de1    "PO: de (revision 1)"                on   3  "" \
P_tdxmodmap_0.2.1de1-A  "Translater: Michelle Konzack"       off  4  "" \
P_tdxmodmap_0.2.1de1-B  "E-Mail: linux4michelle@freenet.de"  off  4  "" \
P_tdxmodmap_0.2.1de1-C  "Date: 2006-06-19 01:54+0200"        off  4  "" \
P_tdxmodmap_0.2.1de1-D  "Charset: utf-8"                     off  4  ""

----8<--------------------------------------------------------------

Habe bereits den Dialog von Grund auf neu geschrieben und alles
überprüft, aber ich finde nicht den Fehler...  :-(

Jemand mit besseren Augen?


Greetings
    Michelle Konzack


-- 
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)



Reply to: