luci-mod-network: avoid needlessly writing `none` RA flags
[project/luci.git] / build / i18n-scan.pl
index e46863942be622be52db51a67d2ca18aa3adb08a..0374b6d872b6e80b3e032a6828b0372f70600c68 100755 (executable)
@@ -170,7 +170,7 @@ sub preprocess_json($$) {
        my ($path, $source) = @_;
        my ($file) = $path =~ m!([^/]+)$!;
 
-       $source =~ s/("(?:title)")\s*:\s*("(?:[^"\\]|\\.)*")/$1: _($2)/sg;
+       $source =~ s/("(?:title|description)")\s*:\s*("(?:[^"\\]|\\.)*")/$1: _($2)/sg;
 
        return ($source);
 }
@@ -181,7 +181,7 @@ my $msguniq_pid = open2($msguniq_out, $msguniq_in, 'msguniq', '-s');
 
 print $msguniq_in "msgid \"\"\nmsgstr \"Content-Type: text/plain; charset=UTF-8\"\n";
 
-if (open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' -o -name '*.js' -o -path '*/menu.d/*.json' ')' |")
+if (open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' -o -name '*.js' -o -path '*/menu.d/*.json' -o -path '*/acl.d/*.json' -o -path '*/statistics/plugins/*.json' ')' |")
 {
        while (defined( my $file = readline F))
        {