X-Git-Url: http://git.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=build%2Fi18n-scan.pl;h=03ab0292eaba69fcfb1a6d2d59a0fe4f16725846;hp=102ae5f7aaff9db39e556ecb61cf562211f71249;hb=6dffa9ea56317a4bb6ecf58fd00b9fcd513cfa93;hpb=5193631c04142200494761440eda67514c11d649 diff --git a/build/i18n-scan.pl b/build/i18n-scan.pl index 102ae5f7aa..03ab0292ea 100755 --- a/build/i18n-scan.pl +++ b/build/i18n-scan.pl @@ -71,11 +71,8 @@ if( open F, "find $ARGV[0] -type f -name '*.htm' -or -name '*.lua' |" ) ) /$1 || $2/segx ) { - #$text =~ s/^ .*? (?: (?: translate f? | i18n ) [\s\n]* ( \( ) | ( <%: -? ) ) / $1 || $2 /sex; - #warn "T[$text]"; my $code; - reparse: ( $code, $text ) = extract_codeblock( $text, '', '^', '()' ); if( ! $code ) { ( $code, $text ) = extract_codeblock( $text, '', '^', '<>' ); @@ -91,9 +88,6 @@ if( open F, "find $ARGV[0] -type f -name '*.htm' -or -name '*.lua' |" ) } my ( $k, $v ) = _parse( $code ); - #warn "M[$code]"; - #last; - if( $k && defined($v) ) { if( $v )