diff options
| author | Chris McDonough <chrism@plope.com> | 2013-12-12 15:49:41 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-12-12 15:49:41 -0500 |
| commit | 28c26c17d66b563140e60b95ca1ea7e6dc3ccb6c (patch) | |
| tree | ec0daf06f63f433bd622f54e72c720b5125994ce /docs/narr | |
| parent | b13969deeb80dd9aa5130d16ea712b323ac3bafe (diff) | |
| parent | 51e5538d8e75a01fdb1c97d6b241071381cbc9fc (diff) | |
| download | pyramid-28c26c17d66b563140e60b95ca1ea7e6dc3ccb6c.tar.gz pyramid-28c26c17d66b563140e60b95ca1ea7e6dc3ccb6c.tar.bz2 pyramid-28c26c17d66b563140e60b95ca1ea7e6dc3ccb6c.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/narr')
| -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. |
