1
0
mirror of https://github.com/minetest-mods/intllib.git synced 2025-01-23 08:20:19 +01:00

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

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)