~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/i18n.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-07-15 01:05:56 UTC
  • mfrom: (6025.1.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20110715010556-ed5ksz52tkean7oa
(jelmer) Fix i18n installation when no language environment variables are
 set. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
    global _translations
75
75
    if lang is None:
76
76
        lang = _get_current_locale()
 
77
    if lang is not None:
 
78
        languages = lang.split(':')
 
79
    else:
 
80
        languages = None
77
81
    _translations = _gettext.translation(
78
82
            'bzr',
79
83
            localedir=_get_locale_dir(),
80
 
            languages=lang.split(':'),
 
84
            languages=languages,
81
85
            fallback=True)
82
86
 
83
87