summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Viollon <sviollon@minddistrict.com>2018-10-22 14:41:12 +0200
committerSylvain Viollon <sviollon@minddistrict.com>2018-10-22 14:41:12 +0200
commit555e4063e669e6b9ae26cb3621220618bd3debba (patch)
tree1d308a5cd1671bf3dd275569e809e60d52658439
parent9bb00a4a1298553e0fd8fba3657bc2e3eaa1b6e3 (diff)
downloadzope-i18n-555e4063e669e6b9ae26cb3621220618bd3debba.tar.gz
Fix typos in comments.
-rw-r--r--src/zope/i18n/tests/test_translationdomain.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zope/i18n/tests/test_translationdomain.py b/src/zope/i18n/tests/test_translationdomain.py
index 34ee21a..f8efbd9 100644
--- a/src/zope/i18n/tests/test_translationdomain.py
+++ b/src/zope/i18n/tests/test_translationdomain.py
@@ -113,8 +113,8 @@ class TestGlobalTranslationDomain(TestITranslationDomain, unittest.TestCase):
msgid2.mapping['msg1'] = msgid1
self.assertRaises(ValueError,
translate, msgid1, None, None, 'en', "default")
- # Recusrive translations also work if the original message id wasn't a
- # message id but a unicode with a directly passed mapping
+ # Recursive translations also work if the original message id wasn't a
+ # message id but a Unicode with a directly passed mapping
self.assertEqual(
"Color: BLUE/YELLOW",
translate(u"Color: ${color1}/${color2}", mapping=mapping,
@@ -123,13 +123,13 @@ class TestGlobalTranslationDomain(TestITranslationDomain, unittest.TestCase):
# If we have mapping with a message id from a different
# domain, make sure we use that domain, not ours. If the
# message domain is not registered yet, we should return a
- # defualt translation.
+ # default translation.
alt_factory = MessageFactory('alt')
msgid_sub = alt_factory(u"special", default=u"oohhh")
mapping = {'message': msgid_sub}
msgid = factory(u"46-not-there", 'Message: ${message}',
mapping=mapping)
- # test we get a default with no domain registerd
+ # test we get a default with no domain registered
self.assertEqual(
translate(msgid, target_language='en', default="default"),
"Message: oohhh")