* do not force to fill optional tags.
This commit is contained in:
@@ -118,7 +118,7 @@ class LocalText(dict):
|
|||||||
def errors(self, where = unicode()):
|
def errors(self, where = unicode()):
|
||||||
errs = []
|
errs = []
|
||||||
langs = [ LocalText.get_lang(), 'en', 'tr', ]
|
langs = [ LocalText.get_lang(), 'en', 'tr', ]
|
||||||
if not util.any(lambda x : self.has_key(x), langs):
|
if self.keys() and not util.any(lambda x : self.has_key(x), langs):
|
||||||
errs.append( where + ': ' + _("Tag should have at least the current locale, or failing that an English or Turkish version"))
|
errs.append( where + ': ' + _("Tag should have at least the current locale, or failing that an English or Turkish version"))
|
||||||
#FIXME: check if all entries are unicode
|
#FIXME: check if all entries are unicode
|
||||||
return errs
|
return errs
|
||||||
|
|||||||
Reference in New Issue
Block a user