l.t.i.d.IDistroSeriesLanguage(IRosettaStats) : interface documentation

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

A placeholder for the statistics in the translation of a distroseries into a language, for example, Ubuntu Hoary into French. This exists to cache stats, and be a useful object for traversal in Rosetta.
Attribute id A unique ID
Attribute language The language.
Attribute distroseries The distro series which has been translated.
Attribute dateupdated The date these statistics were last updated.
Attribute title The title.
Attribute pofiles The set of pofiles in this distroseries for this language. This includes only the real pofiles where translations exist.
Attribute contributor_count The number of contributors in total for this language in the distribution.
Method updateStatistics Update all the Rosetta stats for this distro series language.
Method getPOFilesFor Return POFile`s for each of `potemplates, in the same order.

Inherited from IRosettaStats:

Method testStatistics Ensure that the statistics here are self-consistent.
Method messageCount Return the number of current IPOMessageSets inside this object.
Method currentCount Return the number of current upstream translations.
Method updatesCount Return the number of msgsets newer in Rosetta.
Method newCount Return the number of newly translated messages in Rosetta.
Method rosettaCount Return the number of msgsets translated only in rosetta.
Method unreviewedCount Return the number of msgsets with unreviewed suggestions.
Method translatedCount Return the total number of msgsets that are translated in Rosetta.
Method untranslatedCount Return the number of msgsets that are untranslated.
Method updatesPercentage Return the percentage of updated msgsets inside this object.
Method currentPercentage Return the percentage of current msgsets inside this object.
Method rosettaPercentage Return the percentage of msgsets translated with Rosetta inside
Method translatedPercentage Return the percentage of msgsets translated for this object.
Method untranslatedPercentage Return the percentage of msgsets untranslated for this object.
Method newPercentage Return the percentage of translations for this object that are
id =
A unique ID
language =
The language.
distroseries =
The distro series which has been translated.
dateupdated =
The date these statistics were last updated.
title =
The title.
pofiles =
The set of pofiles in this distroseries for this language. This includes only the real pofiles where translations exist.
contributor_count =
The number of contributors in total for this language in the distribution.
def updateStatistics(ztm):
Update all the Rosetta stats for this distro series language.
def getPOFilesFor(potemplates):
Return POFile`s for each of `potemplates, in the same order.

For any POTemplate that does not have a translation to the required language, a DummyPOFile is provided.

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