slitaz-tools diff installer/tazinst @ rev 655
tazinst: French locale added
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Wed Jul 20 15:29:22 2011 +0200 (2011-07-20) |
parents | 15546925dd96 |
children | a339d3240495 |
line diff
1.1 --- a/installer/tazinst Tue Jul 19 22:52:27 2011 +0200 1.2 +++ b/installer/tazinst Wed Jul 20 15:29:22 2011 +0200 1.3 @@ -19,7 +19,12 @@ 1.4 # 6: No SliTaz system to upgrade found 1.5 # 8: Internal error 1.6 1.7 -VERSION=3.0 1.8 +VERSION=3.01 1.9 + 1.10 +# Internationalization 1.11 +. /usr/bin/gettext.sh 1.12 +TEXTDOMAIN='tazinst' 1.13 +export TEXTDOMAIN 1.14 1.15 SOURCE_ROOT=/media/source 1.16 TARGET_ROOT=/mnt/target 1.17 @@ -39,13 +44,13 @@ 1.18 { 1.19 echo -e "\n`gettext \"Tazinst - SliTaz installer - Version\"`: $VERSION\n" 1.20 echo -e "\033[1m`gettext \"Usage\"`:" 1.21 - echo -e "\033[0m `gettext \"tazinst [command] [config-file]\n\"`" 1.22 + echo -e "\033[0m `gettext \"tazinst [command] [config-file]\"`\n" 1.23 echo -e "\033[1m`gettext \"Commands\"`: \033[0m" 1.24 - echo -e "`gettext \"usage Print this short usage.\"`" 1.25 - echo -e "`gettext \"install Install SliTaz on HDD using a configuration file.\"`" 1.26 - echo -e "`gettext \"upgrade Upgrade SliTaz on HDD using a configuration file.\"`" 1.27 - echo -e "`gettext \"config Generate a configuration file.\"`" 1.28 - echo -e "`gettext \"cli Install or upgrade using command line options:\"`" 1.29 + echo -e "usage `gettext \"Print this short usage.\"`" 1.30 + echo -e "install `gettext \"Install SliTaz on HDD using a configuration file.\"`" 1.31 + echo -e "upgrade `gettext \"Upgrade SliTaz on HDD using a configuration file.\"`" 1.32 + echo -e "config `gettext \"Generate a configuration file.\"`" 1.33 + echo -e "cli `gettext \"Install or upgrade using command line options:\"`" 1.34 echo -e " -i `gettext \"Full Install (not upgrading, all present data will be lost).\"`" 1.35 echo -e " -u `gettext \"Upgrade (Needs an active internet connection).\"`" 1.36 echo -e " -t <type> `gettext \"Install type (cdrom|usb|iso|web|weboot).\"`" 1.37 @@ -528,7 +533,7 @@ 1.38 echo -ne "`gettext \"Continue:(y/n)\"`" 1.39 read answer 1.40 case $answer in 1.41 - [yY]) echo -e "`gettext \"Running $BACKLIST..\"`" ;; 1.42 + [oOyY]) echo -e "`gettext \"Running $BACKLIST..\"`" ;; 1.43 *) abort 4 `gettext "Cancelled by user"` ;; 1.44 esac 1.45 STEP=0