aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew>2009-07-10 16:54:51 +0000
committermatthew <matthew>2009-07-10 16:54:51 +0000
commita29d29e79d3f48c02bda6d84978746cce220e7f2 (patch)
tree6990989de666fc3f72f11ca532542e12f7a09cf4
parent9031d3f8e24baba8eb162562d457499ae266299a (diff)
Translation of strings in DB used for RSS titles/descriptions.
-rwxr-xr-xbin/gettext-extract4
-rw-r--r--db/alert_types_eha.pl31
2 files changed, 33 insertions, 2 deletions
diff --git a/bin/gettext-extract b/bin/gettext-extract
index 3615fb246..f705c8d98 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.8 2009-07-10 16:10:21 matthew Exp $
+# $Id: gettext-extract,v 1.9 2009-07-10 16:54:51 matthew Exp $
if [ -e ../../locale ]
then
@@ -40,7 +40,7 @@ PO=locale/FixMyStreet.po
rm -f $PO
# Extract from Perl
-xgettext --add-comments=TRANS --language=Perl --keyword=_ --keyword=nget:1,2 --from-code=utf-8 -o $PO perllib/mySociety/*.pm bci/perllib/*.pm bci/web/*.cgi bci/bin/send-reports
+xgettext --add-comments=TRANS --language=Perl --keyword=_ --keyword=nget:1,2 --from-code=utf-8 -o $PO perllib/mySociety/*.pm bci/perllib/*.pm bci/web/*.cgi bci/bin/send-reports bci/db/alert_types_eha.pl
# Fix headers
TEMP=`tempfile`
diff --git a/db/alert_types_eha.pl b/db/alert_types_eha.pl
new file mode 100644
index 000000000..0e0bdd162
--- /dev/null
+++ b/db/alert_types_eha.pl
@@ -0,0 +1,31 @@
+# This file is only here so that the strings from alert_types_eha.sql
+# get into the .po translation file.
+
+# New updates on a particular problem report
+ _('Updates on {{title}}'),
+ _('Updates on {{title}}'),
+ _('Update by {{name}}'),
+
+# New problems anywhere on the site
+ _('New reports on reportemptyhomes.com'),
+ _('The latest empty properties reported by users'),
+
+# New fixed problems anywhere on the site
+ _('Properties recently reported as put back to use on reportemptyhomes.com'),
+ _('The latest properties reported back to use by users'),
+
+# New problems around a location
+ _('New local reports on reportemptyhomes.com'),
+ _('The latest local reports reported by users'),
+
+# New problems sent to a particular council
+ _('New reports to {{COUNCIL}} on reportemptyhomes.com'),
+ _('The latest reports for {{COUNCIL}} reported by users'),
+
+# New problems within a particular ward sent to a particular council
+ _('New reports for {{COUNCIL}} within {{WARD}} ward on reportemptyhomes.com'),
+ _('The latest reports for {{COUNCIL}} within {{WARD}} ward reported by users'),
+
+# New problems within a particular voting area (ward, constituency, whatever)
+ _('New reports within {{NAME}}\'s boundary on reportemptyhomes.com'),
+ _('The latest reports within {{NAME}}\'s boundary reported by users'),