X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=jsgettext.pl;h=da18b3db3e61d8260c2781ed8a12d5b7a5130ee6;hb=e12af626e9be81f0cf112d615f331a707498cbdb;hp=033e7423a3ab74c2da14d4d6512c914850cd4640;hpb=1bddddef4ada9ca96389f5f2badeb9cfe079488c;p=proxmox-i18n.git diff --git a/jsgettext.pl b/jsgettext.pl index 033e742..da18b3d 100755 --- a/jsgettext.pl +++ b/jsgettext.pl @@ -55,12 +55,12 @@ PVE::Tools::run_command($findcmd, outfunc => sub { my $header = <<__EOD; Proxmox message catalog. -Copyright (C) 2011-2017 Proxmox Server Solutions GmbH +Copyright (C) 2011-2020 Proxmox Server Solutions GmbH This file is free software: you can redistribute it and\/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -Proxmox Support Team , 2017. +Proxmox Support Team , 2020. __EOD my $ctime = scalar localtime; @@ -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); }