summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gettext.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/gettext.lua b/gettext.lua
index 38d515e..dff4ec3 100644
--- a/gettext.lua
+++ b/gettext.lua
@@ -252,8 +252,8 @@ local function load_catalog(filename)
local pf = hdrs["Plural-Forms"]
if not pf then
- return bail("failed to load catalog:"
- .." catalog has no Plural-Forms header")
+ -- XXX: Is this right? Gettext assumes this if header not present.
+ pf = "nplurals=2; plural=n != 1"
end
data.plural_index, err = compile_plural_forms(pf)