[SCM] live-tools branch, debian-next, updated. debian/3.0_b1-1-2-gf4437df

Daniel Baumann daniel at debian.org
Tue Jun 5 11:48:47 UTC 2012


The following commit has been merged in the debian-next branch:
commit f4437dfe18a2bc6dc7216f29bb79a405f403a20c
Author: Daniel Baumann <daniel at debian.org>
Date:   Tue Jun 5 13:48:42 2012 +0200

    Automatically translate date formats in po files.

diff --git a/manpages/bin/update-version.sh b/manpages/bin/update-version.sh
index 698dd60..daf73a7 100755
--- a/manpages/bin/update-version.sh
+++ b/manpages/bin/update-version.sh
@@ -10,10 +10,15 @@
 
 set -e
 
-DATE="$(LC_ALL=C date +%Y\\\\-%m\\\\-%d)"
 PROGRAM="LIVE\\\-TOOLS"
 VERSION="$(cat ../VERSION)"
 
+DATE="$(LC_ALL=C date +%Y\\\\-%m\\\\-%d)"
+
+DAY="$(LC_ALL=C date +%d)"
+MONTH="$(LC_ALL=C date +%m)"
+YEAR="$(LC_ALL=C date +%Y)"
+
 echo "Updating version headers..."
 
 for MANPAGE in en/*
@@ -22,3 +27,24 @@ do
 
 	sed -i -e "s|^.TH.*$|.TH ${PROGRAM} ${SECTION} ${DATE} ${VERSION} \"Debian Live Project\"|" ${MANPAGE}
 done
+
+# European date format
+for _LANGUAGE in de es fr it
+do
+	if ls po/${_LANGUAGE}/*.po > /dev/null 2>&1
+	then
+		for _FILE in po/${_LANGUAGE}/*.po
+		do
+			sed -i -e "s|^msgstr .*.2012\"$|msgstr \"${DAY}.${MONTH}.${YEAR}\"|g" "${_FILE}"
+		done
+	fi
+done
+
+# Brazilian date format
+if ls po/pt_BR/*.po > /dev/null 2>&1
+then
+	for _FILE in po/pt_BR/*.po
+	do
+		sed -i -e "s|^msgstr .*-2012\"$|msgstr \"${DAY}-${MONTH}-${YEAR}\"|g" "${_FILE}"
+	done
+fi
diff --git a/manpages/de/live-tools.de.7 b/manpages/de/live-tools.de.7
index 0c921e5..e6e3f56 100644
--- a/manpages/de/live-tools.de.7
+++ b/manpages/de/live-tools.de.7
@@ -11,7 +11,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-TOOLS 7 06.04.2012 3.0~b1\-1 "Debian Live Projekt"
+.TH LIVE\-TOOLS 7 05.06.2012 3.0~b1\-1 "Debian Live Projekt"
 
 .SH NAME
 \fBlive\-tools\fP \- System Support Skripte
diff --git a/manpages/en/live-tools.7 b/manpages/en/live-tools.7
index 178f286..50e7705 100644
--- a/manpages/en/live-tools.7
+++ b/manpages/en/live-tools.7
@@ -6,7 +6,7 @@
 .\" under certain conditions; see COPYING for details.
 .\"
 .\"
-.TH LIVE\-TOOLS 7 2012\-04\-06 3.0~b1-1 "Debian Live Project"
+.TH LIVE\-TOOLS 7 2012\-06\-05 3.0~b1-1 "Debian Live Project"
 
 .SH NAME
 \fBlive\-tools\fR \- System Support Scripts
diff --git a/manpages/po/de/live-tools.7.po b/manpages/po/de/live-tools.7.po
index f398bf8..cacbb8c 100644
--- a/manpages/po/de/live-tools.7.po
+++ b/manpages/po/de/live-tools.7.po
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-tools 3.0~b1\n"
-"POT-Creation-Date: 2012-04-06 13:44+0300\n"
+"POT-Creation-Date: 2012-06-05 13:48+0300\n"
 "PO-Revision-Date: 2010-05-24 09:59+0300\n"
 "Last-Translator: Daniel Baumann <daniel at debian.org>\n"
 "Language-Team: none\n"
@@ -24,8 +24,8 @@ msgstr "LIVE-TOOLS"
 #. type: TH
 #: en/live-tools.7:9
 #, no-wrap
-msgid "2012-04-06"
-msgstr "06.04.2012"
+msgid "2012-06-05"
+msgstr "05.06.2012"
 
 #. type: TH
 #: en/live-tools.7:9
diff --git a/manpages/pot/live-tools.7.pot b/manpages/pot/live-tools.7.pot
index 2197892..09d9af7 100644
--- a/manpages/pot/live-tools.7.pot
+++ b/manpages/pot/live-tools.7.pot
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-config VERSION\n"
-"POT-Creation-Date: 2012-04-06 13:44+0300\n"
+"POT-Creation-Date: 2012-06-05 13:48+0300\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -25,7 +25,7 @@ msgstr ""
 #. type: TH
 #: en/live-tools.7:9
 #, no-wrap
-msgid "2012-04-06"
+msgid "2012-06-05"
 msgstr ""
 
 #. type: TH

-- 
live-tools



More information about the debian-live-changes mailing list