tazusb rev 92

Fix: POT and fr.po. Change Makefile for tazusb
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Aug 31 12:15:38 2011 +0200 (2011-08-31)
parents c5c6fc9ab9eb
children 8ee01a845cce
files Makefile po/tazusb/fr.po po/tazusb/tazusb.pot
line diff
     1.1 --- a/Makefile	Wed Aug 31 11:42:36 2011 +0200
     1.2 +++ b/Makefile	Wed Aug 31 12:15:38 2011 +0200
     1.3 @@ -19,18 +19,35 @@
     1.4  		--package-name="TazUSB" \
     1.5  		--package-version="$(VERSION)" \
     1.6  		./tazusbbox
     1.7 +	xgettext -o po/tazusb/tazusb.pot -L Shell \
     1.8 +		--package-name="TazUSB" \
     1.9 +		--package-version="$(VERSION)" \
    1.10 +		./tazusb
    1.11  
    1.12  msgmerge:
    1.13  	@for l in $(LINGUAS); do \
    1.14 -		echo -n "Updating $$l po file."; \
    1.15 -		msgmerge -U po/tazusbbox/$$l.po po/tazusbbox/tazusbbox.pot ; \
    1.16 +		if [ -f "po/tazusbbox/$$l.po" ]; then \
    1.17 +			echo -n "Updating $$l po file."; \
    1.18 +			msgmerge -U po/tazusbbox/$$l.po po/tazusbbox/tazusbbox.pot ; \
    1.19 +		fi;\
    1.20 +		if [ -f "po/tazusb/$$l.po" ]; then \
    1.21 +			echo -n "Updating $$l po file."; \
    1.22 +			msgmerge -U po/tazusb/$$l.po po/tazusb/tazusb.pot ; \
    1.23 +		fi;\
    1.24  	done;
    1.25  
    1.26  msgfmt:
    1.27  	@for l in $(LINGUAS); do \
    1.28 -		echo "Compiling $$l mo file..."; \
    1.29 -		mkdir -p po/mo/$$l/LC_MESSAGES; \
    1.30 -		msgfmt -o po/mo/$$l/LC_MESSAGES/tazusbbox.mo po/tazusbbox/$$l.po ; \
    1.31 +		if [ -f "po/tazusbbox/$$l.po" ]; then \
    1.32 +			echo "Compiling tazusbbox $$l mo file..."; \
    1.33 +			mkdir -p po/mo/$$l/LC_MESSAGES; \
    1.34 +			msgfmt -o po/mo/$$l/LC_MESSAGES/tazusbbox.mo po/tazusbbox/$$l.po ; \
    1.35 +		fi;\
    1.36 +		if [ -f "po/tazusb/$$l.po" ]; then \
    1.37 +			echo "Compiling tazusb $$l mo file..."; \
    1.38 +			mkdir -p po/mo/$$l/LC_MESSAGES; \
    1.39 +			msgfmt -o po/mo/$$l/LC_MESSAGES/tazusb.mo po/tazusb/$$l.po ; \
    1.40 +		fi;\
    1.41  	done;
    1.42  
    1.43  # Installation.
    1.44 @@ -62,7 +79,7 @@
    1.45  clean:
    1.46  	rm -rf _pkg
    1.47  	rm -rf po/mo
    1.48 -	rm po/*/*~
    1.49 +	rm -f po/*/*~
    1.50  
    1.51  dist-clean:
    1.52  	rm -rf $(DISTDIR)
     2.1 --- a/po/tazusb/fr.po	Wed Aug 31 11:42:36 2011 +0200
     2.2 +++ b/po/tazusb/fr.po	Wed Aug 31 12:15:38 2011 +0200
     2.3 @@ -6,15 +6,16 @@
     2.4  #, fuzzy
     2.5  msgid ""
     2.6  msgstr ""
     2.7 -"Project-Id-Version: TazUSB 3.0\n"
     2.8 -"Report-Msgid-Bugs-To: erjo@slitaz.org\n"
     2.9 -"POT-Creation-Date: 2011-06-07 12:18+0200\n"
    2.10 -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    2.11 +"Project-Id-Version: tazusb.HEAD\n"
    2.12 +"product=tazusb\n"
    2.13 +"Report-Msgid-Bugs-To: http://bug.slitaz.org\n"
    2.14 +"POT-Creation-Date: 2011-08-31 12:03:53 +0200\n"
    2.15 +"PO-Revision-Date: 2011-08-31 12:03:53 +0200\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 +"Language: French\n"
    2.20  "MIME-Version: 1.0\n"
    2.21 -"Content-Type: text/plain; charset=CHARSET\n"
    2.22 +"Content-Type: text/plain; charset=UTF-8\n"
    2.23  "Content-Transfer-Encoding: 8bit\n"
    2.24  
    2.25  #: tazusbbox:50
    2.26 @@ -65,10 +66,6 @@
    2.27  msgid "Mkfs   : mkfs.ext3 -L \"$label\" $DEVICE"
    2.28  msgstr ""
    2.29  
    2.30 -#: tazusb:131
    2.31 -msgid "Please specify a label for the partition (TazUSB): "
    2.32 -msgstr ""
    2.33 -
    2.34  #: tazusb:142
    2.35  msgid "Please specify a filesystem type ext2, ext3 or fat32 (ext3): "
    2.36  msgstr ""
    2.37 @@ -83,25 +80,13 @@
    2.38  msgstr ""
    2.39  
    2.40  #: tazusb:175
    2.41 -msgid "\nProcessing..."
    2.42 -msgstr ""
    2.43 -
    2.44 -#: tazusb:176
    2.45 -msgid "Label  : $label"
    2.46 +msgid "Processing..."
    2.47  msgstr ""
    2.48  
    2.49  #: tazusb:177
    2.50  msgid "Mkfs   : mkfs.$FS -L \"$label\" $DEVICE"
    2.51  msgstr ""
    2.52  
    2.53 -#: tazusb:183
    2.54 -msgid "Processing..."
    2.55 -msgstr ""
    2.56 -
    2.57 -#: tazusb:184
    2.58 -msgid "Label  : $label"
    2.59 -msgstr ""
    2.60 -
    2.61  #: tazusb:185
    2.62  msgid "Mkfs   : mkdosfs -F 32 -n \"$label\" $DEVICE"
    2.63  msgstr ""
    2.64 @@ -196,7 +181,7 @@
    2.65  
    2.66  #: tazusb:473
    2.67  msgid ""
    2.68 -"The command writefs will write all the current filesystem into a suitable cpio\"
    2.69 +"The command writefs will write all the current filesystem into a suitable cpio\n"
    2.70  "archive (rootfs.gz) usable on a bootable LiveUSB media.\n" 
    2.71  "\n"
    2.72  "Archive compression: $COMPRESSION"
     3.1 --- a/po/tazusb/tazusb.pot	Wed Aug 31 11:42:36 2011 +0200
     3.2 +++ b/po/tazusb/tazusb.pot	Wed Aug 31 12:15:38 2011 +0200
     3.3 @@ -6,15 +6,16 @@
     3.4  #, fuzzy
     3.5  msgid ""
     3.6  msgstr ""
     3.7 -"Project-Id-Version: TazUSB 3.0\n"
     3.8 -"Report-Msgid-Bugs-To: erjo@slitaz.org\n"
     3.9 -"POT-Creation-Date: 2011-06-07 12:18+0200\n"
    3.10 -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    3.11 +"Project-Id-Version: tazusb.HEAD\n"
    3.12 +"product=tazusb\n"
    3.13 +"Report-Msgid-Bugs-To: http://bug.slitaz.org\n"
    3.14 +"POT-Creation-Date: 2011-08-31 12:03:53 +0200\n"
    3.15 +"PO-Revision-Date: 2011-08-31 12:03:53 +0200\n"
    3.16  "Last-Translator: Eric Joseph-Alexandre <erjo@slitaz.org>\n"
    3.17  "Language-Team: LANGUAGE <LL@li.org>\n"
    3.18 -"Language: Franch\n"
    3.19 +"Language: French\n"
    3.20  "MIME-Version: 1.0\n"
    3.21 -"Content-Type: text/plain; charset=CHARSET\n"
    3.22 +"Content-Type: text/plain; charset=UTF-8\n"
    3.23  "Content-Transfer-Encoding: 8bit\n"
    3.24  
    3.25  #: tazusbbox:50
    3.26 @@ -65,10 +66,6 @@
    3.27  msgid "Mkfs   : mkfs.ext3 -L \"$label\" $DEVICE"
    3.28  msgstr ""
    3.29  
    3.30 -#: tazusb:131
    3.31 -msgid "Please specify a label for the partition (TazUSB): "
    3.32 -msgstr ""
    3.33 -
    3.34  #: tazusb:142
    3.35  msgid "Please specify a filesystem type ext2, ext3 or fat32 (ext3): "
    3.36  msgstr ""
    3.37 @@ -83,25 +80,13 @@
    3.38  msgstr ""
    3.39  
    3.40  #: tazusb:175
    3.41 -msgid "\nProcessing..."
    3.42 -msgstr ""
    3.43 -
    3.44 -#: tazusb:176
    3.45 -msgid "Label  : $label"
    3.46 +msgid "Processing..."
    3.47  msgstr ""
    3.48  
    3.49  #: tazusb:177
    3.50  msgid "Mkfs   : mkfs.$FS -L \"$label\" $DEVICE"
    3.51  msgstr ""
    3.52  
    3.53 -#: tazusb:183
    3.54 -msgid "Processing..."
    3.55 -msgstr ""
    3.56 -
    3.57 -#: tazusb:184
    3.58 -msgid "Label  : $label"
    3.59 -msgstr ""
    3.60 -
    3.61  #: tazusb:185
    3.62  msgid "Mkfs   : mkdosfs -F 32 -n \"$label\" $DEVICE"
    3.63  msgstr ""
    3.64 @@ -196,7 +181,7 @@
    3.65  
    3.66  #: tazusb:473
    3.67  msgid ""
    3.68 -"The command writefs will write all the current filesystem into a suitable cpio\"
    3.69 +"The command writefs will write all the current filesystem into a suitable cpio\n"
    3.70  "archive (rootfs.gz) usable on a bootable LiveUSB media.\n" 
    3.71  "\n"
    3.72  "Archive compression: $COMPRESSION"