diff --git a/i18n/dummy.py b/i18n/dummy.py
index b192069329..2e6c073db0 100644
--- a/i18n/dummy.py
+++ b/i18n/dummy.py
@@ -53,10 +53,12 @@ TABLE = {
# The print industry's standard dummy text, in use since the 1500s
# see http://www.lipsum.com/, then fed through a "fancy-text" converter.
-# The string should start with a space.
+# The string should start with a space, so that it joins nicely with the text
+# that precedes it. The Lorem contains an apostrophe since French often does,
+# and translated strings get put into single-quoted strings, which then break.
LOREM = " " + " ".join( # join and split just make the string easier here.
u"""
- Ⱡσяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α∂ιριѕι¢ιηg єłιт, ѕє∂ ∂σ єιυѕмσ∂
+ Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α∂ιριѕι¢ιηg єłιт, ѕє∂ ∂σ єιυѕмσ∂
тємρσя ιη¢ι∂ι∂υηт υт łαвσяє єт ∂σłσяє мαgηα αłιqυα. υт єηιм α∂ мιηιм
νєηιαм, qυιѕ ησѕтяυ∂ єχєя¢ιтαтιση υłłαм¢σ łαвσяιѕ ηιѕι υт αłιqυιρ єχ єα
¢σммσ∂σ ¢σηѕєqυαт. ∂υιѕ αυтє ιяυяє ∂σłσя ιη яєρяєнєη∂єяιт ιη νσłυρтαтє
@@ -68,7 +70,7 @@ LOREM = " " + " ".join( # join and split just make the string easier here.
# To simulate more verbose languages (like German), pad the length of a string
# by a multiple of PAD_FACTOR
-PAD_FACTOR = 1.3
+PAD_FACTOR = 1.33
class Dummy(Converter):
diff --git a/i18n/tests/test_dummy.py b/i18n/tests/test_dummy.py
index 2d1b1b71c3..cd51c59743 100644
--- a/i18n/tests/test_dummy.py
+++ b/i18n/tests/test_dummy.py
@@ -34,13 +34,13 @@ class TestDummy(TestCase):
@ddt.data(
(u"hello my name is Bond, James Bond",
- u"héllø mý nämé ïs Bønd, Jämés Bønd Ⱡσяєм ι#"),
+ u"héllø mý nämé ïs Bønd, Jämés Bønd Ⱡ'σяєм ι#"),
(u"don't convert tag ids",
- u"døn't çønvért täg ïds Ⱡσяєм ιρѕυ#"),
+ u"døn't çønvért täg ïds Ⱡ'σяєм ιρѕυ#"),
(u"don't convert %(name)s tags on %(date)s",
- u"døn't çønvért %(name)s tägs øn %(date)s Ⱡσяєм ιρѕ#"),
+ u"døn't çønvért %(name)s tägs øn %(date)s Ⱡ'σяєм ιρѕ#"),
)
def test_dummy(self, data):
"""
@@ -53,17 +53,17 @@ class TestDummy(TestCase):
def test_singular(self):
entry = POEntry()
- entry.msgid = 'A lovely day for a cup of tea.'
- expected = u'À løvélý däý før ä çüp øf téä. Ⱡσяєм ι#'
+ entry.msgid = "A lovely day for a cup of tea."
+ expected = u"À løvélý däý før ä çüp øf téä. Ⱡ'σяєм #"
self.converter.convert_msg(entry)
self.assertUnicodeEquals(entry.msgstr, expected)
def test_plural(self):
entry = POEntry()
- entry.msgid = 'A lovely day for a cup of tea.'
- entry.msgid_plural = 'A lovely day for some cups of tea.'
- expected_s = u'À løvélý däý før ä çüp øf téä. Ⱡσяєм ι#'
- expected_p = u'À løvélý däý før sømé çüps øf téä. Ⱡσяєм ιρ#'
+ entry.msgid = "A lovely day for a cup of tea."
+ entry.msgid_plural = "A lovely day for some cups of tea."
+ expected_s = u"À løvélý däý før ä çüp øf téä. Ⱡ'σяєм #"
+ expected_p = u"À løvélý däý før sømé çüps øf téä. Ⱡ'σяєм ιρ#"
self.converter.convert_msg(entry)
result = entry.msgstr_plural
self.assertUnicodeEquals(result['0'], expected_s)