/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/i18n.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
 
75
75
def disable_i18n():
76
76
    """Do not allow i18n to be enabled.  Useful for third party users
77
 
    of brzlib."""
 
77
    of breezy."""
78
78
    global _translations
79
79
    _translations = _gettext.NullTranslations()
80
80
 
179
179
 
180
180
def _get_current_locale():
181
181
    if not os.environ.get('LANGUAGE'):
182
 
        from brzlib import config
 
182
        from breezy import config
183
183
        lang = config.GlobalStack().get('language')
184
184
        if lang:
185
185
            os.environ['LANGUAGE'] = lang