slitaz-tools rev 282
desktopbox: translate logout dialog buttons
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Dec 30 10:55:32 2008 +0100 (2008-12-30) |
parents | bb9eadd784aa |
children | a92db13ae903 |
files | tinyutils/desktopbox |
line diff
1.1 --- a/tinyutils/desktopbox Mon Dec 29 22:39:09 2008 +0000 1.2 +++ b/tinyutils/desktopbox Tue Dec 30 10:55:32 2008 +0100 1.3 @@ -22,8 +22,12 @@ 1.4 NEW_FILE_LABEL="Create a new file on the desktop:" 1.5 FILE_ENTRY_MSG="filename" 1.6 ADD_ICON_LABEL="Add some desktop icons" 1.7 + CHARS_SIZE="64" 1.8 DESKTOP_DIALOG_TAZUSB="Save filesystem using compression" 1.9 - DESKTOP_DIALOG_LABEL="Session logout, system shutdown or reboot" ;; 1.10 + DESKTOP_DIALOG_LABEL="Session logout, system shutdown or reboot" 1.11 + DESKTOP_LOGOUT_BUTTON="Logout X session" 1.12 + DESKTOP_SHUTDOWN_BUTTON="Shutdown computer" 1.13 + DESKTOP_REBOOT_BUTTON="Reboot system" ;; 1.14 fr*) 1.15 lang="fr" 1.16 NEW_FOLDER_LABEL="Créer un nouveau dossier sur le bureau:" 1.17 @@ -31,8 +35,12 @@ 1.18 NEW_FILE_LABEL="Créer un nouveau fichier sur le bureau:" 1.19 FILE_ENTRY_MSG="fichier" 1.20 ADD_ICON_LABEL="Ajouter des icônes de bureau" 1.21 + CHARS_SIZE="72" 1.22 DESKTOP_DIALOG_TAZUSB="Enregistrer le système avec la compression" 1.23 - DESKTOP_DIALOG_LABEL="Déconnexion, arrêt ou redémarrage du système" ;; 1.24 + DESKTOP_DIALOG_LABEL="Déconnexion, arrêt ou redémarrage du système" 1.25 + DESKTOP_LOGOUT_BUTTON="Fermer la session X" 1.26 + DESKTOP_SHUTDOWN_BUTTON="Eteindre le système" 1.27 + DESKTOP_REBOOT_BUTTON="Redémarrer le système" ;; 1.28 *) 1.29 lang="" 1.30 NEW_FOLDER_LABEL="Create a new folder on the desktop:" 1.31 @@ -40,8 +48,12 @@ 1.32 NEW_FILE_LABEL="Create a new file on the desktop:" 1.33 FILE_ENTRY_MSG="filename" 1.34 ADD_ICON_LABEL="Add some desktop icons" 1.35 + CHARS_SIZE="64" 1.36 DESKTOP_DIALOG_TAZUSB="Save filesystem using compression" 1.37 - DESKTOP_DIALOG_LABEL="Session logout, system shutdown or reboot" ;; 1.38 + DESKTOP_DIALOG_LABEL="Session logout, system shutdown or reboot" 1.39 + DESKTOP_LOGOUT_BUTTON="Logout X session" 1.40 + DESKTOP_SHUTDOWN_BUTTON="Shutdown computer" 1.41 + DESKTOP_REBOOT_BUTTON="Reboot system" ;; 1.42 esac 1.43 1.44 # Command line usage. 1.45 @@ -197,7 +209,7 @@ 1.46 <input file>/usr/share/icons/Tango/32x32/places/user-desktop.png</input> 1.47 </pixmap> 1.48 <hbox> 1.49 - <text use-markup=\"true\" width-chars=\"64\"> 1.50 + <text use-markup=\"true\" width-chars=\"$CHARS_SIZE\"> 1.51 <label> 1.52 \"<b>$DESKTOP_DIALOG_LABEL</b> 1.53 \" 1.54 @@ -230,19 +242,19 @@ 1.55 ACTIONS=" 1.56 <hbox> 1.57 <button> 1.58 - <label>Logout X session</label> 1.59 + <label>$DESKTOP_LOGOUT_BUTTON</label> 1.60 <input file icon=\"video-display\"></input> 1.61 <action>$EXTRA openbox --exit || jwm -exit</action> 1.62 <action type=\"exit\">Exit</action> 1.63 </button> 1.64 <button> 1.65 - <label>Shutdown computer</label> 1.66 + <label>$DESKTOP_SHUTDOWN_BUTTON</label> 1.67 <input file icon=\"system-shutdown\"></input> 1.68 <action>$EXTRA poweroff</action> 1.69 <action type=\"exit\">Exit</action> 1.70 </button> 1.71 <button> 1.72 - <label>Reboot system</label> 1.73 + <label>$DESKTOP_REBOOT_BUTTON</label> 1.74 <input file icon=\"reload\"></input> 1.75 <action>$EXTRA reboot</action> 1.76 <action type=\"exit\">Exit</action> 1.77 @@ -251,7 +263,6 @@ 1.78 <action type=\"exit\">Exit</action> 1.79 </button> 1.80 </hbox> 1.81 - 1.82 </vbox> 1.83 </window>" 1.84 export DESKTOP_DIALOG=${DESKTOP_DIALOG}${TAZUSB_DIALOG}${ACTIONS} ;;