diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-11-18 12:25:18 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-11-19 18:10:17 +0000 |
commit | 5fce15c329490e0dbfb539ce75f08ee07436de61 (patch) | |
tree | 1472b9417b8bdd5cc127080ffb6b8805df0d641e /bin | |
parent | 77dd10ba87673dff3d2bf55d12ec67343ad29bd3 (diff) |
Don't generate unused special templates/po files.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gettext-extract | 6 | ||||
-rwxr-xr-x | bin/merge_cobrand_po | 2 |
2 files changed, 4 insertions, 4 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"); } } |