aboutsummaryrefslogtreecommitdiffstats
path: root/bin/gettext-nget-patch
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-10-08 22:38:13 +0100
committerMatthew Somerville <matthew@firefly.ukcod.org.uk>2012-10-08 22:38:26 +0100
commit2b0fc3749e9cf5d210718c0082606640b3148ae1 (patch)
tree57ca7cb1418cc898b545ffbcacce2af21304b21d /bin/gettext-nget-patch
parent7a3b06d61f63f34eed12029c974dc66d6ffbdc87 (diff)
Update .po file, and make prettify function do nget() properly.
Diffstat (limited to 'bin/gettext-nget-patch')
-rwxr-xr-xbin/gettext-nget-patch17
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;