diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-10-08 22:38:13 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@firefly.ukcod.org.uk> | 2012-10-08 22:38:26 +0100 |
commit | 2b0fc3749e9cf5d210718c0082606640b3148ae1 (patch) | |
tree | 57ca7cb1418cc898b545ffbcacce2af21304b21d /bin/gettext-nget-patch | |
parent | 7a3b06d61f63f34eed12029c974dc66d6ffbdc87 (diff) |
Update .po file, and make prettify function do nget() properly.
Diffstat (limited to 'bin/gettext-nget-patch')
-rwxr-xr-x | bin/gettext-nget-patch | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/bin/gettext-nget-patch b/bin/gettext-nget-patch index eadc46d0e..5ebd8bbcb 100755 --- a/bin/gettext-nget-patch +++ b/bin/gettext-nget-patch @@ -18,16 +18,17 @@ find( sub { do { $text .= <FP>; } until $text =~ /\)/; - $text =~ /nget\(\s*"(.*?)"\s*,\s*"(.*?)"\s*,\s*(.*?)\s*\)/s; - $out{$1} = { - file => $File::Find::name, - line => $line, - s => $1, - p => $2, - }; + if ($text =~ /nget\(\s*"(.*?)"\s*,\s*"(.*?)"\s*,\s*(.*?)\s*\)/s) { + $out{$1} = { + file => $File::Find::name, + line => $line, + s => $1, + p => $2, + }; + } } close FP; -}, 'templates'); +}, 'templates', 'perllib'); foreach (values %out) { print <<EOF; |