Use germanic language rules by default.
Use germanic language rules for plurals if no `Plural-Forms` header is present.
This commit is contained in:
parent
8eae4eec38
commit
1645070cea
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue