X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=build%2Fi18n-scan.pl;fp=build%2Fi18n-scan.pl;h=3f732710963258e25454ffe06ddf2072edc82791;hb=14a9306e7d088455bd63bbf4ef65866e74f05ce2;hp=88073840277edaefd40c7c6c862ec9ef8a631918;hpb=c8b7a97580a0875c0f5fdded4fa5bf556cac35e0;p=project%2Fluci.git diff --git a/build/i18n-scan.pl b/build/i18n-scan.pl index 880738402..3f7327109 100755 --- a/build/i18n-scan.pl +++ b/build/i18n-scan.pl @@ -64,6 +64,10 @@ if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" ) { ( $sub, $code ) = extract_delimited($code, q{'"}, q{\s*(?:\.\.\s*)?}); + if( length($sub) < 1 ) { + undef $sub; + } + if( defined $sub ) { $res .= substr $sub, 1, length($sub) - 2;