tazusb rev 91

Add i18n support to tazusb
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Aug 31 11:42:36 2011 +0200 (2011-08-31)
parents b65e12e46feb
children 25cd66d009cf
files po/tazusb/fr.po po/tazusb/tazusb.pot tazusb
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/po/tazusb/fr.po	Wed Aug 31 11:42:36 2011 +0200
     1.3 @@ -0,0 +1,277 @@
     1.4 +#
     1.5 +# Copyright (C) 2011
     1.6 +# This file is distributed under the same license as the TazUSB package.
     1.7 +# Eric Joseph-Alexandre <erjo@slitaz.org>, 2011.
     1.8 +#
     1.9 +#, fuzzy
    1.10 +msgid ""
    1.11 +msgstr ""
    1.12 +"Project-Id-Version: TazUSB 3.0\n"
    1.13 +"Report-Msgid-Bugs-To: erjo@slitaz.org\n"
    1.14 +"POT-Creation-Date: 2011-06-07 12:18+0200\n"
    1.15 +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1.16 +"Last-Translator: Eric Joseph-Alexandre <erjo@slitaz.org>\n"
    1.17 +"Language-Team: LANGUAGE <LL@li.org>\n"
    1.18 +"Language: Franch\n"
    1.19 +"MIME-Version: 1.0\n"
    1.20 +"Content-Type: text/plain; charset=CHARSET\n"
    1.21 +"Content-Transfer-Encoding: 8bit\n"
    1.22 +
    1.23 +#: tazusbbox:50
    1.24 +msgid "Ok"
    1.25 +msgstr ""
    1.26 +
    1.27 +#: tazusb:52
    1.28 +msgid "Failed"
    1.29 +msgstr ""
    1.30 +
    1.31 +#: tazusb:53
    1.32 +msgid "ISO to USB (Optional default is CDROM)"
    1.33 +msgstr ""
    1.34 +
    1.35 +#: tazusb:61
    1.36 +msgid "This program requires being run as root."
    1.37 +msgstr ""
    1.38 +
    1.39 +#: tazusb:78
    1.40 +msgid ""
    1.41 +"Please specify the target USB device to $COMMAND. You can type 'list' to\n"
    1.42 +"get a list of devices, type 'exit' or give an empty value to exit.\n"
    1.43 +"\n"
    1.44 +"Device to use : "
    1.45 +msgstr ""
    1.46 +
    1.47 +#: tazusb:84
    1.48 +msgid "Device to use : "
    1.49 +msgstr ""
    1.50 +
    1.51 +#: tazusb:87
    1.52 +msgid "No specified device or exit."
    1.53 +msgstr ""
    1.54 +
    1.55 +#: tazusb:99
    1.56 +msgid "Unable to find device: $DEVICE"
    1.57 +msgstr ""
    1.58 +
    1.59 +#: tazusb:114
    1.60 +msgid "Please specify a label for the partition (TazUSB): "
    1.61 +msgstr ""
    1.62 +
    1.63 +#: tazusb:121
    1.64 +msgid "Label  : $label"
    1.65 +msgstr ""
    1.66 +
    1.67 +#: tazusb:122
    1.68 +msgid "Mkfs   : mkfs.ext3 -L \"$label\" $DEVICE"
    1.69 +msgstr ""
    1.70 +
    1.71 +#: tazusb:131
    1.72 +msgid "Please specify a label for the partition (TazUSB): "
    1.73 +msgstr ""
    1.74 +
    1.75 +#: tazusb:142
    1.76 +msgid "Please specify a filesystem type ext2, ext3 or fat32 (ext3): "
    1.77 +msgstr ""
    1.78 +
    1.79 +#: tazusb:153
    1.80 +msgid ""
    1.81 +"Please specify the filesystem type to $COMMAND.\n"
    1.82 +"Available formats are ext3(default), ext2 or fat32.\n"
    1.83 +"Press enter to keep the default value.\n"
    1.84 +"\n"
    1.85 +"File system type : "
    1.86 +msgstr ""
    1.87 +
    1.88 +#: tazusb:175
    1.89 +msgid "\nProcessing..."
    1.90 +msgstr ""
    1.91 +
    1.92 +#: tazusb:176
    1.93 +msgid "Label  : $label"
    1.94 +msgstr ""
    1.95 +
    1.96 +#: tazusb:177
    1.97 +msgid "Mkfs   : mkfs.$FS -L \"$label\" $DEVICE"
    1.98 +msgstr ""
    1.99 +
   1.100 +#: tazusb:183
   1.101 +msgid "Processing..."
   1.102 +msgstr ""
   1.103 +
   1.104 +#: tazusb:184
   1.105 +msgid "Label  : $label"
   1.106 +msgstr ""
   1.107 +
   1.108 +#: tazusb:185
   1.109 +msgid "Mkfs   : mkdosfs -F 32 -n \"$label\" $DEVICE"
   1.110 +msgstr ""
   1.111 +
   1.112 +#: tazusb:189
   1.113 +msgid "Can't find mkdosfs tool.\nWould you like to install dosfstools from repository [y/N] ? "
   1.114 +msgstr ""
   1.115 +
   1.116 +#: tazusb:199
   1.117 +msgid "Sorry. Filesystem $FS is not supported."
   1.118 +msgstr ""
   1.119 +
   1.120 +#: tazusb:214
   1.121 +msgid "Unmounting USB target device..."
   1.122 +msgstr ""
   1.123 +
   1.124 +#: tazusb:222
   1.125 +msgid "Mounting USB target device..."
   1.126 +msgstr ""
   1.127 +
   1.128 +#: tazusb:241
   1.129 +msgid "Unable to mount cdrom or to find a filesystem on it (rootfs.gz)."
   1.130 +msgstr ""
   1.131 +
   1.132 +#: tazusb:262
   1.133 +msgid "Mounting `basename $ISO`..."
   1.134 +msgstr ""
   1.135 +
   1.136 +#: tazusb:267
   1.137 +msgid "Unable to mount iso or to find a filesystem on it (rootfs.gz)."
   1.138 +msgstr ""
   1.139 +
   1.140 +#: tazusb:275
   1.141 +msgid "Copying needed files from cdrom..."
   1.142 +msgstr ""
   1.143 +
   1.144 +#: tazusb:294
   1.145 +msgid "Installing a new MBR to: $DISK"
   1.146 +msgstr ""
   1.147 +
   1.148 +#: tazusb:299
   1.149 +msgid "No new MBR installed to: $DISK"
   1.150 +msgstr ""
   1.151 +
   1.152 +#: tazusb:317
   1.153 +msgid "Installing bootloader: $ST"
   1.154 +msgstr ""
   1.155 +
   1.156 +#: tazusb:371
   1.157 +msgid "Do you want to exit Tazusb or reboot system (Exit/reboot) ? "
   1.158 +msgstr ""
   1.159 +
   1.160 +#: tazusb:394
   1.161 +msgid "Setting $DEVICE as bootable..."
   1.162 +msgstr ""
   1.163 +
   1.164 +#: tazusb:409
   1.165 +msgid "Gen swap"
   1.166 +msgstr ""
   1.167 +
   1.168 +#: tazusb:411
   1.169 +msgid ""
   1.170 +"Generate a swap file in /home/swap that will be activated on each boot to have\n"
   1.171 +"more memory available (Empty value to exit).\n"
   1.172 +"\n"
   1.173 +"Swap file in Mb : "
   1.174 +msgstr ""
   1.175 +
   1.176 +#: tazusb:417
   1.177 +msgid "Empty value. Exiting..."
   1.178 +msgstr ""
   1.179 +
   1.180 +#: tazusb:437
   1.181 +msgid "Clean"
   1.182 +msgstr ""
   1.183 +
   1.184 +#: tazusb:439
   1.185 +msgid "Remove old rootfs.gz.unixtimestamp backup filesystems to free up disk space."
   1.186 +msgstr ""
   1.187 +
   1.188 +#: tazusb:443
   1.189 +msgid "Do you wish to remove: `basename $file` (Yes/no/exit) ? "
   1.190 +msgstr ""
   1.191 +
   1.192 +#: tazusb:451
   1.193 +msgid "No filesystems selected, exiting..."
   1.194 +msgstr ""
   1.195 +
   1.196 +#: tazusb:471
   1.197 +msgid "Write filesystem"
   1.198 +msgstr ""
   1.199 +
   1.200 +#: tazusb:473
   1.201 +msgid ""
   1.202 +"The command writefs will write all the current filesystem into a suitable cpio\"
   1.203 +"archive (rootfs.gz) usable on a bootable LiveUSB media.\n" 
   1.204 +"\n"
   1.205 +"Archive compression: $COMPRESSION"
   1.206 +msgstr ""
   1.207 +
   1.208 +#: tazusb:483
   1.209 +msgid "Do you wish to remove the sound card selection (No/yes/exit) ? "
   1.210 +msgstr ""
   1.211 +
   1.212 +#: tazusb:489
   1.213 +msgid "Removing current sound card selection..."
   1.214 +msgstr ""
   1.215 +
   1.216 +#: tazusb:493
   1.217 +msgid "Keeping current sound card selection..."
   1.218 +msgstr ""
   1.219 +
   1.220 +#: tazusb:503
   1.221 +msgid "Removing current screen resolution..."
   1.222 +msgstr ""
   1.223 +
   1.224 +#: tazusb:506
   1.225 +msgid "Keeping current screen resolution..."
   1.226 +msgstr ""
   1.227 +
   1.228 +#: tazusb:520
   1.229 +msgid "Creating rootfs.gz with lzma compression... "
   1.230 +msgstr ""
   1.231 +
   1.232 +#: tazusb:524
   1.233 +msgid "Creating rootfs.gz with gzip compression... "
   1.234 +msgstr ""
   1.235 +
   1.236 +#: tazusb:528
   1.237 +msgid "Creating rootfs.gz without compression... "
   1.238 +msgstr ""
   1.239 +
   1.240 +#: tazusb:537
   1.241 +msgid "Moving rootfs.gz to media. Remember to unmount for delayed writes!"
   1.242 +msgstr ""
   1.243 +
   1.244 +#: tazusb:547
   1.245 +msgid "rootfs.gz is located in /"
   1.246 +msgstr ""
   1.247 +
   1.248 +#: tazusb:551
   1.249 +msgid "Root filesystem size: $size"
   1.250 +msgstr ""
   1.251 +
   1.252 +#: tazusb:553
   1.253 +msgid "ENTER to continue..."
   1.254 +msgstr ""
   1.255 +
   1.256 +#: tazusb:559
   1.257 +msgid "Format a device"
   1.258 +msgstr ""
   1.259 +
   1.260 +#: tazusb:568
   1.261 +msgid "Device : $DEVICE"
   1.262 +msgstr ""
   1.263 +
   1.264 +#: tazusb:576
   1.265 +msgid "Device $label ($DEVICE) is ready to use as LiveUSB and/or /home partition."
   1.266 +msgstr ""
   1.267 +
   1.268 +#: tazusb:583
   1.269 +msgid "Gen a LiveUSB media"
   1.270 +msgstr ""
   1.271 +
   1.272 +#: tazusb:611
   1.273 +msgid "Please specify a valid filename on the command line."
   1.274 +msgstr ""
   1.275 +
   1.276 +#: tazusb:615
   1.277 +msgid "Copy ISO file to SliTaz LiveUSB media"
   1.278 +msgstr ""
   1.279 +
   1.280 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/po/tazusb/tazusb.pot	Wed Aug 31 11:42:36 2011 +0200
     2.3 @@ -0,0 +1,277 @@
     2.4 +#
     2.5 +# Copyright (C) 2011
     2.6 +# This file is distributed under the same license as the TazUSB package.
     2.7 +# Eric Joseph-Alexandre <erjo@slitaz.org>, 2011.
     2.8 +#
     2.9 +#, fuzzy
    2.10 +msgid ""
    2.11 +msgstr ""
    2.12 +"Project-Id-Version: TazUSB 3.0\n"
    2.13 +"Report-Msgid-Bugs-To: erjo@slitaz.org\n"
    2.14 +"POT-Creation-Date: 2011-06-07 12:18+0200\n"
    2.15 +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    2.16 +"Last-Translator: Eric Joseph-Alexandre <erjo@slitaz.org>\n"
    2.17 +"Language-Team: LANGUAGE <LL@li.org>\n"
    2.18 +"Language: Franch\n"
    2.19 +"MIME-Version: 1.0\n"
    2.20 +"Content-Type: text/plain; charset=CHARSET\n"
    2.21 +"Content-Transfer-Encoding: 8bit\n"
    2.22 +
    2.23 +#: tazusbbox:50
    2.24 +msgid "Ok"
    2.25 +msgstr ""
    2.26 +
    2.27 +#: tazusb:52
    2.28 +msgid "Failed"
    2.29 +msgstr ""
    2.30 +
    2.31 +#: tazusb:53
    2.32 +msgid "ISO to USB (Optional default is CDROM)"
    2.33 +msgstr ""
    2.34 +
    2.35 +#: tazusb:61
    2.36 +msgid "This program requires being run as root."
    2.37 +msgstr ""
    2.38 +
    2.39 +#: tazusb:78
    2.40 +msgid ""
    2.41 +"Please specify the target USB device to $COMMAND. You can type 'list' to\n"
    2.42 +"get a list of devices, type 'exit' or give an empty value to exit.\n"
    2.43 +"\n"
    2.44 +"Device to use : "
    2.45 +msgstr ""
    2.46 +
    2.47 +#: tazusb:84
    2.48 +msgid "Device to use : "
    2.49 +msgstr ""
    2.50 +
    2.51 +#: tazusb:87
    2.52 +msgid "No specified device or exit."
    2.53 +msgstr ""
    2.54 +
    2.55 +#: tazusb:99
    2.56 +msgid "Unable to find device: $DEVICE"
    2.57 +msgstr ""
    2.58 +
    2.59 +#: tazusb:114
    2.60 +msgid "Please specify a label for the partition (TazUSB): "
    2.61 +msgstr ""
    2.62 +
    2.63 +#: tazusb:121
    2.64 +msgid "Label  : $label"
    2.65 +msgstr ""
    2.66 +
    2.67 +#: tazusb:122
    2.68 +msgid "Mkfs   : mkfs.ext3 -L \"$label\" $DEVICE"
    2.69 +msgstr ""
    2.70 +
    2.71 +#: tazusb:131
    2.72 +msgid "Please specify a label for the partition (TazUSB): "
    2.73 +msgstr ""
    2.74 +
    2.75 +#: tazusb:142
    2.76 +msgid "Please specify a filesystem type ext2, ext3 or fat32 (ext3): "
    2.77 +msgstr ""
    2.78 +
    2.79 +#: tazusb:153
    2.80 +msgid ""
    2.81 +"Please specify the filesystem type to $COMMAND.\n"
    2.82 +"Available formats are ext3(default), ext2 or fat32.\n"
    2.83 +"Press enter to keep the default value.\n"
    2.84 +"\n"
    2.85 +"File system type : "
    2.86 +msgstr ""
    2.87 +
    2.88 +#: tazusb:175
    2.89 +msgid "\nProcessing..."
    2.90 +msgstr ""
    2.91 +
    2.92 +#: tazusb:176
    2.93 +msgid "Label  : $label"
    2.94 +msgstr ""
    2.95 +
    2.96 +#: tazusb:177
    2.97 +msgid "Mkfs   : mkfs.$FS -L \"$label\" $DEVICE"
    2.98 +msgstr ""
    2.99 +
   2.100 +#: tazusb:183
   2.101 +msgid "Processing..."
   2.102 +msgstr ""
   2.103 +
   2.104 +#: tazusb:184
   2.105 +msgid "Label  : $label"
   2.106 +msgstr ""
   2.107 +
   2.108 +#: tazusb:185
   2.109 +msgid "Mkfs   : mkdosfs -F 32 -n \"$label\" $DEVICE"
   2.110 +msgstr ""
   2.111 +
   2.112 +#: tazusb:189
   2.113 +msgid "Can't find mkdosfs tool.\nWould you like to install dosfstools from repository [y/N] ? "
   2.114 +msgstr ""
   2.115 +
   2.116 +#: tazusb:199
   2.117 +msgid "Sorry. Filesystem $FS is not supported."
   2.118 +msgstr ""
   2.119 +
   2.120 +#: tazusb:214
   2.121 +msgid "Unmounting USB target device..."
   2.122 +msgstr ""
   2.123 +
   2.124 +#: tazusb:222
   2.125 +msgid "Mounting USB target device..."
   2.126 +msgstr ""
   2.127 +
   2.128 +#: tazusb:241
   2.129 +msgid "Unable to mount cdrom or to find a filesystem on it (rootfs.gz)."
   2.130 +msgstr ""
   2.131 +
   2.132 +#: tazusb:262
   2.133 +msgid "Mounting `basename $ISO`..."
   2.134 +msgstr ""
   2.135 +
   2.136 +#: tazusb:267
   2.137 +msgid "Unable to mount iso or to find a filesystem on it (rootfs.gz)."
   2.138 +msgstr ""
   2.139 +
   2.140 +#: tazusb:275
   2.141 +msgid "Copying needed files from cdrom..."
   2.142 +msgstr ""
   2.143 +
   2.144 +#: tazusb:294
   2.145 +msgid "Installing a new MBR to: $DISK"
   2.146 +msgstr ""
   2.147 +
   2.148 +#: tazusb:299
   2.149 +msgid "No new MBR installed to: $DISK"
   2.150 +msgstr ""
   2.151 +
   2.152 +#: tazusb:317
   2.153 +msgid "Installing bootloader: $ST"
   2.154 +msgstr ""
   2.155 +
   2.156 +#: tazusb:371
   2.157 +msgid "Do you want to exit Tazusb or reboot system (Exit/reboot) ? "
   2.158 +msgstr ""
   2.159 +
   2.160 +#: tazusb:394
   2.161 +msgid "Setting $DEVICE as bootable..."
   2.162 +msgstr ""
   2.163 +
   2.164 +#: tazusb:409
   2.165 +msgid "Gen swap"
   2.166 +msgstr ""
   2.167 +
   2.168 +#: tazusb:411
   2.169 +msgid ""
   2.170 +"Generate a swap file in /home/swap that will be activated on each boot to have\n"
   2.171 +"more memory available (Empty value to exit).\n"
   2.172 +"\n"
   2.173 +"Swap file in Mb : "
   2.174 +msgstr ""
   2.175 +
   2.176 +#: tazusb:417
   2.177 +msgid "Empty value. Exiting..."
   2.178 +msgstr ""
   2.179 +
   2.180 +#: tazusb:437
   2.181 +msgid "Clean"
   2.182 +msgstr ""
   2.183 +
   2.184 +#: tazusb:439
   2.185 +msgid "Remove old rootfs.gz.unixtimestamp backup filesystems to free up disk space."
   2.186 +msgstr ""
   2.187 +
   2.188 +#: tazusb:443
   2.189 +msgid "Do you wish to remove: `basename $file` (Yes/no/exit) ? "
   2.190 +msgstr ""
   2.191 +
   2.192 +#: tazusb:451
   2.193 +msgid "No filesystems selected, exiting..."
   2.194 +msgstr ""
   2.195 +
   2.196 +#: tazusb:471
   2.197 +msgid "Write filesystem"
   2.198 +msgstr ""
   2.199 +
   2.200 +#: tazusb:473
   2.201 +msgid ""
   2.202 +"The command writefs will write all the current filesystem into a suitable cpio\"
   2.203 +"archive (rootfs.gz) usable on a bootable LiveUSB media.\n" 
   2.204 +"\n"
   2.205 +"Archive compression: $COMPRESSION"
   2.206 +msgstr ""
   2.207 +
   2.208 +#: tazusb:483
   2.209 +msgid "Do you wish to remove the sound card selection (No/yes/exit) ? "
   2.210 +msgstr ""
   2.211 +
   2.212 +#: tazusb:489
   2.213 +msgid "Removing current sound card selection..."
   2.214 +msgstr ""
   2.215 +
   2.216 +#: tazusb:493
   2.217 +msgid "Keeping current sound card selection..."
   2.218 +msgstr ""
   2.219 +
   2.220 +#: tazusb:503
   2.221 +msgid "Removing current screen resolution..."
   2.222 +msgstr ""
   2.223 +
   2.224 +#: tazusb:506
   2.225 +msgid "Keeping current screen resolution..."
   2.226 +msgstr ""
   2.227 +
   2.228 +#: tazusb:520
   2.229 +msgid "Creating rootfs.gz with lzma compression... "
   2.230 +msgstr ""
   2.231 +
   2.232 +#: tazusb:524
   2.233 +msgid "Creating rootfs.gz with gzip compression... "
   2.234 +msgstr ""
   2.235 +
   2.236 +#: tazusb:528
   2.237 +msgid "Creating rootfs.gz without compression... "
   2.238 +msgstr ""
   2.239 +
   2.240 +#: tazusb:537
   2.241 +msgid "Moving rootfs.gz to media. Remember to unmount for delayed writes!"
   2.242 +msgstr ""
   2.243 +
   2.244 +#: tazusb:547
   2.245 +msgid "rootfs.gz is located in /"
   2.246 +msgstr ""
   2.247 +
   2.248 +#: tazusb:551
   2.249 +msgid "Root filesystem size: $size"
   2.250 +msgstr ""
   2.251 +
   2.252 +#: tazusb:553
   2.253 +msgid "ENTER to continue..."
   2.254 +msgstr ""
   2.255 +
   2.256 +#: tazusb:559
   2.257 +msgid "Format a device"
   2.258 +msgstr ""
   2.259 +
   2.260 +#: tazusb:568
   2.261 +msgid "Device : $DEVICE"
   2.262 +msgstr ""
   2.263 +
   2.264 +#: tazusb:576
   2.265 +msgid "Device $label ($DEVICE) is ready to use as LiveUSB and/or /home partition."
   2.266 +msgstr ""
   2.267 +
   2.268 +#: tazusb:583
   2.269 +msgid "Gen a LiveUSB media"
   2.270 +msgstr ""
   2.271 +
   2.272 +#: tazusb:611
   2.273 +msgid "Please specify a valid filename on the command line."
   2.274 +msgstr ""
   2.275 +
   2.276 +#: tazusb:615
   2.277 +msgid "Copy ISO file to SliTaz LiveUSB media"
   2.278 +msgstr ""
   2.279 +
   2.280 +
     3.1 --- a/tazusb	Sun Jun 19 18:40:36 2011 +0200
     3.2 +++ b/tazusb	Wed Aug 31 11:42:36 2011 +0200
     3.3 @@ -5,7 +5,14 @@
     3.4  # bootable media and/or USB /home partition, such as flash keys, SD card or 
     3.5  # USB harddisk. Authors : see AUTHORS
     3.6  #
     3.7 -VERSION=3.0
     3.8 +VERSION=3.0.1
     3.9 +
    3.10 +# Include gettext helper script.
    3.11 +. /usr/bin/gettext.sh
    3.12 +
    3.13 +# Export package name for gettext.
    3.14 +TEXTDOMAIN='tazusb'
    3.15 +export TEXTDOMAIN
    3.16  
    3.17  COMMAND=$1
    3.18  TARGET_ROOT=/media/flash
    3.19 @@ -20,18 +27,18 @@
    3.20  # Print the usage.
    3.21  usage ()
    3.22  {
    3.23 -	echo -e "\nSliTaz Live USB - Version: $VERSION\n
    3.24 +	echo -e "`gettext \"\nSliTaz Live USB - Version:\"` $VERSION\n
    3.25  \033[1mUsage: \033[0m `basename $0` [command] [compression|device]
    3.26 -\033[1mCommands: \033[0m\n
    3.27 -  usage     	Print this short usage.
    3.28 -  writefs 	Write the current filesystem to rootfs.gz.
    3.29 -  		tazSupported compression: lzma. gzip, none.
    3.30 -  format	Format and label device with ext3, ext2 or fat32 filesystem 
    3.31 -                (for LiveUSB or /home). Default is ext3.
    3.32 -  gen-liveusb 	Generate a bootable LiveUSB using files from the LiveCD.
    3.33 -  gen-swap      Create or recreate and activate additional swap memory.
    3.34 -  gen-iso2usb   Generate a bootable LiveUSB using files from ISO file.
    3.35 -  clean         Remove old backup filesystems to free disk space.\n"
    3.36 +\033[1m`gettext \"Commands: \"`\033[0m\n
    3.37 +  usage     	`gettext \"Print this short usage.\"`
    3.38 +  writefs 	`gettext \"Write the current filesystem to rootfs.gz.
    3.39 +  		tazSupported compression: lzma. gzip, none.\"`
    3.40 +  format	`gettext \"Format and label device with ext3, ext2 or fat32 filesystem 
    3.41 +                (for LiveUSB or /home). Default is ext3.\"`
    3.42 +  gen-liveusb 	`gettext \"Generate a bootable LiveUSB using files from the LiveCD.\"`
    3.43 +  gen-swap      `gettext \"Create or recreate and activate additional swap memory.\"`
    3.44 +  gen-iso2usb   `gettext \"Generate a bootable LiveUSB using files from ISO file.\"`
    3.45 +  clean         `gettext \"Remove old backup filesystems to free disk space.\"`\n"
    3.46  }
    3.47  
    3.48  # Status function.
    3.49 @@ -40,9 +47,9 @@
    3.50  	local CHECK=$?
    3.51  	echo -en "\\033[70G[ "
    3.52  	if [ $CHECK = 0 ]; then
    3.53 -		echo -en "\\033[1;33mOK"
    3.54 +		echo -en "\\033[1;33m`gettext \"OK\"`"
    3.55  	else
    3.56 -		echo -en "\\033[1;31mFailed"
    3.57 +		echo -en "\\033[1;31m`gettext \"Failed\"`"
    3.58  	fi
    3.59  	echo -e "\\033[0;39m ]"
    3.60  }
    3.61 @@ -51,7 +58,9 @@
    3.62  check_root()
    3.63  {
    3.64  	if test $(id -u) != 0 ; then
    3.65 -	   echo -e "\nThis program requires being run as root.\n"
    3.66 +	  # echo -e "\nThis program requires being run as root.\n"
    3.67 +	   gettext "This program requires being run as root."
    3.68 +	   echo ""
    3.69  	   exit 0
    3.70  	fi
    3.71  }
    3.72 @@ -67,17 +76,19 @@
    3.73  # We need a USB media to install.
    3.74  ask_for_device()
    3.75  {
    3.76 -	echo -n "\
    3.77 +	gettext "\
    3.78  Please specify the target USB device to $COMMAND. You can type 'list' to 
    3.79  get a list of devices, type 'exit' or give an empty value to exit.
    3.80  
    3.81  Device to use : "; read anser
    3.82  	while [ "$anser" == "list" ]; do
    3.83  		fdisk_list
    3.84 -		echo -n "Device to use : "; read anser
    3.85 +		gettext "Device to use : "; read anser
    3.86  	done
    3.87  	if [ "$anser" = "" -o "$anser" = "exit" ]; then
    3.88 -		echo -e "\nNo specified device or exit.\n"
    3.89 +		echo ""
    3.90 +		gettext "No specified device or exit."
    3.91 +		echo ""
    3.92  		exit 0
    3.93  	else
    3.94  		DEVICE=$anser
    3.95 @@ -89,7 +100,9 @@
    3.96  {
    3.97  	IFDEV=`fdisk -l | grep $DEVICE`
    3.98  	if [ -z "$IFDEV" ]; then
    3.99 -		echo -e "\nUnable to find device: $DEVICE\n"
   3.100 +		echo ""
   3.101 +		gettext "Unable to find device: $DEVICE"
   3.102 +		echo ""
   3.103  		exit 0
   3.104  	fi
   3.105  }
   3.106 @@ -104,15 +117,15 @@
   3.107  # Format target device and label partition.
   3.108  mkfs_ext3()
   3.109  {
   3.110 -	echo -n "Please specify a label for the partition (TazUSB): "
   3.111 +	gettext "Please specify a label for the partition (TazUSB): "
   3.112  	read label
   3.113  	
   3.114  	if [ -z $label ]; then
   3.115  		label=TazUSB
   3.116  	fi
   3.117  	
   3.118 -	echo "Label  : $label"
   3.119 -	echo "Mkfs   : mkfs.ext3 -L \"$label\" $DEVICE"
   3.120 +	gettext "Label  : $label"; echo ""
   3.121 +	gettext "Mkfs   : mkfs.ext3 -L \"$label\" $DEVICE" ; echo ""
   3.122  	echo "" && sleep 2
   3.123  	mkfs.ext3 -L "$label" $DEVICE
   3.124  	
   3.125 @@ -121,7 +134,7 @@
   3.126  # Get label for device
   3.127  get_label()
   3.128  {
   3.129 -	echo -n "Please specify a label for the partition (TazUSB): "
   3.130 +	gettext "Please specify a label for the partition (TazUSB): "
   3.131  	read label
   3.132  	
   3.133  	if [ -z $label ]; then
   3.134 @@ -132,7 +145,7 @@
   3.135  # Get fs type. Supported fs are ext3, ext2, fat32
   3.136  get_fs_type()
   3.137  {
   3.138 -	echo -n "Please specify a filesystem type ext2, ext3 or fat32 (ext3): "
   3.139 +	gettext "Please specify a filesystem type ext2, ext3 or fat32 (ext3): "
   3.140  	read  fs_type
   3.141  	
   3.142  	if [ -z $fs_type ]; then
   3.143 @@ -143,7 +156,7 @@
   3.144  # We can chose the filesystem type.
   3.145  ask_for_fs_type()
   3.146  {
   3.147 -	echo -n "\
   3.148 +	gettext "\
   3.149  Please specify the filesystem type to $COMMAND. 
   3.150  Available formats are ext3(default), ext2 or fat32. 
   3.151  Press enter to keep the default value.
   3.152 @@ -165,21 +178,21 @@
   3.153  	FS=$(echo $fs_type | tr [A-Z] [a-z])
   3.154  	case "$FS" in
   3.155  		ext3|ext2)
   3.156 -			echo -e "\nProcessing..."
   3.157 -			echo "Label  : $label"
   3.158 -			echo "Mkfs   : mkfs.$FS -L \"$label\" $DEVICE"
   3.159 +			echo ""; gettext "Processing..." ; echo ""
   3.160 +			gettext "Label  : $label" ; echo ""
   3.161 +			gettext "Mkfs   : mkfs.$FS -L \"$label\" $DEVICE"
   3.162  			echo "" && sleep 2
   3.163  			mkfs.$@ -L "$label" $DEVICE > $LOG 2>&1
   3.164  			;;
   3.165  		[Ff]at32)
   3.166  			if [ -x /sbin/mkdosfs ];then
   3.167 -				echo -e "\nProcessing..."
   3.168 -				echo "Label  : $label"
   3.169 -				echo "Mkfs   : mkdosfs -F 32 -n \"$label\" $DEVICE"
   3.170 +				echo "" ; gettext "Processing..."; echo ""
   3.171 +				gettext "Label  : $label" ; echo ""
   3.172 +				gettext "Mkfs   : mkdosfs -F 32 -n \"$label\" $DEVICE"; echo ""
   3.173  				echo "" && sleep 2
   3.174  				mkdosfs -F 32 -n "$label" $DEVICE  
   3.175  			else
   3.176 -				echo -ne "Can't find mkdosfs tool.\nWould you like to install dosfstools from repository [y/N] ? "; read answer
   3.177 +				gettext "Can't find mkdosfs tool.\nWould you like to install dosfstools from repository [y/N] ? "; read answer
   3.178  				case $answer in
   3.179  					y|Y)
   3.180  						yes | tazpkg get-install dosfstools  && make_fs fat32;;
   3.181 @@ -189,7 +202,7 @@
   3.182  			fi
   3.183  			;;
   3.184  		*)
   3.185 -			echo "Sorry. Filesystem $FS is not supported."
   3.186 +			gettext "Sorry. Filesystem $FS is not supported."; echo ""
   3.187  			exit 
   3.188  	esac
   3.189  }
   3.190 @@ -204,7 +217,7 @@
   3.191  	
   3.192  	# Device could be mounted elsewhere, so unmount
   3.193  	if mount | grep -q $DEVICE; then
   3.194 -		echo "Unmounting USB target device..."
   3.195 +		gettext "Unmounting USB target device..."; echo ""
   3.196  		umount $DEVICE
   3.197  	fi
   3.198  }
   3.199 @@ -212,7 +225,7 @@
   3.200  # Mount an existing USB device.
   3.201  mount_target_usb()
   3.202  {
   3.203 -	echo "Mounting USB target device..."	
   3.204 +	gettext "Mounting USB target device..."	; echo ""
   3.205  	mkdir -p $TARGET_ROOT
   3.206  	mount $DEVICE $TARGET_ROOT 2>/dev/null
   3.207  }
   3.208 @@ -220,7 +233,7 @@
   3.209  # Mount SliTaz LiveCD to get needed files.
   3.210  mount_cdrom()
   3.211  {
   3.212 -	echo "Mounting cdrom device..."
   3.213 +	gettext "Mounting cdrom device..."; echo ""
   3.214  	
   3.215  	if mount | grep /media/cdrom; then
   3.216  		umount /media/cdrom
   3.217 @@ -231,7 +244,7 @@
   3.218  	
   3.219  	if [ ! -f /media/cdrom/boot/rootfs.gz -a \
   3.220  	     ! -f /media/cdrom/boot/rootfs1.gz ]; then
   3.221 -		echo -e "\nUnable to mount cdrom or to find a filesystem on it (rootfs.gz).\n"
   3.222 +		echo ""; gettext "Unable to mount cdrom or to find a filesystem on it (rootfs.gz)."; ehco ""
   3.223  		exit 0
   3.224  	fi
   3.225  }
   3.226 @@ -252,12 +265,12 @@
   3.227           OPTIONS=""
   3.228      fi
   3.229  	
   3.230 -	echo  "Mounting `basename $ISO`..."
   3.231 +	gettext "Mounting `basename $ISO`..."; echo ""
   3.232  	mount $OPTIONS $ISO /media/cdrom 2>/dev/null
   3.233  	
   3.234  	if [ ! -f /media/cdrom/boot/rootfs.gz -a \
   3.235  	     ! -f /media/cdrom/boot/rootfs1.gz ]; then
   3.236 -		echo -e "\nUnable to mount iso or to find a filesystem on it (rootfs.gz).\n"
   3.237 +		gettext "Unable to mount iso or to find a filesystem on it (rootfs.gz)."; echo ""
   3.238  		exit 0
   3.239  	fi
   3.240  }
   3.241 @@ -265,7 +278,7 @@
   3.242  # All needed files are in the boot directory of the cdrom.
   3.243  copy_cdrom_files()
   3.244  {
   3.245 -	echo -n "Copying needed files from cdrom..."
   3.246 +	gettext "Copying needed files from cdrom..."
   3.247  	mkdir -p $TARGET_ROOT/boot
   3.248  	cp /media/cdrom/boot/bzImage $TARGET_ROOT/boot
   3.249  	rem=0
   3.250 @@ -284,12 +297,12 @@
   3.251  	# MBR
   3.252  	DISK=${DEVICE%[1-99]}
   3.253  	if [ -f /usr/share/boot/mbr.bin ]; then
   3.254 -		echo -n "Installing a new MBR to: $DISK"
   3.255 +		gettext  "Installing a new MBR to: $DISK"
   3.256  		cat /usr/share/boot/mbr.bin > $DISK
   3.257  		status
   3.258  	else
   3.259  		# Skip MBR install (tazpkg get-install syslinux-extra ? and then cat)
   3.260 -		echo "No new MBR installed to: $DISK"
   3.261 +		gettext "No new MBR installed to: $DISK"; echo ""
   3.262  	fi
   3.263  }
   3.264  
   3.265 @@ -307,7 +320,7 @@
   3.266  		STE=conf
   3.267  	fi
   3.268  	
   3.269 -	echo "Installing bootloader: $ST"
   3.270 +	gettext  "Installing bootloader: $ST"; echo ""
   3.271  	mkdir -p $TARGET_ROOT/boot/$ST
   3.272  	$STC
   3.273  	
   3.274 @@ -361,7 +374,7 @@
   3.275  {
   3.276  	echo "==============================================================================="
   3.277  	echo ""
   3.278 -	echo -n "Do you want to exit Tazusb or reboot system (Exit/reboot) ? "
   3.279 +	gettext "Do you want to exit Tazusb or reboot system (Exit/reboot) ? "
   3.280  	read anser
   3.281  	if [ "$anser" == "reboot" ]; then
   3.282  		umount $TARGET_ROOT
   3.283 @@ -384,7 +397,7 @@
   3.284  	# If not set, set bootable
   3.285  	if [ "$ISSET" == "" ]; then
   3.286  		umount $TARGET_ROOT 2>/dev/null
   3.287 -		echo -n "Setting $DEVICE as bootable..."
   3.288 +		gettext "Setting $DEVICE as bootable..."
   3.289  		fdisk $DISK >/dev/null << EOF
   3.290  a
   3.291  1
   3.292 @@ -399,15 +412,15 @@
   3.293  gen_swap_file()
   3.294  {
   3.295  	echo ""
   3.296 -	echo -en "\033[1mGen swap\033[0m
   3.297 -===============================================================================
   3.298 -Generate a swap file in /home/swap that will be activated on each boot to have
   3.299 +	echo -en "\033[1m`gettext \"Gen swap\"`\033[0m
   3.300 +==============================================================================="
   3.301 +gettext "Generate a swap file in /home/swap that will be activated on each boot to have
   3.302  more memory available (Empty value to exit).
   3.303  
   3.304  Swap file in Mb : "
   3.305  	read size
   3.306  	if [ -z "$size" ]; then
   3.307 -		echo -e "\nEmpty value. Exiting...\n"
   3.308 +		gettext "Empty value. Exiting..."; echo ""
   3.309  		exit 0
   3.310  	fi
   3.311  	cd /home
   3.312 @@ -427,13 +440,13 @@
   3.313  clean_usb() 
   3.314  {
   3.315  	echo ""
   3.316 -	echo -en "\033[1mClean\033[0m
   3.317 -===============================================================================
   3.318 -Remove old rootfs.gz.unixtimestamp backup filesystems to free up disk space.\n\n"
   3.319 +	echo -en "\033[1m`gettext \"Clean\"`\033[0m
   3.320 +==============================================================================="
   3.321 +gettext "Remove old rootfs.gz.unixtimestamp backup filesystems to free up disk space."; echo -e "\n\n"
   3.322  	# Locate and interactively remove old filesystems from /home directory
   3.323  	for file in `find /home/boot/rootfs.gz.[0-9]*`
   3.324  	do
   3.325 -		echo -n "Do you wish to remove: `basename $file` (Yes/no/exit) ? "
   3.326 +		gettext "Do you wish to remove: `basename $file` (Yes/no/exit) ? "
   3.327  		read answer
   3.328  		case $answer in
   3.329  			e|E|"exit"|Exit)
   3.330 @@ -441,7 +454,7 @@
   3.331  			y|Y|yes|Yes)
   3.332  				rm -f $file ;;
   3.333  			*)
   3.334 -			echo -en "No filesystems selected, exiting...\n" ;;
   3.335 +			gettext "No filesystems selected, exiting..." ; echo "" ;;
   3.336  		esac
   3.337  	done
   3.338  }
   3.339 @@ -461,9 +474,9 @@
   3.340  		fi
   3.341  		# Start info
   3.342  		echo ""
   3.343 -		echo -e "\033[1mWrite filesystem\033[0m
   3.344 -===============================================================================
   3.345 -The command writefs will write all the current filesystem into a suitable cpio 
   3.346 +		echo -e "\033[1m`gettext \nWrite filesystem\"`\033[0m
   3.347 +==============================================================================="
   3.348 +gettext "The command writefs will write all the current filesystem into a suitable cpio 
   3.349  archive (rootfs.gz) usable on a bootable LiveUSB media. 
   3.350  
   3.351  Archive compression: $COMPRESSION"
   3.352 @@ -473,30 +486,30 @@
   3.353  		rm /var/cache/tazpkg/* -r -f
   3.354  
   3.355  		# Optionally remove sound card selection
   3.356 -		echo -n "Do you wish to remove the sound card selection (No/yes/exit) ? "
   3.357 +		gettext "Do you wish to remove the sound card selection (No/yes/exit) ? "
   3.358  		read anser
   3.359  		case $anser in
   3.360  			e|E|"exit"|Exit)
   3.361  				exit 0 ;;
   3.362  			y|Y|yes|Yes)
   3.363 -				echo -n "Removing current sound card selection..."
   3.364 +				gettext "Removing current sound card selection..."
   3.365  				rm -f /var/lib/sound-card-driver
   3.366  				rm -f /var/lib/alsa/asound.state ;;
   3.367  			*)
   3.368 -				echo -n "Keeping current sound card selection..." ;;
   3.369 +				gettext "Keeping current sound card selection..." ;;
   3.370  		esac
   3.371  		status
   3.372  		# Optionally remove screen resolution
   3.373 -		echo -n "Do you wish to remove the screen resolution (No/yes/exit) ? "
   3.374 +		gettext "Do you wish to remove the screen resolution (No/yes/exit) ? "
   3.375  		read anser
   3.376  		case $anser in
   3.377  			e|E|"exit"|Exit)
   3.378  				exit 0 ;;
   3.379  			y|Y|yes|Yes)
   3.380 -				echo -n "Removing current screen resolution..."
   3.381 +				gettext "Removing current screen resolution..."
   3.382  				rm -f /etc/X11/screen.conf ;;
   3.383  			*)
   3.384 -				echo -n "Keeping current screen resolution..." ;;
   3.385 +				gettext "Keeping current screen resolution..." ;;
   3.386  		esac
   3.387  		status
   3.388  		
   3.389 @@ -510,15 +523,15 @@
   3.390  
   3.391  		# Generate initramfs with specified compression
   3.392  		if [ "$COMPRESSION" = "lzma" ]; then
   3.393 -			echo -n "Creating rootfs.gz with lzma compression... "
   3.394 +			gettext "Creating rootfs.gz with lzma compression... "
   3.395  			cat /tmp/list | cpio -o -H newc | lzma e -si -so > /rootfs.gz
   3.396  
   3.397  		elif [ "$COMPRESSION" = "gzip" ]; then
   3.398 -			echo -n "Creating rootfs.gz with gzip compression... "
   3.399 +			gettext "Creating rootfs.gz with gzip compression... "
   3.400  			cat /tmp/list | cpio -o -H newc | gzip -9 > /rootfs.gz
   3.401  
   3.402  		else
   3.403 -			echo -n "Creating rootfs.gz without compression... "
   3.404 +			gettext "Creating rootfs.gz without compression... "
   3.405  			cat /tmp/list | cpio -o -H newc > /rootfs.gz
   3.406  		fi
   3.407  
   3.408 @@ -527,7 +540,7 @@
   3.409  
   3.410  		# If the bootable medium is where it should be, copy across
   3.411  		if (test -e /home/boot/bzImage); then
   3.412 -			echo "Moving rootfs.gz to media. Remember to unmount for delayed writes!"
   3.413 +			gettext "Moving rootfs.gz to media. Remember to unmount for delayed writes!"; echo ""
   3.414  
   3.415  			# Move the old filesystem with the unix timestamp for reference
   3.416  			if (test -e /home/boot/previous.gz); then
   3.417 @@ -537,19 +550,20 @@
   3.418  			mv /home/boot/rootfs.gz /home/boot/previous.gz
   3.419  			mv /rootfs.gz /home/boot/.
   3.420  		else
   3.421 -			echo "rootfs.gz is located in /"
   3.422 +			gettext "rootfs.gz is located in /"; echo ""
   3.423  		fi
   3.424  
   3.425  		echo "==============================================================================="
   3.426 -		echo "Root filesystem size: $size"
   3.427 +		gettext "Root filesystem size: $size"; echo ""
   3.428  		echo ""
   3.429 -		echo -en "----\nENTER to continue..."; read i
   3.430 +		echo "----"
   3.431 +		gettext "ENTER to continue..."; read i
   3.432  		;;
   3.433  	format)
   3.434  		# Format a partition.
   3.435  		check_root
   3.436  		echo ""
   3.437 -		echo -e "\033[1mFormat a device\033[0m"
   3.438 +		echo -e "\033[1m`gettext \"Format a device\"`\033[0m"
   3.439  		echo "==============================================================================="
   3.440  		DEVICE=$2
   3.441  		label=$3
   3.442 @@ -566,14 +580,14 @@
   3.443  		make_fs "$fs_type"
   3.444  		# mkfs_ext3
   3.445  		echo "==============================================================================="
   3.446 -		echo "Device $label ($DEVICE) is ready to use as LiveUSB and/or /home partition."
   3.447 +		gettext "Device $label ($DEVICE) is ready to use as LiveUSB and/or /home partition."
   3.448  		echo ""
   3.449  		;;
   3.450  	gen-liveusb)
   3.451  		# Generate a LiveUSB media using files from a LiveCD.
   3.452  		check_root
   3.453  		echo ""
   3.454 -		echo -e "\033[1mGen a LiveUSB media\033[0m"
   3.455 +		echo -e "\033[1m`gettext \"Gen a LiveUSB media\"`\033[0m"
   3.456  		echo "==============================================================================="
   3.457  		DEVICE=$2
   3.458  		if [ -z $DEVICE ]; then
   3.459 @@ -601,11 +615,11 @@
   3.460  		# Check if file exists
   3.461  		ISO=$2
   3.462  		if [ -z $ISO ] || [ ! -f $ISO ]; then
   3.463 -			echo -e "\nPlease specify a valid filename on the command line.\n"
   3.464 +			gettext "Please specify a valid filename on the command line."; echo ""
   3.465  			exit 1
   3.466  		fi
   3.467  		echo ""
   3.468 -		echo -e "\033[1mCopy ISO file to SliTaz LiveUSB media\033[0m"
   3.469 +		echo -e "\033[1m`gettext \"Copy ISO file to SliTaz LiveUSB media\"`\033[0m"
   3.470  		echo "==============================================================================="
   3.471  		echo ""
   3.472  		DEVICE=$3