tazusb rev 109

Move tazusbbox to oldstuff
author Christophe Lincoln <pankso@slitaz.org>
date Fri Mar 02 19:12:16 2012 +0100 (2012-03-02)
parents 65431283074c
children 781d1bb345cb
files Makefile oldstuff/tazusbbox/fr.po oldstuff/tazusbbox/pt_BR.po oldstuff/tazusbbox/tazusbbox oldstuff/tazusbbox/tazusbbox.pot po/tazusbbox/fr.po po/tazusbbox/pt_BR.po po/tazusbbox/tazusbbox.pot tazusbbox
line diff
     1.1 --- a/Makefile	Fri Mar 02 19:02:09 2012 +0100
     1.2 +++ b/Makefile	Fri Mar 02 19:12:16 2012 +0100
     1.3 @@ -15,10 +15,10 @@
     1.4  # i18n.
     1.5  
     1.6  pot:
     1.7 -	xgettext -o po/tazusbbox/tazusbbox.pot -L Shell \
     1.8 +	xgettext -o po/tazusb-box/tazusb-box.pot -L Shell \
     1.9  		--package-name="TazUSB" \
    1.10  		--package-version="$(VERSION)" \
    1.11 -		./tazusbbox
    1.12 +		./tazusb-box
    1.13  	xgettext -o po/tazusb/tazusb.pot -L Shell \
    1.14  		--package-name="TazUSB" \
    1.15  		--package-version="$(VERSION)" \
    1.16 @@ -26,9 +26,9 @@
    1.17  
    1.18  msgmerge:
    1.19  	@for l in $(LINGUAS); do \
    1.20 -		if [ -f "po/tazusbbox/$$l.po" ]; then \
    1.21 +		if [ -f "po/tazusb-box/$$l.po" ]; then \
    1.22  			echo -n "Updating $$l po file."; \
    1.23 -			msgmerge -U po/tazusbbox/$$l.po po/tazusbbox/tazusbbox.pot ; \
    1.24 +			msgmerge -U po/tazusb-box/$$l.po po/tazusb-box/tazusb-box.pot ; \
    1.25  		fi;\
    1.26  		if [ -f "po/tazusb/$$l.po" ]; then \
    1.27  			echo -n "Updating $$l po file."; \
    1.28 @@ -38,10 +38,10 @@
    1.29  
    1.30  msgfmt:
    1.31  	@for l in $(LINGUAS); do \
    1.32 -		if [ -f "po/tazusbbox/$$l.po" ]; then \
    1.33 -			echo "Compiling tazusbbox $$l mo file..."; \
    1.34 +		if [ -f "po/tazusb-box/$$l.po" ]; then \
    1.35 +			echo "Compiling tazusb-box $$l mo file..."; \
    1.36  			mkdir -p po/mo/$$l/LC_MESSAGES; \
    1.37 -			msgfmt -o po/mo/$$l/LC_MESSAGES/tazusbbox.mo po/tazusbbox/$$l.po ; \
    1.38 +			msgfmt -o po/mo/$$l/LC_MESSAGES/tazusb-box.mo po/tazusb-box/$$l.po ; \
    1.39  		fi;\
    1.40  		if [ -f "po/tazusb/$$l.po" ]; then \
    1.41  			echo "Compiling tazusb $$l mo file..."; \
    1.42 @@ -56,7 +56,7 @@
    1.43  	@echo "Installing TazUSB into $(DESTDIR)$(PREFIX)/bin..."
    1.44  	mkdir -p $(DESTDIR)$(PREFIX)/bin
    1.45  	install -m 0755 tazusb $(DESTDIR)$(PREFIX)/bin
    1.46 -	install -m 0755 tazusbbox $(DESTDIR)$(PREFIX)/bin
    1.47 +	install -m 0755 tazusb-box $(DESTDIR)$(PREFIX)/bin
    1.48  	@echo "Installing Tazusb documentation..."
    1.49  	mkdir -p $(DESTDIR)$(DOCDIR)/tazusb
    1.50  	cp -a doc/* $(DESTDIR)$(DOCDIR)/tazusb
    1.51 @@ -72,7 +72,7 @@
    1.52  
    1.53  uninstall:
    1.54  	rm -f $(DESTDIR)$(PREFIX)/bin/tazusb
    1.55 -	rm -f $(DESTDIR)$(PREFIX)/bin/tazusbbox
    1.56 +	rm -f $(DESTDIR)$(PREFIX)/bin/tazusb-box
    1.57  	rm -rf $(DESTDIR)$(DOCDIR)/tazusb
    1.58  	rm -rf $(DESTDIR)$(PREFIX)/share/locale/*/LC_MESSAGES/tazusb*.mo
    1.59  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/oldstuff/tazusbbox/fr.po	Fri Mar 02 19:12:16 2012 +0100
     2.3 @@ -0,0 +1,56 @@
     2.4 +# French translations for PACKAGE package.
     2.5 +# Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER
     2.6 +# This file is distributed under the same license as the PACKAGE package.
     2.7 +# Linux User <pankso@slitaz.org>, 2010.
     2.8 +#
     2.9 +msgid ""
    2.10 +msgstr ""
    2.11 +"Project-Id-Version: tazusbbox VERSION\n"
    2.12 +"Report-Msgid-Bugs-To: \n"
    2.13 +"POT-Creation-Date: 2011-06-06 13:55+0200\n"
    2.14 +"PO-Revision-Date: 2010-02-17 22:58+0100\n"
    2.15 +"Last-Translator: Christophe Lincoln <pankso@slitaz.org>\n"
    2.16 +"Language-Team: French\n"
    2.17 +"Language: \n"
    2.18 +"MIME-Version: 1.0\n"
    2.19 +"Content-Type: text/plain; charset=UTF-8\n"
    2.20 +"Content-Transfer-Encoding: 8bit\n"
    2.21 +"Plural-Forms: nplurals=2; plural=(n > 1);\n"
    2.22 +
    2.23 +#: tazusbbox:43
    2.24 +msgid "TazUSB Box"
    2.25 +msgstr "TazUSB Box"
    2.26 +
    2.27 +#: tazusbbox:47
    2.28 +msgid ""
    2.29 +"\n"
    2.30 +"Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into\n"
    2.31 +"the cdrom drive, select the correct device and press Generate.\n"
    2.32 +msgstr ""
    2.33 +"\n"
    2.34 +"Générer un LiveUSB de SliTaz et démarrer! Insérer un LiveCD dans\n"
    2.35 +"le lecteur de cdrom, séléctionner le media et appuyer sur générer.\n"
    2.36 +
    2.37 +#: tazusbbox:53
    2.38 +msgid "ISO to USB (Optional default is CDROM)"
    2.39 +msgstr "ISO vers USB (En option, CDROM utilisé par défaut)"
    2.40 +
    2.41 +#: tazusbbox:56
    2.42 +msgid "<b>ISO image:</b>"
    2.43 +msgstr "<b>Image ISO:</b>"
    2.44 +
    2.45 +#: tazusbbox:70
    2.46 +msgid "<b>USB Media:</b>"
    2.47 +msgstr "<b>Media USB:</b>"
    2.48 +
    2.49 +#: tazusbbox:83
    2.50 +msgid "Not found"
    2.51 +msgstr "Introuvé"
    2.52 +
    2.53 +#: tazusbbox:90
    2.54 +msgid "Generate"
    2.55 +msgstr "Générer"
    2.56 +
    2.57 +#: tazusbbox:96
    2.58 +msgid "Exit"
    2.59 +msgstr "Quitter"
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/oldstuff/tazusbbox/pt_BR.po	Fri Mar 02 19:12:16 2012 +0100
     3.3 @@ -0,0 +1,57 @@
     3.4 +# Portuguese translations for PACKAGE package.
     3.5 +# Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER
     3.6 +# This file is distributed under the same license as the PACKAGE package.
     3.7 +# Claudinei Pereira <claudinei@slitaz.org>, 2010.
     3.8 +#
     3.9 +msgid ""
    3.10 +msgstr ""
    3.11 +"Project-Id-Version: PACKAGE VERSION\n"
    3.12 +"Report-Msgid-Bugs-To: \n"
    3.13 +"POT-Creation-Date: 2011-06-06 13:55+0200\n"
    3.14 +"PO-Revision-Date: 2010-02-28 22:28-0300\n"
    3.15 +"Last-Translator: Claudinei Pereira <claudinei@slitaz.org>\n"
    3.16 +"Language-Team: Brazilian Portuguese\n"
    3.17 +"Language: pt_BR\n"
    3.18 +"MIME-Version: 1.0\n"
    3.19 +"Content-Type: text/plain; charset=UTF-8\n"
    3.20 +"Content-Transfer-Encoding: 8bit\n"
    3.21 +"Plural-Forms: nplurals=2; plural=(n > 1);\n"
    3.22 +
    3.23 +#: tazusbbox:43
    3.24 +msgid "TazUSB Box"
    3.25 +msgstr "TazUSB Box"
    3.26 +
    3.27 +#: tazusbbox:47
    3.28 +msgid ""
    3.29 +"\n"
    3.30 +"Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into\n"
    3.31 +"the cdrom drive, select the correct device and press Generate.\n"
    3.32 +msgstr ""
    3.33 +"\n"
    3.34 +"Crie uma mídia LiveUSB e carregue o sistema na RAM!\n"
    3.35 +"Insira o LiveCD no drive de cdrom, selecione o dispositivo\n"
    3.36 +"correto e pressione Criar.\n"
    3.37 +
    3.38 +#: tazusbbox:53
    3.39 +msgid "ISO to USB (Optional default is CDROM)"
    3.40 +msgstr "ISO para USB (Opção padrão é CDROM)"
    3.41 +
    3.42 +#: tazusbbox:56
    3.43 +msgid "<b>ISO image:</b>"
    3.44 +msgstr "<b>Imagem ISO:</b>"
    3.45 +
    3.46 +#: tazusbbox:70
    3.47 +msgid "<b>USB Media:</b>"
    3.48 +msgstr "<b>Mídia USB:</b>"
    3.49 +
    3.50 +#: tazusbbox:83
    3.51 +msgid "Not found"
    3.52 +msgstr "Não Encontrado"
    3.53 +
    3.54 +#: tazusbbox:90
    3.55 +msgid "Generate"
    3.56 +msgstr "Criar"
    3.57 +
    3.58 +#: tazusbbox:96
    3.59 +msgid "Exit"
    3.60 +msgstr "Sair"
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/oldstuff/tazusbbox/tazusbbox	Fri Mar 02 19:12:16 2012 +0100
     4.3 @@ -0,0 +1,113 @@
     4.4 +#!/bin/sh
     4.5 +#
     4.6 +# Tiny GTKdialog interface to SliTaz Live USB tool aka TazUSB.
     4.7 +#
     4.8 +# (c) 2010 SliTaz GNU/Linux - GNU gpl v3
     4.9 +#
    4.10 +
    4.11 +# TazUSBbox is only for root.
    4.12 +if test $(id -u) != 0 ; then
    4.13 +	exec subox tazusbbox
    4.14 +	exit 0
    4.15 +fi
    4.16 +
    4.17 +# Include gettext helper script.
    4.18 +. /usr/bin/gettext.sh
    4.19 +
    4.20 +# Export package name for gettext.
    4.21 +TEXTDOMAIN='tazusbbox'
    4.22 +export TEXTDOMAIN
    4.23 +
    4.24 +# $BIN for functions.
    4.25 +export BIN=$0
    4.26 +
    4.27 +# Functions
    4.28 +
    4.29 +gen_live()
    4.30 +{
    4.31 +	[ -z "$DEVICE" ] && exit 0 
    4.32 +	if [ -n "$ISO_IMAGE" ]; then
    4.33 +		xterm -T "Tazusb gen-iso2usb" \
    4.34 +			-geometry 80x16 \
    4.35 +			-e "tazusb gen-iso2usb $ISO_IMAGE $DEVICE; exit 0"
    4.36 +	else
    4.37 +		xterm -T "Tazusb gen-liveusb" \
    4.38 +			-geometry 80x16 \
    4.39 +			-e "tazusb gen-liveusb $DEVICE; exit 0"
    4.40 +	fi
    4.41 +}
    4.42 +
    4.43 +box()
    4.44 +{
    4.45 +	MAIN_DIALOG='
    4.46 +<window title="'`gettext "TazUSB Box"`'" icon-name="media-flash">
    4.47 +<vbox>
    4.48 +	
    4.49 +	<text width-chars="60">
    4.50 +		<label>"'`gettext "
    4.51 +Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into
    4.52 +the cdrom drive, select the correct device and press Generate.
    4.53 +"`'"</label>
    4.54 +	</text>
    4.55 +
    4.56 +	<frame '`gettext "ISO to USB (Optional default is CDROM)"`'>
    4.57 +		<hbox>
    4.58 +			<text use-markup="true">
    4.59 +				<label>"'`gettext "<b>ISO image:</b>"`'"</label>
    4.60 +			</text>
    4.61 +			<entry accept="filename">
    4.62 +				<variable>ISO_IMAGE</variable>
    4.63 +			</entry>
    4.64 +			<button>
    4.65 +				<input file icon="tazlito"></input>
    4.66 +				<action type="fileselect">ISO_IMAGE</action>
    4.67 +			</button>
    4.68 +		</hbox>
    4.69 +	</frame>
    4.70 +	
    4.71 +	<hbox>
    4.72 +		<text use-markup="true">
    4.73 +			<label>"'`gettext "<b>USB Media:</b>"`'"</label>
    4.74 +		</text>
    4.75 +		<combobox>
    4.76 +			<variable>DEVICE</variable>'
    4.77 +			if [ -d /proc/scsi/usb-storage ]; then
    4.78 +				MAIN_DIALOG=${MAIN_DIALOG}"
    4.79 +				<item></item>"
    4.80 +				for i in `blkid | cut -d ":" -f 1`; do
    4.81 +					MAIN_DIALOG=${MAIN_DIALOG}"
    4.82 +					<item>$i</item>"
    4.83 +				done
    4.84 +			else
    4.85 +				MAIN_DIALOG=${MAIN_DIALOG}'
    4.86 +				<item>'`gettext "Not found"`'</item>'
    4.87 +			fi
    4.88 +			export MAIN_DIALOG=${MAIN_DIALOG}'
    4.89 +		</combobox>
    4.90 +	</hbox>
    4.91 +	<hbox>
    4.92 +		<button>
    4.93 +			<label>'`gettext "Generate"`'</label>
    4.94 +			<input file icon="forward"></input>	
    4.95 +			<action>$BIN gen_live</action>
    4.96 +			<action>clear:ISO_IMAGE</action>
    4.97 +		</button>
    4.98 +		<button>
    4.99 +			<label>'`gettext "Exit"`'</label>
   4.100 +			<input file icon="exit"></input>
   4.101 +			<action type="exit">exit</action>
   4.102 +		</button>
   4.103 +	</hbox>
   4.104 +	
   4.105 +</vbox>
   4.106 +</window>'
   4.107 +	gtkdialog --center --program=MAIN_DIALOG #>/dev/null
   4.108 +}
   4.109 +
   4.110 +if [ -n "$1" ]; then
   4.111 +	$1
   4.112 +else
   4.113 +	box
   4.114 +fi
   4.115 +
   4.116 +exit 0
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/oldstuff/tazusbbox/tazusbbox.pot	Fri Mar 02 19:12:16 2012 +0100
     5.3 @@ -0,0 +1,53 @@
     5.4 +# SOME DESCRIPTIVE TITLE.
     5.5 +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
     5.6 +# This file is distributed under the same license as the PACKAGE package.
     5.7 +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
     5.8 +#
     5.9 +#, fuzzy
    5.10 +msgid ""
    5.11 +msgstr ""
    5.12 +"Project-Id-Version: TazUSB 2.3\n"
    5.13 +"Report-Msgid-Bugs-To: \n"
    5.14 +"POT-Creation-Date: 2011-06-07 12:18+0200\n"
    5.15 +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    5.16 +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    5.17 +"Language-Team: LANGUAGE <LL@li.org>\n"
    5.18 +"Language: \n"
    5.19 +"MIME-Version: 1.0\n"
    5.20 +"Content-Type: text/plain; charset=CHARSET\n"
    5.21 +"Content-Transfer-Encoding: 8bit\n"
    5.22 +
    5.23 +#: tazusbbox:43
    5.24 +msgid "TazUSB Box"
    5.25 +msgstr ""
    5.26 +
    5.27 +#: tazusbbox:47
    5.28 +msgid ""
    5.29 +"\n"
    5.30 +"Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into\n"
    5.31 +"the cdrom drive, select the correct device and press Generate.\n"
    5.32 +msgstr ""
    5.33 +
    5.34 +#: tazusbbox:53
    5.35 +msgid "ISO to USB (Optional default is CDROM)"
    5.36 +msgstr ""
    5.37 +
    5.38 +#: tazusbbox:56
    5.39 +msgid "<b>ISO image:</b>"
    5.40 +msgstr ""
    5.41 +
    5.42 +#: tazusbbox:70
    5.43 +msgid "<b>USB Media:</b>"
    5.44 +msgstr ""
    5.45 +
    5.46 +#: tazusbbox:83
    5.47 +msgid "Not found"
    5.48 +msgstr ""
    5.49 +
    5.50 +#: tazusbbox:90
    5.51 +msgid "Generate"
    5.52 +msgstr ""
    5.53 +
    5.54 +#: tazusbbox:96
    5.55 +msgid "Exit"
    5.56 +msgstr ""
     6.1 --- a/po/tazusbbox/fr.po	Fri Mar 02 19:02:09 2012 +0100
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,56 +0,0 @@
     6.4 -# French translations for PACKAGE package.
     6.5 -# Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER
     6.6 -# This file is distributed under the same license as the PACKAGE package.
     6.7 -# Linux User <pankso@slitaz.org>, 2010.
     6.8 -#
     6.9 -msgid ""
    6.10 -msgstr ""
    6.11 -"Project-Id-Version: tazusbbox VERSION\n"
    6.12 -"Report-Msgid-Bugs-To: \n"
    6.13 -"POT-Creation-Date: 2011-06-06 13:55+0200\n"
    6.14 -"PO-Revision-Date: 2010-02-17 22:58+0100\n"
    6.15 -"Last-Translator: Christophe Lincoln <pankso@slitaz.org>\n"
    6.16 -"Language-Team: French\n"
    6.17 -"Language: \n"
    6.18 -"MIME-Version: 1.0\n"
    6.19 -"Content-Type: text/plain; charset=UTF-8\n"
    6.20 -"Content-Transfer-Encoding: 8bit\n"
    6.21 -"Plural-Forms: nplurals=2; plural=(n > 1);\n"
    6.22 -
    6.23 -#: tazusbbox:43
    6.24 -msgid "TazUSB Box"
    6.25 -msgstr "TazUSB Box"
    6.26 -
    6.27 -#: tazusbbox:47
    6.28 -msgid ""
    6.29 -"\n"
    6.30 -"Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into\n"
    6.31 -"the cdrom drive, select the correct device and press Generate.\n"
    6.32 -msgstr ""
    6.33 -"\n"
    6.34 -"Générer un LiveUSB de SliTaz et démarrer! Insérer un LiveCD dans\n"
    6.35 -"le lecteur de cdrom, séléctionner le media et appuyer sur générer.\n"
    6.36 -
    6.37 -#: tazusbbox:53
    6.38 -msgid "ISO to USB (Optional default is CDROM)"
    6.39 -msgstr "ISO vers USB (En option, CDROM utilisé par défaut)"
    6.40 -
    6.41 -#: tazusbbox:56
    6.42 -msgid "<b>ISO image:</b>"
    6.43 -msgstr "<b>Image ISO:</b>"
    6.44 -
    6.45 -#: tazusbbox:70
    6.46 -msgid "<b>USB Media:</b>"
    6.47 -msgstr "<b>Media USB:</b>"
    6.48 -
    6.49 -#: tazusbbox:83
    6.50 -msgid "Not found"
    6.51 -msgstr "Introuvé"
    6.52 -
    6.53 -#: tazusbbox:90
    6.54 -msgid "Generate"
    6.55 -msgstr "Générer"
    6.56 -
    6.57 -#: tazusbbox:96
    6.58 -msgid "Exit"
    6.59 -msgstr "Quitter"
     7.1 --- a/po/tazusbbox/pt_BR.po	Fri Mar 02 19:02:09 2012 +0100
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,57 +0,0 @@
     7.4 -# Portuguese translations for PACKAGE package.
     7.5 -# Copyright (C) 2010 THE PACKAGE'S COPYRIGHT HOLDER
     7.6 -# This file is distributed under the same license as the PACKAGE package.
     7.7 -# Claudinei Pereira <claudinei@slitaz.org>, 2010.
     7.8 -#
     7.9 -msgid ""
    7.10 -msgstr ""
    7.11 -"Project-Id-Version: PACKAGE VERSION\n"
    7.12 -"Report-Msgid-Bugs-To: \n"
    7.13 -"POT-Creation-Date: 2011-06-06 13:55+0200\n"
    7.14 -"PO-Revision-Date: 2010-02-28 22:28-0300\n"
    7.15 -"Last-Translator: Claudinei Pereira <claudinei@slitaz.org>\n"
    7.16 -"Language-Team: Brazilian Portuguese\n"
    7.17 -"Language: pt_BR\n"
    7.18 -"MIME-Version: 1.0\n"
    7.19 -"Content-Type: text/plain; charset=UTF-8\n"
    7.20 -"Content-Transfer-Encoding: 8bit\n"
    7.21 -"Plural-Forms: nplurals=2; plural=(n > 1);\n"
    7.22 -
    7.23 -#: tazusbbox:43
    7.24 -msgid "TazUSB Box"
    7.25 -msgstr "TazUSB Box"
    7.26 -
    7.27 -#: tazusbbox:47
    7.28 -msgid ""
    7.29 -"\n"
    7.30 -"Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into\n"
    7.31 -"the cdrom drive, select the correct device and press Generate.\n"
    7.32 -msgstr ""
    7.33 -"\n"
    7.34 -"Crie uma mídia LiveUSB e carregue o sistema na RAM!\n"
    7.35 -"Insira o LiveCD no drive de cdrom, selecione o dispositivo\n"
    7.36 -"correto e pressione Criar.\n"
    7.37 -
    7.38 -#: tazusbbox:53
    7.39 -msgid "ISO to USB (Optional default is CDROM)"
    7.40 -msgstr "ISO para USB (Opção padrão é CDROM)"
    7.41 -
    7.42 -#: tazusbbox:56
    7.43 -msgid "<b>ISO image:</b>"
    7.44 -msgstr "<b>Imagem ISO:</b>"
    7.45 -
    7.46 -#: tazusbbox:70
    7.47 -msgid "<b>USB Media:</b>"
    7.48 -msgstr "<b>Mídia USB:</b>"
    7.49 -
    7.50 -#: tazusbbox:83
    7.51 -msgid "Not found"
    7.52 -msgstr "Não Encontrado"
    7.53 -
    7.54 -#: tazusbbox:90
    7.55 -msgid "Generate"
    7.56 -msgstr "Criar"
    7.57 -
    7.58 -#: tazusbbox:96
    7.59 -msgid "Exit"
    7.60 -msgstr "Sair"
     8.1 --- a/po/tazusbbox/tazusbbox.pot	Fri Mar 02 19:02:09 2012 +0100
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,53 +0,0 @@
     8.4 -# SOME DESCRIPTIVE TITLE.
     8.5 -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
     8.6 -# This file is distributed under the same license as the PACKAGE package.
     8.7 -# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
     8.8 -#
     8.9 -#, fuzzy
    8.10 -msgid ""
    8.11 -msgstr ""
    8.12 -"Project-Id-Version: TazUSB 2.3\n"
    8.13 -"Report-Msgid-Bugs-To: \n"
    8.14 -"POT-Creation-Date: 2011-06-07 12:18+0200\n"
    8.15 -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    8.16 -"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    8.17 -"Language-Team: LANGUAGE <LL@li.org>\n"
    8.18 -"Language: \n"
    8.19 -"MIME-Version: 1.0\n"
    8.20 -"Content-Type: text/plain; charset=CHARSET\n"
    8.21 -"Content-Transfer-Encoding: 8bit\n"
    8.22 -
    8.23 -#: tazusbbox:43
    8.24 -msgid "TazUSB Box"
    8.25 -msgstr ""
    8.26 -
    8.27 -#: tazusbbox:47
    8.28 -msgid ""
    8.29 -"\n"
    8.30 -"Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into\n"
    8.31 -"the cdrom drive, select the correct device and press Generate.\n"
    8.32 -msgstr ""
    8.33 -
    8.34 -#: tazusbbox:53
    8.35 -msgid "ISO to USB (Optional default is CDROM)"
    8.36 -msgstr ""
    8.37 -
    8.38 -#: tazusbbox:56
    8.39 -msgid "<b>ISO image:</b>"
    8.40 -msgstr ""
    8.41 -
    8.42 -#: tazusbbox:70
    8.43 -msgid "<b>USB Media:</b>"
    8.44 -msgstr ""
    8.45 -
    8.46 -#: tazusbbox:83
    8.47 -msgid "Not found"
    8.48 -msgstr ""
    8.49 -
    8.50 -#: tazusbbox:90
    8.51 -msgid "Generate"
    8.52 -msgstr ""
    8.53 -
    8.54 -#: tazusbbox:96
    8.55 -msgid "Exit"
    8.56 -msgstr ""
     9.1 --- a/tazusbbox	Fri Mar 02 19:02:09 2012 +0100
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,113 +0,0 @@
     9.4 -#!/bin/sh
     9.5 -#
     9.6 -# Tiny GTKdialog interface to SliTaz Live USB tool aka TazUSB.
     9.7 -#
     9.8 -# (c) 2010 SliTaz GNU/Linux - GNU gpl v3
     9.9 -#
    9.10 -
    9.11 -# TazUSBbox is only for root.
    9.12 -if test $(id -u) != 0 ; then
    9.13 -	exec subox tazusbbox
    9.14 -	exit 0
    9.15 -fi
    9.16 -
    9.17 -# Include gettext helper script.
    9.18 -. /usr/bin/gettext.sh
    9.19 -
    9.20 -# Export package name for gettext.
    9.21 -TEXTDOMAIN='tazusbbox'
    9.22 -export TEXTDOMAIN
    9.23 -
    9.24 -# $BIN for functions.
    9.25 -export BIN=$0
    9.26 -
    9.27 -# Functions
    9.28 -
    9.29 -gen_live()
    9.30 -{
    9.31 -	[ -z "$DEVICE" ] && exit 0 
    9.32 -	if [ -n "$ISO_IMAGE" ]; then
    9.33 -		xterm -T "Tazusb gen-iso2usb" \
    9.34 -			-geometry 80x16 \
    9.35 -			-e "tazusb gen-iso2usb $ISO_IMAGE $DEVICE; exit 0"
    9.36 -	else
    9.37 -		xterm -T "Tazusb gen-liveusb" \
    9.38 -			-geometry 80x16 \
    9.39 -			-e "tazusb gen-liveusb $DEVICE; exit 0"
    9.40 -	fi
    9.41 -}
    9.42 -
    9.43 -box()
    9.44 -{
    9.45 -	MAIN_DIALOG='
    9.46 -<window title="'`gettext "TazUSB Box"`'" icon-name="media-flash">
    9.47 -<vbox>
    9.48 -	
    9.49 -	<text width-chars="60">
    9.50 -		<label>"'`gettext "
    9.51 -Generate SliTaz LiveUSB media and boot in RAM! Insert a LiveCD into
    9.52 -the cdrom drive, select the correct device and press Generate.
    9.53 -"`'"</label>
    9.54 -	</text>
    9.55 -
    9.56 -	<frame '`gettext "ISO to USB (Optional default is CDROM)"`'>
    9.57 -		<hbox>
    9.58 -			<text use-markup="true">
    9.59 -				<label>"'`gettext "<b>ISO image:</b>"`'"</label>
    9.60 -			</text>
    9.61 -			<entry accept="filename">
    9.62 -				<variable>ISO_IMAGE</variable>
    9.63 -			</entry>
    9.64 -			<button>
    9.65 -				<input file icon="tazlito"></input>
    9.66 -				<action type="fileselect">ISO_IMAGE</action>
    9.67 -			</button>
    9.68 -		</hbox>
    9.69 -	</frame>
    9.70 -	
    9.71 -	<hbox>
    9.72 -		<text use-markup="true">
    9.73 -			<label>"'`gettext "<b>USB Media:</b>"`'"</label>
    9.74 -		</text>
    9.75 -		<combobox>
    9.76 -			<variable>DEVICE</variable>'
    9.77 -			if [ -d /proc/scsi/usb-storage ]; then
    9.78 -				MAIN_DIALOG=${MAIN_DIALOG}"
    9.79 -				<item></item>"
    9.80 -				for i in `blkid | cut -d ":" -f 1`; do
    9.81 -					MAIN_DIALOG=${MAIN_DIALOG}"
    9.82 -					<item>$i</item>"
    9.83 -				done
    9.84 -			else
    9.85 -				MAIN_DIALOG=${MAIN_DIALOG}'
    9.86 -				<item>'`gettext "Not found"`'</item>'
    9.87 -			fi
    9.88 -			export MAIN_DIALOG=${MAIN_DIALOG}'
    9.89 -		</combobox>
    9.90 -	</hbox>
    9.91 -	<hbox>
    9.92 -		<button>
    9.93 -			<label>'`gettext "Generate"`'</label>
    9.94 -			<input file icon="forward"></input>	
    9.95 -			<action>$BIN gen_live</action>
    9.96 -			<action>clear:ISO_IMAGE</action>
    9.97 -		</button>
    9.98 -		<button>
    9.99 -			<label>'`gettext "Exit"`'</label>
   9.100 -			<input file icon="exit"></input>
   9.101 -			<action type="exit">exit</action>
   9.102 -		</button>
   9.103 -	</hbox>
   9.104 -	
   9.105 -</vbox>
   9.106 -</window>'
   9.107 -	gtkdialog --center --program=MAIN_DIALOG #>/dev/null
   9.108 -}
   9.109 -
   9.110 -if [ -n "$1" ]; then
   9.111 -	$1
   9.112 -else
   9.113 -	box
   9.114 -fi
   9.115 -
   9.116 -exit 0