diff --git a/VERSION b/VERSION index b55b8271..0dea6920 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.4-stable+timestamp.2013.09.21.20.41.28 +Version 2.6.4-stable+timestamp.2013.09.22.10.09.42 diff --git a/gluon/contrib/plural_rules/es.py b/gluon/contrib/plural_rules/es.py index 7f6a510a..4721bf0b 100644 --- a/gluon/contrib/plural_rules/es.py +++ b/gluon/contrib/plural_rules/es.py @@ -13,5 +13,8 @@ get_plural_id = lambda n: int(n != 1) # Construct and return plural form of *word* using # *plural_id* (which ALWAYS>0). This function will be executed # for words (or phrases) not found in plural_dict dictionary -# construct_plural_form = lambda word, plural_id: (word + 'suffix') +construct_plural_form = lambda word, plural_id: (word + + ('es' if word[-1:] in ('s', 'x', 'y', 'l', 'r', 'n', 'd', 'z', 'j') or + word[-2:] == 'ch' + else 's')) diff --git a/gluon/contrib/plural_rules/nl.py b/gluon/contrib/plural_rules/nl.py new file mode 100644 index 00000000..603164e3 --- /dev/null +++ b/gluon/contrib/plural_rules/nl.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python +# -*- coding: utf8 -*- +# Plural-Forms for nl (Dutch (Netherlands)) + +nplurals=2 # Dutch has 2 forms: + # 1 singular and 1 plural + +# Determine plural_id for number *n* as sequence of positive +# integers: 0,1,... +# NOTE! For singular form ALWAYS return plural_id = 0 +get_plural_id = lambda n: int(n != 1) + +# Construct and return plural form of *word* using +# *plural_id* (which ALWAYS>0). This function will be executed +# for words (or phrases) not found in plural_dict dictionary +# construct_plural_form = lambda word, plural_id: (word + 'suffix') +