/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 bzrlib/i18n.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-27 13:24:01 UTC
  • mto: This revision was merged to the branch mainline in revision 6174.
  • Revision ID: jriddell@canonical.com-20110927132401-sssiz07gqnpt1mt7
two empty lines between top level items

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import os
27
27
import sys
28
28
 
 
29
 
29
30
_translations = None
30
31
 
31
32
 
88
89
        return
89
90
    _translations = install_translations(lang)
90
91
 
 
92
 
91
93
def install_translations(lang=None, domain='bzr', locale_base=None):
92
94
    """Create a gettext translation object.
93
95
    
110
112
            fallback=True)
111
113
    return translation
112
114
 
 
115
 
113
116
def add_fallback(fallback):
114
117
    """
115
118
    Add a fallback translations object.  Typically used by plugins.
119
122
    install()
120
123
    _translations.add_fallback(fallback)
121
124
 
 
125
 
122
126
def uninstall():
123
127
    """Disables gettext translations."""
124
128
    global _translations