id - the message ID, or a (singular, plural) tuple for
pluralizable messages
string - the translated message string, or a
(singular, plural) tuple for pluralizable messages
locations - a sequence of (filenname, lineno) tuples
flags - a set or sequence of flags
auto_comments - a sequence of automatic comments for the message
user_comments - a sequence of user comments for the message
previous_id - the previous message ID, or a (singular, plural)
tuple for pluralizable messages
lineno - the line number on which the msgid line was found in the
PO file, if any
Overrides:
object.__init__
__repr__(self) (Representation operator)
repr(x)
Overrides:
object.__repr__
(inherited documentation)
check(self,
catalog=None)
Run various validation checks on the message. Some validations
are only performed if the catalog is provided. This method returns
a sequence of TranslationError objects.
Parameters:
catalog - A catalog instance that is passed to the checkers
Returns: iterator
See Also:Catalog.check for a way to perform checks for all messages
in a catalog.