aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gettext-extract8
-rwxr-xr-xbin/make_emptyhomes_po4
2 files changed, 6 insertions, 6 deletions
diff --git a/bin/gettext-extract b/bin/gettext-extract
index d6c248fda..60f4d640b 100755
--- a/bin/gettext-extract
+++ b/bin/gettext-extract
@@ -7,7 +7,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: gettext-extract,v 1.6 2009-05-27 15:27:18 matthew Exp $
+# $Id: gettext-extract,v 1.7 2009-05-27 15:48:38 matthew Exp $
if [ -e ../../locale ]
then
@@ -62,16 +62,16 @@ mv $TEMP $PO
# Extract email templates
echo >> $PO
echo '#. Please leave the first word "Subject:" untranslated' >> $PO
-for X in bci/templates/emails/*
+for X in bci/templates/emails/* bci/templates/emails/eha/*
do
# TODO: Should check for "*~" type filenames too, and do the *-livesimply case
# with wildcards rather than checking per template
- if [ "$X" != "bci/templates/emails/eha" -a "$X" != "bci/templates/emails/CVS" -a "$X" != "bci/templates/emails/empty property-confirm" -a "$X" != "bci/templates/emails/submit-eha" -a "$X" != "bci/templates/emails/questionnaire-eha-4weeks" -a "$X" != "bci/templates/emails/questionnaire-eha-26weeks" ]
+ if [ "$X" != "bci/templates/emails/eha" -a "$X" != "bci/templates/emails/CVS" -a "$X" != "bci/templates/emails/eha/CVS" ]
then
echo >> $PO
echo "#: $X" >> $PO
echo msgid \"\" >> $PO
- cat $X | plain_gettext_escape >> $PO
+ cat "$X" | plain_gettext_escape >> $PO
echo msgstr \"\" >> $PO
fi
done
diff --git a/bin/make_emptyhomes_po b/bin/make_emptyhomes_po
index 2c43301fe..4897ba451 100755
--- a/bin/make_emptyhomes_po
+++ b/bin/make_emptyhomes_po
@@ -25,7 +25,7 @@ my $buffer = "";
my $start = 0;
while(<MAINPO>) {
if (!$start) {
- s/#, fuzzy//;
+ s/#, fuzzy/#/;
}
if (m/"Last-Translator: FULL NAME/) {
$_ = '"Last-Translator: mysociety/bin/make_emptyhomes_po\\n"'."\n";
@@ -91,9 +91,9 @@ while(<MAINPO>) {
} else {
# English text
print NEWPO $_;
+ print EHAPO $_ unless $start;
$buffer .= $_;
}
-
}