Part of lp.translations.browser
| Function | revert_unselected_translations | Revert translations that the user entered but did not select. |
| Function | contains_translations | Does translations contain any nonempty translations? |
| Class | POTMsgSetBatchNavigator | No class docstring; 2/2 methods documented |
| Class | CustomDropdownWidget | No class docstring; 1/1 methods documented |
| Class | CurrentTranslationMessageMenu | Undocumented |
| Class | CurrentTranslationMessageIndexView | A view to forward to the translation form. |
| Class | BaseTranslationView | Base class that implements a framework for modifying translations. |
| Class | CurrentTranslationMessagePageView | A view for the page that renders a single translation. |
| Class | CurrentTranslationMessageView | Holds all data needed to show an ITranslationMessage. |
| Class | CurrentTranslationMessageZoomedView | A view that displays a TranslationMessage, but zoomed in. |
| Class | TranslationMessageSuggestions | See ITranslationMessageSuggestions. |
| Class | Submission | A submission generated from a TranslationMessage |
| Function | convert_translationmessage_to_submission | Turn a TranslationMessage to an object used for rendering a submission. |
| Function | _getSuggestionFromFormId | Return the suggestion associated with the given form element ID. |
| Parameters | translations | a dict mapping plural forms to their respective translation strings. |
| current_message | the current TranslationMessage. Its
translations are substituted for corresponding ones that the
user entered without selecting their radio buttons. | |
| plural_indices_to_store | a sequence of plural form numbers that the user did select new translations for. | |
| Returns | a dict similar to translations, but with any translations
that are not in plural_indices_to_store reset to what they
were in current_message (if any). | |
translations contain any nonempty translations?| Parameters | translations | a dict mapping plural forms to their respective translation strings. |
The ID is in the format generated by POSubmission.makeHTMLID.
| Parameters | message | A TranslationMessage. |
| plural_form | A plural form to prepare a submission for. | |
| pofile | A containing PO file where suggestion is being rendered. | |
| legal_warning_needed | Whether a warning check is needed. | |
| is_empty | Is the submission empty or not. |