summaryrefslogtreecommitdiff
path: root/gettext.lua
diff options
context:
space:
mode:
authorDiego Martínez <kaeza@users.noreply.github.com>2017-01-24 20:10:37 -0300
committerDiego Martínez <kaeza@users.noreply.github.com>2017-01-24 20:10:37 -0300
commita3f9090ee8f30001f355c68c634682959f5ebe55 (patch)
tree783ed114f61825b115fcc92303e8a3ed516d9449 /gettext.lua
parent50c42165ea1ef8592fcc8b2948201a52a6f7c82e (diff)
Return nil if `msgstr` is empty.
Also remove debugging statements left from previous commit.
Diffstat (limited to 'gettext.lua')
-rw-r--r--gettext.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/gettext.lua b/gettext.lua
index 6f3a1cb..d6ce223 100644
--- a/gettext.lua
+++ b/gettext.lua
@@ -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