diff options
author | Diego MartÃnez <kaeza@users.noreply.github.com> | 2017-01-27 10:19:55 -0300 |
---|---|---|
committer | Diego MartÃnez <kaeza@users.noreply.github.com> | 2017-01-27 10:19:55 -0300 |
commit | 1645070cea7409f62f0ad585173923c9baf933da (patch) | |
tree | 7c9a9dadedbbcb4649353fb245a44216750fa4ac | |
parent | 8eae4eec38de0669623328049ebb873c18c3af1e (diff) |
Use germanic language rules by default.
Use germanic language rules for plurals if no
`Plural-Forms` header is present.
-rw-r--r-- | gettext.lua | 4 |
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) |