fixed a problem with translation in validators, thanks niphlod
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 1.99.4 (2012-01-12 14:01:39) stable
|
Version 1.99.4 (2012-01-12 14:04:26) stable
|
||||||
|
|||||||
+3
-1
@@ -56,7 +56,9 @@ __all__ = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
def translate(text):
|
def translate(text):
|
||||||
if isinstance(text,(str,unicode)):
|
if text is None:
|
||||||
|
return None
|
||||||
|
elif isinstance(text,(str,unicode)):
|
||||||
from globals import current
|
from globals import current
|
||||||
if hasattr(current,'T'):
|
if hasattr(current,'T'):
|
||||||
return str(current.T(text))
|
return str(current.T(text))
|
||||||
|
|||||||
Reference in New Issue
Block a user