build: fix po->lua conversion, last po entry was always missing
[project/luci.git] / 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 "(.+)"/ )
                                        {