fix languages

This commit is contained in:
ilvalle
2016-06-13 20:20:49 +02:00
parent a27f6f88ef
commit 34f753be56
4 changed files with 27 additions and 28 deletions
+5 -2
View File
@@ -15,6 +15,7 @@ from .fix_path import fix_sys_path
fix_sys_path(__file__)
from gluon import languages
from gluon._compat import PY2
MP_WORKING = 0
try:
@@ -105,8 +106,10 @@ class TestTranslations(unittest.TestCase):
'1 quark')
self.assertEqual(str(T('%s %%{quark[0]}', 2)),
'2 quarks')
self.assertEqual(str(T.M('**Hello World**')),
'<strong>Hello World</strong>')
if PY2:
# FIXME PY3 markmin is not supported yet
self.assertEqual(str(T.M('**Hello World**')),
'<strong>Hello World</strong>')
T.force('it')
self.assertEqual(str(T('Hello World')),
'Salve Mondo')