Glossary csv-to-pot.sh patch
- From: Christian Rose <menthos menthos com>
- To: Michael Twomey <michael twomey ireland sun com>,Aoife Dunne <Aoife Dunne ireland sun com>,Lorna Whelan <Lorna Whelan ireland sun com>
- Cc: gnome-i18n gnome org
- Subject: Glossary csv-to-pot.sh patch
- Date: Sun, 25 Mar 2001 20:21:50 +0200
This patch fixes the problems with the pot creation date not being
added, changes the comments to "#. " comments, and avoids empty
comments.
Christian
Index: csv-to-pot.sh
===================================================================
RCS file: /cvs/gnome/gnome-i18n/glossary/csv-to-pot.sh,v
retrieving revision 1.1
diff -u -r1.1 csv-to-pot.sh
--- csv-to-pot.sh 2001/03/23 13:46:08 1.1
+++ csv-to-pot.sh 2001/03/25 18:16:20
@@ -30,7 +30,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-02-22 23:47+0000\n"
+"POT-Creation-Date: `date +'%Y-%m-%d %H:%M%z'`\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"
@@ -41,4 +41,5 @@
!
#Yes this is the most simple awk script you've ever seen :)
-awk -F'|' '{print "#"$2,"\nmsgid "$1,"\nmsgstr \"\"\n"}' $GLOSSARY_CSV
+awk -F'|' '{if ($2 != "") print "#. "$2; print "msgid "$1,"\nmsgstr \"\"\n"}' \
+$GLOSSARY_CSV
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]