# HG changeset patch # User Christophe Lincoln # Date 1269043341 -3600 # Node ID 722e056096549eecf3c526bb40ecd439ea298d0b # Parent c44be8c6a70310634c7fca4f7081fd1f6a6b1e03 gettextize subox and scpbox diff -r c44be8c6a703 -r 722e05609654 tinyutils/scpbox --- a/tinyutils/scpbox Sat Mar 20 00:49:04 2010 +0100 +++ b/tinyutils/scpbox Sat Mar 20 01:02:21 2010 +0100 @@ -5,98 +5,102 @@ # VERSION=20100314 +# Include gettext helper script. +. /usr/bin/gettext.sh + +# Export package name for gettext. +TEXTDOMAIN='scpbox' +export TEXTDOMAIN + +# Box export SCP_DIALOG=' - + + + + + + + + + + + + + + + + USER + + + + + + + + HOST + + + + + + + + -r -P 22 + SCP_OPTS + + + + + + + + + + + echo $HOME + LOCAL_PATH + + + + + + + + + REMOTE_PATH + + + + + + + + + + + +' - - - - - - - - - - - - - - USER - - - - - - - - HOST - - - - - - - - -r -P 22 - SCP_OPTS - - - - - - - - - - - echo $HOME - LOCAL_PATH - - - - - - - - - - REMOTE_PATH - - - - - - - - - - - - -' - -gtkdialog --program=SCP_DIALOG +gtkdialog --program=SCP_DIALOG >/dev/null exit 0 diff -r c44be8c6a703 -r 722e05609654 tinyutils/subox --- a/tinyutils/subox Sat Mar 20 00:49:04 2010 +0100 +++ b/tinyutils/subox Sat Mar 20 01:02:21 2010 +0100 @@ -1,9 +1,9 @@ -#! /bin/sh +#!/bin/sh # # Gtkdialog to execute program as root from a WM menu. -# - SliTaz GNU/Linux 2008. +# (c) SliTaz GNU/Linux 2008-2010 - GNU gpl. # -VERSION=20080113 +VERSION=20100314 # Usage. if [ -z "$1" ]; then @@ -13,51 +13,55 @@ fi # Nothing to do if we are root -test $(id -u) = 0 && exec $1 +test $(id -u) = 0 && exec $@ + +# Include gettext helper script. +. /usr/bin/gettext.sh + +# Export package name for gettext. +TEXTDOMAIN='subox' +export TEXTDOMAIN # Keep command in an exported variable to be used by SU_DIALOG. export SU_CMD=$@ # Main window and root password default entry set to 'root'. export SU_DIALOG=' - - + + - - + + + + + + + + + + + PASSWD + + + + + + + - - - - - - root - PASSWD - - - - - - - - - - -' + +' gtkdialog --center --program=SU_DIALOG + exit 0