~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/i18n.py

  • Committer: Jonathan Riddell
  • Date: 2011-08-31 10:32:24 UTC
  • mto: This revision was merged to the branch mainline in revision 6131.
  • Revision ID: jriddell@canonical.com-20110831103224-pdvzvg6ktbbg5fwc
assume null state for _translations is _gettext.NullTranslations()

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
 
68
68
 
69
69
def installed():
70
 
    return _translations is not None
 
70
    return isinstance(_translations, _gettext.NullTranslations())
71
71
 
72
72
 
73
73
def install(lang=None):
87
87
 
88
88
def uninstall():
89
89
    global _translations
90
 
    _translations = None
 
90
    _translations = _gettext.NullTranslations()
91
91
 
92
92
 
93
93
def _get_locale_dir():