~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/i18n.py

  • Committer: Vincent Ladeuil
  • Date: 2011-08-08 17:03:51 UTC
  • mto: This revision was merged to the branch mainline in revision 6058.
  • Revision ID: v.ladeuil+lp@free.fr-20110808170351-hmrf9layb5e1ve6n
MigrateĀ language.

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