diff options
| author | Chris McDonough <chrism@plope.com> | 2013-12-12 12:48:29 -0800 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-12-12 12:48:29 -0800 |
| commit | 51e5538d8e75a01fdb1c97d6b241071381cbc9fc (patch) | |
| tree | ec0daf06f63f433bd622f54e72c720b5125994ce /docs | |
| parent | 1e8a6b885784280e7304b609fb5282e26cd58674 (diff) | |
| parent | 2da03fedcdebd9499d13eadf1500f80d04f4d796 (diff) | |
| download | pyramid-51e5538d8e75a01fdb1c97d6b241071381cbc9fc.tar.gz pyramid-51e5538d8e75a01fdb1c97d6b241071381cbc9fc.tar.bz2 pyramid-51e5538d8e75a01fdb1c97d6b241071381cbc9fc.zip | |
Merge pull request #1206 from MatthewWilkes/master
Update pluralize docs now lingua1.7 is out
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/i18n.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/narr/i18n.rst b/docs/narr/i18n.rst index c9b782c08..5f50ca212 100644 --- a/docs/narr/i18n.rst +++ b/docs/narr/i18n.rst @@ -607,10 +607,8 @@ object, but the domain and mapping information attached is ignored. def aview(request): localizer = request.localizer num = 1 - translated = localizer.pluralize( - _('item_plural', default="${number} items"), - None, num, 'mydomain', mapping={'number':num} - ) + translated = localizer.pluralize('item_plural', '${number} items', + num, 'mydomain', mapping={'number':num}) The corresponding message catalog must have language plural definitions and plural alternatives set. |
