fixed issue 728, bug in languages, thanks pgergo

This commit is contained in:
Massimo Di Pierro
2012-03-26 11:17:20 -05:00
parent bc4def632c
commit ba93692ed4
84 changed files with 222 additions and 137 deletions
+3 -2
View File
@@ -49,7 +49,7 @@ def read_dict_aux(filename):
logging.error('Syntax error in %s' % filename)
return {'__corrupted__':True}
def read_dict(filename):
def read_dict(filename):
return getcfs('language:%s'%filename,filename,
lambda filename=filename:read_dict_aux(filename))
@@ -294,7 +294,7 @@ class translator(object):
self.t[message] = mt = tokens[0]
if self.language_file and not is_gae:
write_dict(self.language_file, self.t)
if symbols or symbols == 0:
if symbols or symbols == 0 or symbols == "":
return mt % symbols
return mt
@@ -351,3 +351,4 @@ if __name__ == '__main__':