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