l.a.b.q.QuestionLanguageVocabularyFactory : class documentation

Part of lp.answers.browser.question View In Hierarchy

Factory for a vocabulary containing a subset of the possible languages.

The vocabulary will contain only the languages "interesting" for the user. That's English plus the users preferred languages. These will be guessed from the request when the preferred languages weren't configured.

It also always include the question's current language and excludes all English variants.

Method __init__ Create a QuestionLanguageVocabularyFactory.
Method __call__ Undocumented
def __init__(self, view):
Create a QuestionLanguageVocabularyFactory.

:param view: The view that provides the request used to determine the
user languages. The view contains the Product widget selected by the
user in the case where a question is asked in the context of a
ProjectGroup.
def __call__(self, context):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.