~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/cmd_version_info.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-16 10:41:45 UTC
  • mto: This revision was merged to the branch mainline in revision 6144.
  • Revision ID: jriddell@canonical.com-20110916104145-eu7v8gkip5hi0ur1
more error gettext()ing

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    version_info_formats,
26
26
    workingtree,
27
27
    )
 
28
from bzrlib.i18n import gettext
28
29
""")
29
30
 
30
31
from bzrlib.commands import Command
41
42
        return version_info_formats.get_builder(format)
42
43
    except KeyError:
43
44
        formats = version_info_formats.get_builder_formats()
44
 
        raise errors.BzrCommandError('No known version info format %s.'
45
 
                                     ' Supported types are: %s'
46
 
                                     % (format, formats))
 
45
        raise errors.BzrCommandError(gettext('No known version info format {0}.'
 
46
                                     ' Supported types are: {1}').format(
 
47
                                     format, formats))
47
48
 
48
49
 
49
50
class cmd_version_info(Command):