summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSouheil CHELFOUH <trollfot@gmail.com>2018-10-18 12:18:32 +0200
committerSouheil CHELFOUH <trollfot@gmail.com>2018-10-18 12:18:32 +0200
commit818f7829b6885246bcda9c89c0f46e68f5835d13 (patch)
treed5a6d3aa344ab7950b69bf43a1a7570b5c3ec261
parent727dba5f7e5f355117db4161f113cf4afc9a10ac (diff)
downloadzope-i18n-818f7829b6885246bcda9c89c0f46e68f5835d13.tar.gz
Fixed typo and added file encoding in test.
-rw-r--r--src/zope/i18n/gettextmessagecatalog.py2
-rw-r--r--src/zope/i18n/tests/test_plurals.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/zope/i18n/gettextmessagecatalog.py b/src/zope/i18n/gettextmessagecatalog.py
index 675c7f2..8e1272b 100644
--- a/src/zope/i18n/gettextmessagecatalog.py
+++ b/src/zope/i18n/gettextmessagecatalog.py
@@ -34,7 +34,7 @@ class _KeyErrorRaisingFallback(object):
def plural_formatting(func):
"""This decorator interpolates the possible formatting marker.
This interpolation marker is usally present for plurals.
- Example: `There are %d apples` or `They have %s pies.'
+ Example: `There are %d apples` or `They have %s pies.`
Please note that the interpolation can be done, alternatively,
using the mapping. This is only present as a conveniance.
diff --git a/src/zope/i18n/tests/test_plurals.py b/src/zope/i18n/tests/test_plurals.py
index 50e192d..596ff7f 100644
--- a/src/zope/i18n/tests/test_plurals.py
+++ b/src/zope/i18n/tests/test_plurals.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.