l.t.i.s.ITranslationSideTraits(Interface) : interface documentation

Part of lp.translations.interfaces.side View In Hierarchy

Traits describing a "side": upstream or Ubuntu.

Encapsulates primitives that depend on translation side: finding the message that is current on the given side, checking the flag that says whether a message is current on this side, setting or clearing the flag, and providing the same capabilities for the other side.

For an introduction to the Traits pattern, see http://www.cantrip.org/traits.html

Attribute side This TranslationSide
TextLine flag_name Undocumented
TextLine displayname Undocumented
Method getCurrentMessage Find the current message on this side, if any.
Method getFlag Retrieve a message's "current" flag for this side.
Method setFlag Set a message's "current" flag for this side.
side =
This TranslationSide
flag_name =
Undocumented
displayname =
Undocumented
def getCurrentMessage(potemplate, potmsgset, language):
Find the current message on this side, if any.
def getFlag(translationmessage):
Retrieve a message's "current" flag for this side.
def setFlag(translationmessage, value):
Set a message's "current" flag for this side.

This is a dumb operation. It does not worry about conflicting other messages.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.