projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some translation for Swedish done.
[project/luci.git]
/
build
/
i18n-scan.pl
diff --git
a/build/i18n-scan.pl
b/build/i18n-scan.pl
index
1243545
..
899d90d
100755
(executable)
--- a/
build/i18n-scan.pl
+++ b/
build/i18n-scan.pl
@@
-28,6
+28,7
@@
sub dec_tpl_str
$s =~ s/[\s\n]+/ /g;
$s =~ s/^ //;
$s =~ s/ $//;
$s =~ s/[\s\n]+/ /g;
$s =~ s/^ //;
$s =~ s/ $//;
+ $s =~ s/\\/\\\\/g;
return $s;
}
return $s;
}
@@
-60,7
+61,7
@@
if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" )
if( $code =~ /^['"]/ )
{
if( $code =~ /^['"]/ )
{
- while( defined $sub
&& length($sub) > 0
)
+ while( defined $sub )
{
( $sub, $code ) = extract_delimited($code, q{'"}, q{\s*(?:\.\.\s*)?});
{
( $sub, $code ) = extract_delimited($code, q{'"}, q{\s*(?:\.\.\s*)?});
@@
-68,6
+69,10
@@
if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" )
{
$res .= substr $sub, 1, length($sub) - 2;
}
{
$res .= substr $sub, 1, length($sub) - 2;
}
+ else
+ {
+ undef $sub;
+ }
}
}
elsif( $code =~ /^(\[=*\[)/ )
}
}
elsif( $code =~ /^(\[=*\[)/ )