~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugin.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-20 11:01:37 UTC
  • mto: This revision was merged to the branch mainline in revision 6153.
  • Revision ID: jriddell@canonical.com-20110920110137-mrps089ulocx1skd
gettext() in plugin.py and hooks.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
    errors,
49
49
    trace,
50
50
    )
 
51
from bzrlib.i18n import gettext
51
52
from bzrlib import plugins as _mod_plugins
52
53
""")
53
54
 
137
138
        try:
138
139
            name, path = spec.split('@')
139
140
        except ValueError:
140
 
            raise errors.BzrCommandError(
141
 
                '"%s" is not a valid <plugin_name>@<plugin_path> description '
 
141
            raise errors.BzrCommandError(gettext(
 
142
                '"%s" is not a valid <plugin_name>@<plugin_path> description ')
142
143
                % spec)
143
144
        specs.append((name, path))
144
145
    return specs