# HG changeset patch # User Christophe Lincoln # Date 1333475465 -7200 # Node ID 6f171d79db652977a3520c5c446783e2eed65ad9 # Parent 95129e40c9dfc77f596e29609c9507239b9e47fc Small fixes and improvment diff -r 95129e40c9df -r 6f171d79db65 tazbug-box --- a/tazbug-box Tue Apr 03 19:18:26 2012 +0200 +++ b/tazbug-box Tue Apr 03 19:51:05 2012 +0200 @@ -26,7 +26,12 @@ # Output cmd in GTK box. output() { yad $opts --text-info --text="SliTaz Bug" --title="SliTaz Bug" \ - --margins=8 --tail $btns --button="gtk-close":1 + --margins=8 --tail --button="$(gettext "My account"):0" \ + --button="gtk-close":1 + case $? in + 0) $0 account ;; + 1) exit 0 ;; + esac } # New message box @@ -36,6 +41,7 @@ --text="SliTaz Bugs Message" \ --field="$(gettext "Bug ID")":NUM \ --field="$(gettext "Message")":TXT \ + --button="$(gettext "New bug"):2" \ --button="$(gettext "Send message"):0" \ --button="gtk-close:1" } @@ -48,6 +54,7 @@ # Deal with --button values case $ret in 1) exit 0 ;; + 2) $0 new-bug && exit 0 ;; *) continue ;; esac id="$(echo $main | cut -d "|" -f 1 | cut -d "," -f 1)" @@ -98,10 +105,16 @@ # Account information. account_info() { . $HOME/.config/slitaz/account.conf - echo -e "Name\n$NAME -Login\n$LOGIN -Mail\n$MAIL -Secure key\n$KEY" + cat << EOT +$(gettext "Real name") +$NAME +$(gettext "User name") +$USER +Email +$MAIL +$(gettext "Secure key") +$KEY +EOT } # Main GUI box function with pure Yad spec @@ -162,7 +175,7 @@ user="$(echo $main | cut -d "|" -f 2)" mail="$(echo $main | cut -d "|" -f 3)" pass="$(echo $main | cut -d "|" -f 4)" - ./tazbug signup --name="$name" --user=$user --mail=$mail \ + tazbug signup --name="$name" --user=$user --mail=$mail \ --pass="$pass" | output }