From: Dietmar Maurer Date: Thu, 14 Dec 2017 12:44:48 +0000 (+0100) Subject: jsgettext.pl: correctly skip gettext function definition X-Git-Url: https://git.proxmox.com/?p=proxmox-i18n.git;a=commitdiff_plain;h=1c5328134073d98d8486e20a85a81ff83582ea05 jsgettext.pl: correctly skip gettext function definition --- diff --git a/jsgettext.pl b/jsgettext.pl index 033e742..6dd7391 100755 --- a/jsgettext.pl +++ b/jsgettext.pl @@ -118,7 +118,7 @@ sub extract_msg { foreach my $s (@$sources) { open(SRC, $s) || die "unable to open file '$s' - $!\n"; while(defined(my $line = )) { - next if $line =~ m/^function gettext/; + next if $line =~ m/^\s*function gettext/; if ($line =~ m/gettext\s*\(/) { extract_msg($s, $., $line); }