* do not force to fill optional tags.

This commit is contained in:
Faik Uygur
2006-08-19 17:54:24 +00:00
parent 25906489d2
commit eecf2072fc
+2 -2
View File
@@ -118,8 +118,8 @@ class LocalText(dict):
def errors(self, where = unicode()):
errs = []
langs = [ LocalText.get_lang(), 'en', 'tr', ]
if 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"))
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"))
#FIXME: check if all entries are unicode
return errs