Part of lp.translations.browser.person View In Hierarchy
Known subclasses: lp.translations.browser.person.PersonTranslationReviewView
Method | __init__ | Undocumented |
Method | page_title | Undocumented |
Method | recent_activity | Recent translation activity by this person. |
Method | latest_activity | Single latest translation activity by this person. |
Method | translation_groups | Return translation groups a person is a member of. |
Method | translators | Return translators a person is a member of. |
Method | person_is_reviewer | Is this person in a translation group? |
Method | person_is_translator | Is this person active in translations? |
Method | person_includes_me | Is the current user (a member of) this person? |
Method | requires_preferred_languages | Does this person need to set preferred languages? |
Method | should_display_message | Should a certain TranslationMessage be displayed. |
Method | all_projects_and_packages_to_review | Top projects and packages for this person to review. |
Method | top_projects_and_packages_to_review | Suggest translations for this person to review. |
Method | num_projects_and_packages_to_review | How many translations do we suggest for reviewing? |
Method | top_projects_and_packages_to_translate | Suggest translations for this person to help complete. |
Method | translations_to_complete_table | Undocumented |
Method | translations_to_review_table | Undocumented |
Method | _review_targets | Query and aggregate the top targets for review. |
Method | _getTargetsForTranslation | Get translation targets for this person to translate. |
Method | _addToTargetsList | Add new_targets to existing_targets list. |
If the translation activity is associated with a project, we ensure that the project is active.
TranslationMessage
be displayed.
Return False if user is not logged in and message may contain sensitive data such as email addresses.
Otherwise, return True.
Query and aggregate the top targets for review. :return: a list of translation targets. Multiple `POFile`s may be aggregated together into a single target.
Results are ordered from most to fewest untranslated messages.
new_targets
to existing_targets
list.
This is for use in showing top-10 ists of translations a user should help review or complete.
Parameters | existing_targets | Translation targets that are already being listed. |
new_targets | Translation targets to add. Ones that were
already in existing_targets will not be added again. | |
max_items | Maximum number of targets from new_targets
to add. | |
max_overall | Maximum overall size of the resulting list.
What happens if existing_targets already exceeds this size
is none of your business. | |
Returns | A list of translation targets containing all of
existing_targets , followed by as many from new_targets
as there is room for. |