l.t.b.p.POTemplateView(LaunchpadView, TranslationsMixin, TranslationSharingDetailsMixin) : class documentation

Part of lp.translations.browser.potemplate View In Hierarchy

Known subclasses: lp.translations.browser.potemplate.POTemplateViewPreferred

No class docstring
Method initialize Get the requested languages and submit the form.
Method requestPoFiles Yield a POFile or DummyPOFile for each of the languages in the
Method num_messages Undocumented
Method pofiles Iterate languages shown when viewing this PO template.
Method group_parent Return a parent object implementing ITranslationPolicy.
Method has_translation_documentation Are there translation instructions for this project.
Method related_templates_by_source Undocumented
Method more_templates_by_source_link Undocumented
Method has_pofiles Undocumented
Method is_upstream_template Undocumented
Method is_sharing Whether this object is sharing translations or not.
Method sharing_template Undocumented
Method getTranslationSourcePackage See TranslationSharingDetailsMixin.
Method _sortLanguages Undocumented
Method _getPOFileOrDummy Undocumented

Inherited from TranslationsMixin:

Method translatable_languages Return a set of the Person's translatable languages.
Method answers_url Undocumented

Inherited from TranslationSharingDetailsMixin:

Method sharing_details Construct the link to the sharing details page.
def initialize(self):
Get the requested languages and submit the form.
def requestPoFiles(self):
Yield a POFile or DummyPOFile for each of the languages in the request, which includes country languages from the request IP, browser preferences, and/or personal Launchpad language prefs.
def num_messages(self):
Undocumented
def pofiles(self, preferred_only=False):
Iterate languages shown when viewing this PO template.

Yields a POFileView object for each language this template has been translated into, and for each of the user's languages. Where the template has no POFile for that language, we use a DummyPOFile.

@property
def group_parent(self):
Return a parent object implementing ITranslationPolicy.
@property
def has_translation_documentation(self):
Are there translation instructions for this project.
@cachedproperty
def related_templates_by_source(self):
Undocumented
@property
def more_templates_by_source_link(self):
Undocumented
@property
def has_pofiles(self):
Undocumented
def _sortLanguages(self, languages):
Undocumented
def _getPOFileOrDummy(self, language):
Undocumented
@property
def is_upstream_template(self):
Undocumented
def is_sharing(self):
Whether this object is sharing translations or not.
@property
def sharing_template(self):
Undocumented
def getTranslationSourcePackage(self):
See TranslationSharingDetailsMixin.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.