aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2014-11-18 12:25:18 +0000
committerMatthew Somerville <matthew@mysociety.org>2014-11-19 18:10:17 +0000
commit5fce15c329490e0dbfb539ce75f08ee07436de61 (patch)
tree1472b9417b8bdd5cc127080ffb6b8805df0d641e
parent77dd10ba87673dff3d2bf55d12ec67343ad29bd3 (diff)
Don't generate unused special templates/po files.
-rwxr-xr-xbin/gettext-extract6
-rwxr-xr-xbin/merge_cobrand_po2
-rw-r--r--t/app/controller/about.t4
3 files changed, 6 insertions, 6 deletions
diff --git a/bin/gettext-extract b/bin/gettext-extract
index 9d22529d4..b645f57dc 100755
--- a/bin/gettext-extract
+++ b/bin/gettext-extract
@@ -15,7 +15,7 @@ rm -f $PO
# we don't want to extract strings from all the cobrand templates so list
# the ones we care about
-find templates/web/base templates/web/fixmystreet templates/web/zurich templates/web/fiksgatami templates/web/emptyhomes templates/web/fixmybarangay -name '*.html' > template_list
+find templates/web/base templates/web/fixmystreet templates/web/zurich templates/web/fiksgatami -name '*.html' > template_list
# Extract from Perl
xgettext.pl --gnu-gettext --verbose --output $PO --plugin perl=* --plugin tt2 --directory perllib -f template_list --directory db --directory bin
@@ -29,6 +29,6 @@ bin/update_po_header.bash $PO
echo "$( bin/gettext-nget-patch )" >> $PO
-bin/make_po FixMyStreet-EmptyHomes
-bin/make_po FixMyBarangay
+#bin/make_po FixMyStreet-EmptyHomes
+#bin/make_po FixMyBarangay
diff --git a/bin/merge_cobrand_po b/bin/merge_cobrand_po
index 2785162cf..9e9c1c075 100755
--- a/bin/merge_cobrand_po
+++ b/bin/merge_cobrand_po
@@ -24,6 +24,6 @@ for (glob( 'locale/*/LC_MESSAGES' ) ) {
my $out = "$_/auto$cobrand.po";
if ( -e $cobrand_po and -e $fms ) {
print "$_\n";
- system("msgcat --no-wrap -o $out $fms $cobrand_po");
+ system("msgcat --use-first --no-wrap -o $out $fms $cobrand_po");
}
}
diff --git a/t/app/controller/about.t b/t/app/controller/about.t
index b3562ea04..fb0744d6a 100644
--- a/t/app/controller/about.t
+++ b/t/app/controller/about.t
@@ -17,13 +17,13 @@ FixMyStreet::override_config {
# check that geting the page as EHA produces a different page
ok $mech->host("reportemptyhomes.co.uk"), 'change host to reportemptyhomes';
$mech->get_ok('/about');
- $mech->content_like(qr{About us ::\s+Report Empty Homes});
+ $mech->content_like(qr{About us ::});
$mech->content_contains('html lang="en-gb"');
# check that geting the page as EHA in welsh produces a different page
ok $mech->host("cy.reportemptyhomes.co.uk"), 'host to cy.reportemptyhomes';
$mech->get_ok('/about');
- $mech->content_like(qr{Amdanom ni ::\s+Rhoi gwybod am eiddo gwag});
+ $mech->content_like(qr{Amdanom ni ::});
$mech->content_contains('html lang="cy"');
};