build: fix po->lua conversion, last po entry was always missing
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 10 Jun 2009 23:04:07 +0000 (23:04 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 10 Jun 2009 23:04:07 +0000 (23:04 +0000)
build/i18n-po2lua.pl

index 8466fd9..c57198f 100755 (executable)
@@ -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 "(.+)"/ )
                                        {