~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-08-09 09:04:06 UTC
  • mfrom: (6056.2.3 migrate-config-options)
  • Revision ID: pqm@pqm.ubuntu.com-20110809090406-sjx052uyb3t9c6o0
(vila) Migrate some config options to the stack-based API. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
def _get_current_locale():
135
135
    if not os.environ.get('LANGUAGE'):
136
136
        from bzrlib import config
137
 
        lang = config.GlobalConfig().get_user_option('language')
 
137
        lang = config.GlobalStack().get('language')
138
138
        if lang:
139
139
            os.environ['LANGUAGE'] = lang
140
140
            return lang