From: Daniel Baumann Date: Tue, 5 Jun 2012 11:44:09 +0000 (+0200) Subject: Automatically translate date formats in po files. X-Git-Tag: debian/3.0_a29-1~9 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=80e7f344bc729318a4788c7062a85dc66bf3a305 Automatically translate date formats in po files. --- diff --git a/manpages/bin/update-version.sh b/manpages/bin/update-version.sh index 41c0ae1..1765772 100755 --- a/manpages/bin/update-version.sh +++ b/manpages/bin/update-version.sh @@ -1,11 +1,24 @@ #!/bin/sh +## live-boot(7) - System Boot Scripts +## Copyright (C) 2006-2012 Daniel Baumann +## +## 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 diff --git a/manpages/de/live-boot.de.7 b/manpages/de/live-boot.de.7 index 23115a5..b64d2bb 100644 --- a/manpages/de/live-boot.de.7 +++ b/manpages/de/live-boot.de.7 @@ -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 diff --git a/manpages/de/live-persistence.conf.de.5 b/manpages/de/live-persistence.conf.de.5 index 2562d29..c5a6acd 100644 --- a/manpages/de/live-persistence.conf.de.5 +++ b/manpages/de/live-persistence.conf.de.5 @@ -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 diff --git a/manpages/de/live-snapshot.de.1 b/manpages/de/live-snapshot.de.1 index 4283210..291fc27 100644 --- a/manpages/de/live-snapshot.de.1 +++ b/manpages/de/live-snapshot.de.1 @@ -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 diff --git a/manpages/en/live-boot.7 b/manpages/en/live-boot.7 index 98f4ba3..d48d5e1 100644 --- a/manpages/en/live-boot.7 +++ b/manpages/en/live-boot.7 @@ -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 diff --git a/manpages/en/live-persistence.conf.5 b/manpages/en/live-persistence.conf.5 index 26aa646..71feaea 100644 --- a/manpages/en/live-persistence.conf.5 +++ b/manpages/en/live-persistence.conf.5 @@ -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 diff --git a/manpages/en/live-snapshot.1 b/manpages/en/live-snapshot.1 index f5309fc..a08303b 100644 --- a/manpages/en/live-snapshot.1 +++ b/manpages/en/live-snapshot.1 @@ -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 diff --git a/manpages/es/live-boot.es.7 b/manpages/es/live-boot.es.7 index 44eb613..5cc722b 100644 --- a/manpages/es/live-boot.es.7 +++ b/manpages/es/live-boot.es.7 @@ -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 diff --git a/manpages/es/live-persistence.conf.es.5 b/manpages/es/live-persistence.conf.es.5 index 5f24dff..3ea9fda 100644 --- a/manpages/es/live-persistence.conf.es.5 +++ b/manpages/es/live-persistence.conf.es.5 @@ -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 diff --git a/manpages/es/live-snapshot.es.1 b/manpages/es/live-snapshot.es.1 index bc63ccc..a915ce8 100644 --- a/manpages/es/live-snapshot.es.1 +++ b/manpages/es/live-snapshot.es.1 @@ -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 diff --git a/manpages/po/de/live-boot.7.po b/manpages/po/de/live-boot.7.po index ffbdfff..734ff12 100644 --- a/manpages/po/de/live-boot.7.po +++ b/manpages/po/de/live-boot.7.po @@ -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 \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 diff --git a/manpages/po/de/live-persistence.conf.5.po b/manpages/po/de/live-persistence.conf.5.po index f4a4868..9f8da19 100644 --- a/manpages/po/de/live-persistence.conf.5.po +++ b/manpages/po/de/live-persistence.conf.5.po @@ -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 \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 diff --git a/manpages/po/de/live-snapshot.1.po b/manpages/po/de/live-snapshot.1.po index b7465f1..bbf9599 100644 --- a/manpages/po/de/live-snapshot.1.po +++ b/manpages/po/de/live-snapshot.1.po @@ -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 \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 diff --git a/manpages/po/es/live-boot.7.po b/manpages/po/es/live-boot.7.po index 471d68a..ecdf812 100644 --- a/manpages/po/es/live-boot.7.po +++ b/manpages/po/es/live-boot.7.po @@ -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» \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 diff --git a/manpages/po/es/live-persistence.conf.5.po b/manpages/po/es/live-persistence.conf.5.po index 15ef10c..e26850c 100644 --- a/manpages/po/es/live-persistence.conf.5.po +++ b/manpages/po/es/live-persistence.conf.5.po @@ -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» \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 diff --git a/manpages/po/es/live-snapshot.1.po b/manpages/po/es/live-snapshot.1.po index 72ea6cd..a3582f3 100644 --- a/manpages/po/es/live-snapshot.1.po +++ b/manpages/po/es/live-snapshot.1.po @@ -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» \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 diff --git a/manpages/pot/live-boot.7.pot b/manpages/pot/live-boot.7.pot index 5dff425..9d6a341 100644 --- a/manpages/pot/live-boot.7.pot +++ b/manpages/pot/live-boot.7.pot @@ -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 \n" "Language-Team: LANGUAGE \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 diff --git a/manpages/pot/live-persistence.conf.5.pot b/manpages/pot/live-persistence.conf.5.pot index 65d2e67..d208618 100644 --- a/manpages/pot/live-persistence.conf.5.pot +++ b/manpages/pot/live-persistence.conf.5.pot @@ -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 \n" "Language-Team: LANGUAGE \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 diff --git a/manpages/pot/live-snapshot.1.pot b/manpages/pot/live-snapshot.1.pot index 84f5695..112bc31 100644 --- a/manpages/pot/live-snapshot.1.pot +++ b/manpages/pot/live-snapshot.1.pot @@ -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 \n" "Language-Team: LANGUAGE \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