summaryrefslogtreecommitdiffhomepage
path: root/build/i18n-scan.pl
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-11-05 18:35:54 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-11-05 18:35:54 +0000
commit5e86b77294fd1c64b4f56407d156737d7a147e37 (patch)
treecb7f279bbf5e5798236733860ebfe75653e052ca /build/i18n-scan.pl
parent5cd67479c341475f3dde4e13c527aae387abb679 (diff)
build: i18n-scan.pl: cope with strings that contain escaped newlines, spotted in luci-pbx
Diffstat (limited to 'build/i18n-scan.pl')
-rwxr-xr-xbuild/i18n-scan.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/i18n-scan.pl b/build/i18n-scan.pl
index cee07fdfe..880738402 100755
--- a/build/i18n-scan.pl
+++ b/build/i18n-scan.pl
@@ -51,6 +51,7 @@ if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" )
{
( my $code, $text ) = extract_bracketed($text, q{('")});
+ $code =~ s/\\\n/ /g;
$code =~ s/^\([\n\s]*//;
$code =~ s/[\n\s]*\)$//;