Use germanic language rules by default.

Use germanic language rules for plurals if no
`Plural-Forms` header is present.
This commit is contained in:
Diego Martínez 2017-01-27 10:19:55 -03:00
parent 8eae4eec38
commit 1645070cea
1 changed files with 2 additions and 2 deletions

View File

@ -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)