~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/worlddata/helpers.py

  • Committer: Curtis Hovey
  • Date: 2011-12-23 23:24:28 UTC
  • mto: This revision was merged to the branch mainline in revision 14599.
  • Revision ID: curtis.hovey@canonical.com-20111223232428-2pv1ftduchr57ghw
Extracted language helpers to lp.services.worlddata.helpers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
__metaclass__ = type
7
7
__all__ = [
8
 
    'browserLanguages',
 
8
    'browser_languages',
9
9
    'is_english_variant',
10
10
    'preferred_or_request_languages',
11
11
    ]
20
20
    )
21
21
 
22
22
 
23
 
def browserLanguages(request):
 
23
def browser_languages(request):
24
24
    """Return a list of Language objects based on the browser preferences."""
25
25
    return IRequestPreferredLanguages(request).getPreferredLanguages()
26
26