From: Jo-Philipp Wich Date: Wed, 10 Jun 2009 23:04:07 +0000 (+0000) Subject: build: fix po->lua conversion, last po entry was always missing X-Git-Tag: 0.9.0~209 X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=2ef4b11de93165bd197b1583997f5c78d6bc64e5 build: fix po->lua conversion, last po entry was always missing --- diff --git a/build/i18n-po2lua.pl b/build/i18n-po2lua.pl index 8466fd989..c57198fd5 100755 --- a/build/i18n-po2lua.pl +++ b/build/i18n-po2lua.pl @@ -31,7 +31,7 @@ if( open F, "find $source_dir -type f -name '*.po' |" ) my ( $k, $v ); - while( chomp( my $line = readline L ) ) + while( chomp( my $line = readline L ) || ( defined($k) && defined($v) ) ) { if( $line =~ /^msgid "(.+)"/ ) {