Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-17 17:11:34 +0300
committerJo-Philipp Wich <jo@mein.io>2020-04-17 17:12:03 +0300
commit0bc29706408c4cf8746917a6e4d4045397adca64 (patch)
treef51ba34029337aeeccda7f972693595f2870f335 /build
parentd516e2247e866128aa036c0a49d6b5d29307e000 (diff)
build: i18n-scan.pl: make ACL descriptions translatable
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'build')
-rwxr-xr-xbuild/i18n-scan.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/i18n-scan.pl b/build/i18n-scan.pl
index 879cbe6a90..0374b6d872 100755
--- a/build/i18n-scan.pl
+++ b/build/i18n-scan.pl
@@ -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' -o -path '*/statistics/plugins/*.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))
{