projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c48b56
)
build: rework i18n-scan.pl defined checks
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 2 Apr 2012 23:57:11 +0000
(23:57 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 2 Apr 2012 23:57:11 +0000
(23:57 +0000)
build/i18n-scan.pl
patch
|
blob
|
history
diff --git
a/build/i18n-scan.pl
b/build/i18n-scan.pl
index 3f732710963258e25454ffe06ddf2072edc82791..1243545ac5134b2ef371257264e904b92ef6c411 100755
(executable)
--- a/
build/i18n-scan.pl
+++ b/
build/i18n-scan.pl
@@
-60,15
+60,11
@@
if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" )
if( $code =~ /^['"]/ )
{
- while( defined $sub )
+ while( defined $sub
&& length($sub) > 0
)
{
( $sub, $code ) = extract_delimited($code, q{'"}, q{\s*(?:\.\.\s*)?});
- if( length($sub) < 1 ) {
- undef $sub;
- }
-
- if( defined $sub )
+ if( defined $sub && length($sub) > 2 )
{
$res .= substr $sub, 1, length($sub) - 2;
}