Automatically translate date formats in po files.
authorDaniel Baumann <daniel@debian.org>
Tue, 5 Jun 2012 11:44:09 +0000 (13:44 +0200)
committerDaniel Baumann <daniel@debian.org>
Tue, 5 Jun 2012 11:44:09 +0000 (13:44 +0200)
19 files changed:
manpages/bin/update-version.sh
manpages/de/live-boot.de.7
manpages/de/live-persistence.conf.de.5
manpages/de/live-snapshot.de.1
manpages/en/live-boot.7
manpages/en/live-persistence.conf.5
manpages/en/live-snapshot.1
manpages/es/live-boot.es.7
manpages/es/live-persistence.conf.es.5
manpages/es/live-snapshot.es.1
manpages/po/de/live-boot.7.po
manpages/po/de/live-persistence.conf.5.po
manpages/po/de/live-snapshot.1.po
manpages/po/es/live-boot.7.po
manpages/po/es/live-persistence.conf.5.po
manpages/po/es/live-snapshot.1.po
manpages/pot/live-boot.7.pot
manpages/pot/live-persistence.conf.5.pot
manpages/pot/live-snapshot.1.pot

index 41c0ae1..1765772 100755 (executable)
@@ -1,11 +1,24 @@
 #!/bin/sh
 
+## live-boot(7) - System Boot Scripts
+## Copyright (C) 2006-2012 Daniel Baumann <daniel@debian.org>
+##
+## live-boot comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
+## This is free software, and you are welcome to redistribute it
+## under certain conditions; see COPYING for details.
+
+
 set -e
 
-DATE="$(LC_ALL=C date +%Y\\\\-%m\\\\-%d)"
 PROGRAM="LIVE\\\-BOOT"
 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/*
@@ -14,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
index 23115a5..b64d2bb 100644 (file)
@@ -3,7 +3,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-BOOT 7 2012\-06\-04 3.0~a28\-1 "Debian Live Project"
+.TH LIVE\-BOOT 7 05.06.2012 3.0~a28\-1 "Debian Live Project"
 
 .SH NAME
 \fBlive\-boot\fP \- System Boot Scripts
index 2562d29..c5a6acd 100644 (file)
@@ -3,7 +3,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-BOOT conf 2012\-06\-04 3.0~a28\-1 "Debian Live Project"
+.TH LIVE\-BOOT conf 05.06.2012 3.0~a28\-1 "Debian Live Project"
 
 .SH NAME
 \fBlive\-persistence.conf\fP \- Configuration file for persistence media in
index 4283210..291fc27 100644 (file)
@@ -3,7 +3,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-BOOT 1 2012\-06\-04 3.0~a28\-1 "Debian Live Project"
+.TH LIVE\-BOOT 1 05.06.2012 3.0~a28\-1 "Debian Live Project"
 
 .SH NAME
 \fBlive\-snapshot\fP \- simple script to ease persistence usage
index 98f4ba3..d48d5e1 100644 (file)
@@ -1,4 +1,4 @@
-.TH LIVE\-BOOT 7 2012\-06\-04 3.0~a28-1 "Debian Live Project"
+.TH LIVE\-BOOT 7 2012\-06\-05 3.0~a28-1 "Debian Live Project"
 
 .SH NAME
 \fBlive\-boot\fR \- System Boot Scripts
index 26aa646..71feaea 100644 (file)
@@ -1,4 +1,4 @@
-.TH LIVE\-BOOT conf 2012\-06\-04 3.0~a28-1 "Debian Live Project"
+.TH LIVE\-BOOT conf 2012\-06\-05 3.0~a28-1 "Debian Live Project"
 
 .SH NAME
 \fBlive-persistence.conf\fR \- Configuration file for persistence media in
index f5309fc..a08303b 100644 (file)
@@ -1,4 +1,4 @@
-.TH LIVE\-BOOT 1 2012\-06\-04 3.0~a28-1 "Debian Live Project"
+.TH LIVE\-BOOT 1 2012\-06\-05 3.0~a28-1 "Debian Live Project"
 
 .SH NAME
 \fBlive\-snapshot\fR \- simple script to ease persistence usage
index 44eb613..5cc722b 100644 (file)
@@ -3,7 +3,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-BOOT 7 04.06.2012 3.0~a28\-1 "Proyecto Debian Live"
+.TH LIVE\-BOOT 7 05.06.2012 3.0~a28\-1 "Proyecto Debian Live"
 
 .SH NOMBRE
 \fBlive\-boot\fP \- Scripts de Arranque del Sistema
index 5f24dff..3ea9fda 100644 (file)
@@ -3,7 +3,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-BOOT conf 04.06.2012 3.0~a28\-1 "Proyecto Debian Live"
+.TH LIVE\-BOOT conf 05.06.2012 3.0~a28\-1 "Proyecto Debian Live"
 
 .SH NOMBRE
 \fBlive\-persistence.conf\fP \- Fichero para configurar medios de almacenamiento
index bc63ccc..a915ce8 100644 (file)
@@ -3,7 +3,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-BOOT 1 04.06.2012 3.0~a28\-1 "Proyecto Debian Live"
+.TH LIVE\-BOOT 1 05.06.2012 3.0~a28\-1 "Proyecto Debian Live"
 
 .SH NOMBRE
 \fBlive\-snapshot\fP \- sencillo script para facilitar el uso de la persistencia
index ffbdfff..734ff12 100644 (file)
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot 3.0~a28-1\n"
-"POT-Creation-Date: 2012-06-04 17:31+0300\n"
+"POT-Creation-Date: 2012-06-05 13:42+0300\n"
 "PO-Revision-Date: 2012-04-08 22:48+0300\n"
 "Last-Translator: Daniel Baumann <daniel@debian.org>\n"
 "Language-Team: none\n"
@@ -24,8 +24,8 @@ msgstr ""
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
 #, no-wrap
-msgid "2012-06-04"
-msgstr ""
+msgid "2012-06-05"
+msgstr "05.06.2012"
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
index f4a4868..9f8da19 100644 (file)
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot 3.0~a28-1\n"
-"POT-Creation-Date: 2012-06-04 17:31+0300\n"
+"POT-Creation-Date: 2012-06-05 13:42+0300\n"
 "PO-Revision-Date: 2012-04-08 22:48+0300\n"
 "Last-Translator: Daniel Baumann <daniel@debian.org>\n"
 "Language-Team: none\n"
@@ -24,8 +24,8 @@ msgstr ""
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
 #, no-wrap
-msgid "2012-06-04"
-msgstr ""
+msgid "2012-06-05"
+msgstr "05.06.2012"
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
index b7465f1..bbf9599 100644 (file)
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot 3.0~a28-1\n"
-"POT-Creation-Date: 2012-06-04 17:31+0300\n"
+"POT-Creation-Date: 2012-06-05 13:42+0300\n"
 "PO-Revision-Date: 2012-04-08 22:48+0300\n"
 "Last-Translator: Daniel Baumann <daniel@debian.org>\n"
 "Language-Team: none\n"
@@ -24,8 +24,8 @@ msgstr ""
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
 #, no-wrap
-msgid "2012-06-04"
-msgstr ""
+msgid "2012-06-05"
+msgstr "05.06.2012"
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
index 471d68a..ecdf812 100644 (file)
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot 3.0~a28-1\n"
-"POT-Creation-Date: 2012-06-04 17:31+0300\n"
+"POT-Creation-Date: 2012-06-05 13:42+0300\n"
 "PO-Revision-Date: 2012-05-13 18:30+0100\n"
 "Last-Translator: Carlos Zuferri «chals» <chals@altorricon.com>\n"
 "Language-Team:  none\n"
@@ -24,8 +24,8 @@ msgstr "LIVE-BOOT"
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
 #, no-wrap
-msgid "2012-06-04"
-msgstr "04.06.2012"
+msgid "2012-06-05"
+msgstr "05.06.2012"
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
index 15ef10c..e26850c 100644 (file)
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot 3.0~a28-1\n"
-"POT-Creation-Date: 2012-06-04 17:31+0300\n"
+"POT-Creation-Date: 2012-06-05 13:42+0300\n"
 "PO-Revision-Date: \n"
 "Last-Translator: Carlos Zuferri «chals» <chals@altorricon.com>\n"
 "Language-Team:  none\n"
@@ -23,8 +23,8 @@ msgstr "LIVE-BOOT"
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
 #, no-wrap
-msgid "2012-06-04"
-msgstr "04.06.2012"
+msgid "2012-06-05"
+msgstr "05.06.2012"
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
index 72ea6cd..a3582f3 100644 (file)
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot 3.0~a28-1\n"
-"POT-Creation-Date: 2012-06-04 17:31+0300\n"
+"POT-Creation-Date: 2012-06-05 13:42+0300\n"
 "PO-Revision-Date: 2012-05-13 18:37+0100\n"
 "Last-Translator: Carlos Zuferri «chals» <chals@altorricon.com>\n"
 "Language-Team:  none\n"
@@ -23,8 +23,8 @@ msgstr "LIVE-BOOT"
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
 #, no-wrap
-msgid "2012-06-04"
-msgstr "04.06.2012"
+msgid "2012-06-05"
+msgstr "05.06.2012"
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
index 5dff425..9d6a341 100644 (file)
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot VERSION\n"
-"POT-Creation-Date: 2012-06-04 17:31+0300\n"
+"POT-Creation-Date: 2012-06-05 13:42+0300\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -25,7 +25,7 @@ msgstr ""
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
 #, no-wrap
-msgid "2012-06-04"
+msgid "2012-06-05"
 msgstr ""
 
 #. type: TH
index 65d2e67..d208618 100644 (file)
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot VERSION\n"
-"POT-Creation-Date: 2012-06-04 17:31+0300\n"
+"POT-Creation-Date: 2012-06-05 13:42+0300\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -25,7 +25,7 @@ msgstr ""
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
 #, no-wrap
-msgid "2012-06-04"
+msgid "2012-06-05"
 msgstr ""
 
 #. type: TH
index 84f5695..112bc31 100644 (file)
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot VERSION\n"
-"POT-Creation-Date: 2012-06-04 17:31+0300\n"
+"POT-Creation-Date: 2012-06-05 13:42+0300\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -25,7 +25,7 @@ msgstr ""
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1 en/live-snapshot.1:1
 #, no-wrap
-msgid "2012-06-04"
+msgid "2012-06-05"
 msgstr ""
 
 #. type: TH