Skip to content

Commit

Permalink
Fix typos in comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
thefunny42 committed Oct 22, 2018
1 parent 9bb00a4 commit 555e406
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/zope/i18n/tests/test_translationdomain.py
Expand Up @@ -113,8 +113,8 @@ def testMessageIDRecursiveTranslate(self):
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,
Expand All @@ -123,13 +123,13 @@ def testMessageIDRecursiveTranslate(self):
# 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")
Expand Down

0 comments on commit 555e406

Please sign in to comment.