l.t.b.p.POFileTranslateView(BaseTranslationView, POFileMetadataViewMixin) : class documentation

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

The View class for a POFile or a DummyPOFile.

This view is based on BaseTranslationView and implements the API defined by that class.

DummyPOFile`s are presented where there is no `POFile in the database but the user may want to translate. See how POTemplate traversal is done for details about how we decide between a POFile or a DummyPOFile.

Method initialize Undocumented
Method completeness Undocumented
Method autofocus_html_id Undocumented
Method translations_order Undocumented
Method is_upstream_pofile Undocumented
Method is_sharing Undocumented
Method sharing_pofile Undocumented
Method _buildBatchNavigator See BaseTranslationView._buildBatchNavigator.
Method _initializeTranslationMessageViews See BaseTranslationView._initializeTranslationMessageViews.
Method _buildTranslationMessageViews Build translation message views for all potmsgsets given.
Method _submitTranslations See BaseTranslationView._submitTranslations.
Method _observeTranslationUpdate see BaseTranslationView.
Method _buildRedirectParams Construct parameters for redirection.
Method _initializeShowOption Undocumented
Method _handleShowAll Get `POTMsgSet`s when filtering for "all" (but possibly searching).
Method _getSelectedPOTMsgSets Return a list of the POTMsgSets that will be rendered.
Method _messages_html_id Undocumented

Inherited from BaseTranslationView:

Method label The label will be used as the main page heading.
Method share_with_other_side Should these translations be shared with the other side?
Method user_is_official_translator Determine whether the current user is an official translator.
Method form_is_writeable Whether the form should accept write operations.
Method _extractLockTimestamp Extract the lock timestamp from the request.
Method _checkSubmitConditions Verify that this submission is possible and valid.
Method _receiveTranslations Process and store submitted translations for potmsgset.
Method _storeTranslations Store the translation submitted for a POTMsgSet.
Method _approveTranslation Approve message.
Method _areSuggestionsEmpty Return true if all suggestions are empty strings or None.
Method _prepareView Collect data and build a TranslationMessageView for display.
Method _initializeAltLanguage Initialize the alternative language widget and check form data.
Method _extractFormPostedTranslations Look for translations for this POTMsgSet in the form submitted.
Method _redirect Redirect to the given url adding the selected filtering rules.
Method _redirectToNextPage After a successful submission, redirect to the next batch page.

Inherited from POFileMetadataViewMixin:

Method translation_group Is there a translation group for this translation?
Method translator_entry The translator entry or None if none is assigned.
Method translator Who is assigned for translations to this language?
Method user_is_new_translator Is this user someone who has done no translation work yet?
Method translation_group_guide URL to translation group's translation guide, if any.
Method translation_team_guide URL to translation team's translation guide, if any.
Method has_any_documentation Return whether there is any documentation for this POFile.
Method introduction_link Link to introductory documentation, if appropriate.
Method guide_links Links to translation group/team guidelines, if available.
Method documentation_link_bubble Reference to documentation, if appropriate.
def initialize(self):
Undocumented
def _buildBatchNavigator(self):
See BaseTranslationView._buildBatchNavigator.
def _initializeTranslationMessageViews(self):
See BaseTranslationView._initializeTranslationMessageViews.
def _buildTranslationMessageViews(self, for_potmsgsets):
Build translation message views for all potmsgsets given.
def _submitTranslations(self):
See BaseTranslationView._submitTranslations.
def _observeTranslationUpdate(self, potmsgset):
see BaseTranslationView.

Update the start_offset when the filtered batch has mutated.

def _buildRedirectParams(self):
Construct parameters for redirection.

Redefine this method if you have additional parameters to preserve.

def _initializeShowOption(self):
Undocumented
def _handleShowAll(self):
Get `POTMsgSet`s when filtering for "all" (but possibly searching).

Normally returns all `POTMsgSet`s for this `POFile`, but also handles
search requests which act as a separate form of filtering.
def _getSelectedPOTMsgSets(self):
Return a list of the POTMsgSets that will be rendered.
@property
def completeness(self):
Undocumented
def _messages_html_id(self):
Undocumented
@property
def autofocus_html_id(self):
Undocumented
@property
def translations_order(self):
Undocumented
@property
def is_upstream_pofile(self):
Undocumented
def is_sharing(self):
Undocumented
@property
def sharing_pofile(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.