~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: Jelmer Vernooij
  • Date: 2011-10-04 22:20:49 UTC
  • mto: This revision was merged to the branch mainline in revision 6190.
  • Revision ID: jelmer@samba.org-20111004222049-d9glniyleu0pppzd
Add a load_plugin_translations method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    errors,
31
31
    pyutils,
32
32
    )
 
33
from bzrlib.i18n import gettext
33
34
""")
34
35
 
35
36
 
310
311
            introduced_string = _format_version_tuple(self.introduced)
311
312
        else:
312
313
            introduced_string = 'unknown'
313
 
        strings.append('Introduced in: %s' % introduced_string)
 
314
        strings.append(gettext('Introduced in: %s') % introduced_string)
314
315
        if self.deprecated:
315
316
            deprecated_string = _format_version_tuple(self.deprecated)
316
 
            strings.append('Deprecated in: %s' % deprecated_string)
 
317
            strings.append(gettext('Deprecated in: %s') % deprecated_string)
317
318
        strings.append('')
318
319
        strings.extend(textwrap.wrap(self.__doc__,
319
320
            break_long_words=False))