~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/browser/questiontarget.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-24 09:25:36 UTC
  • mfrom: (14593.2.17 apocalypta-0)
  • Revision ID: launchpad@pqm.canonical.com-20111224092536-rdgyq1kfsi3hunqr
[rs=sinzui][no-qa] Moved forgotten files to lp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
from zope.traversing.browser import absoluteURL
52
52
 
53
53
from canonical.launchpad import _
54
 
from canonical.launchpad.helpers import (
55
 
    browserLanguages,
 
54
from lp.services.worlddata.helpers import (
 
55
    browser_languages,
56
56
    is_english_variant,
57
57
    preferred_or_request_languages,
58
58
    )
804
804
                      mapping=team_mapping)
805
805
            response.addNotification(structured(msgid))
806
806
        else:
807
 
            if len(browserLanguages(self.request)) > 0:
808
 
                languages = browserLanguages(self.request)
 
807
            if len(browser_languages(self.request)) > 0:
 
808
                languages = browser_languages(self.request)
809
809
            else:
810
810
                languages = [english]
811
811
            for language in languages: