fixed translator
This commit is contained in:
@@ -49,6 +49,7 @@
|
|||||||
'Cannot be empty': 'Non può essere vuoto',
|
'Cannot be empty': 'Non può essere vuoto',
|
||||||
'Change password': 'Cambia Password',
|
'Change password': 'Cambia Password',
|
||||||
'change password': 'Cambia password',
|
'change password': 'Cambia password',
|
||||||
|
'Change Password': 'Change Password',
|
||||||
'Check to delete': 'Seleziona per cancellare',
|
'Check to delete': 'Seleziona per cancellare',
|
||||||
'Clear': 'Resetta',
|
'Clear': 'Resetta',
|
||||||
'Clear CACHE?': 'Resetta CACHE?',
|
'Clear CACHE?': 'Resetta CACHE?',
|
||||||
@@ -60,6 +61,7 @@
|
|||||||
'Community': 'Community',
|
'Community': 'Community',
|
||||||
'Components and Plugins': 'Componenti and Plugin',
|
'Components and Plugins': 'Componenti and Plugin',
|
||||||
'Config.ini': 'Config.ini',
|
'Config.ini': 'Config.ini',
|
||||||
|
'Confirm Password': 'Confirm Password',
|
||||||
'contains': 'contiene',
|
'contains': 'contiene',
|
||||||
'Controller': 'Controller',
|
'Controller': 'Controller',
|
||||||
'Copyright': 'Copyright',
|
'Copyright': 'Copyright',
|
||||||
@@ -155,6 +157,7 @@
|
|||||||
'Lost Password': 'Password Smarrita',
|
'Lost Password': 'Password Smarrita',
|
||||||
'Lost password?': 'Password smarrita?',
|
'Lost password?': 'Password smarrita?',
|
||||||
'lost password?': 'dimenticato la password?',
|
'lost password?': 'dimenticato la password?',
|
||||||
|
'Lost your password?': 'Lost your password?',
|
||||||
'Main Menu': 'Menu principale',
|
'Main Menu': 'Menu principale',
|
||||||
'Manage %(action)s': 'Manage %(action)s',
|
'Manage %(action)s': 'Manage %(action)s',
|
||||||
'Manage Access Control': 'Manage Access Control',
|
'Manage Access Control': 'Manage Access Control',
|
||||||
|
|||||||
@@ -3284,6 +3284,8 @@ class SQLFORM(FORM):
|
|||||||
if isinstance(kwargs.get(key, None), dict):
|
if isinstance(kwargs.get(key, None), dict):
|
||||||
if table._tablename in kwargs[key]:
|
if table._tablename in kwargs[key]:
|
||||||
kwargs[key] = kwargs[key][table._tablename]
|
kwargs[key] = kwargs[key][table._tablename]
|
||||||
|
elif '*' in kwargs[key]:
|
||||||
|
kwargs[key] = kwargs[key]['*']
|
||||||
else:
|
else:
|
||||||
del kwargs[key]
|
del kwargs[key]
|
||||||
check = {}
|
check = {}
|
||||||
|
|||||||
+3
-3
@@ -3408,7 +3408,7 @@ class IS_FILE(Validator):
|
|||||||
try:
|
try:
|
||||||
string = value.filename
|
string = value.filename
|
||||||
except:
|
except:
|
||||||
return (value, translator(self.error_message))
|
return (value, self.translator(self.error_message))
|
||||||
if self.case == 1:
|
if self.case == 1:
|
||||||
string = string.lower()
|
string = string.lower()
|
||||||
elif self.case == 2:
|
elif self.case == 2:
|
||||||
@@ -3420,9 +3420,9 @@ class IS_FILE(Validator):
|
|||||||
if dot == -1:
|
if dot == -1:
|
||||||
dot = len(string)
|
dot = len(string)
|
||||||
if self.filename and not self.match(self.filename, string[:dot]):
|
if self.filename and not self.match(self.filename, string[:dot]):
|
||||||
return (value, translator(self.error_message))
|
return (value, self.translator(self.error_message))
|
||||||
elif self.extension and not self.match(self.extension, string[dot + 1:]):
|
elif self.extension and not self.match(self.extension, string[dot + 1:]):
|
||||||
return (value, translator(self.error_message))
|
return (value, self.translator(self.error_message))
|
||||||
else:
|
else:
|
||||||
return (value, None)
|
return (value, None)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user