Index: localize.py =================================================================== RCS file: /home/cvsroot/jSuite.py/jToolkit/localize.py,v retrieving revision 1.13 diff -u -r1.13 localize.py --- localize.py 16 May 2005 12:50:35 -0000 1.13 +++ localize.py 24 May 2005 20:27:06 -0000 @@ -48,6 +48,8 @@ def ngettext(self, singular, plural, n): """gets the plural translation of the message by searching through all the domains""" for translation in self.translations: + if not hasattr(translation, "plural"): + continue plural = translation.plural tmsg = translation._catalog[(singular, plural(n))] if tmsg is not None: @@ -73,6 +75,8 @@ def ungettext(self, singular, plural, n): """gets the plural translation of the message by searching through all the domains (unicode version)""" for translation in self.translations: + if not hasattr(translation, "plural"): + continue plural = translation.plural tmsg = translation._catalog[(singular, plural(n))] # TODO: we shouldn't set _charset like this. make sure it is set properly