1
0
mirror of https://github.com/minetest-mods/intllib.git synced 2025-07-04 17:10:22 +02:00

Return nil if msgstr is empty.

Also remove debugging statements left from previous commit.
This commit is contained in:
Diego Martínez
2017-01-24 20:10:37 -03:00
parent 50c42165ea
commit a3f9090ee8
2 changed files with 5 additions and 6 deletions

View File

@ -249,7 +249,6 @@ local function load_catalog(filename)
err = nil
local hdrs = data[""]
if not (hdrs and hdrs[0]) then
print(dump(hdrs))
return bail("catalog has no headers")
end