~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export_pot.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-15 11:31:47 UTC
  • mto: This revision was merged to the branch mainline in revision 6143.
  • Revision ID: jriddell@canonical.com-20110915113147-bgleett47i4jjxya
add gettext() to uses of trace.note()

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
        if getattr(opt, 'title', None):
120
120
            lineno = offsets.get(opt.title, 9999)
121
121
            if lineno == 9999:
122
 
                note("%r is not found in bzrlib/option.py" % opt.title)
 
122
                note(gettext("%r is not found in bzrlib/option.py") % opt.title)
123
123
            _poentry(outf, path, lineno, opt.title,
124
124
                     'title of %r option' % name)
125
125
        if getattr(opt, 'help', None):
126
126
            lineno = offsets.get(opt.help, 9999)
127
127
            if lineno == 9999:
128
 
                note("%r is not found in bzrlib/option.py" % opt.help)
 
128
                note(gettext("%r is not found in bzrlib/option.py") % opt.help)
129
129
            _poentry(outf, path, lineno, opt.help,
130
130
                     'help of %r option' % name)
131
131
 
181
181
        command = _mod_commands.get_cmd_object(cmd_name, False)
182
182
        if command.hidden:
183
183
            continue
184
 
        note("Exporting messages from builtin command: %s", cmd_name)
 
184
        note(gettext("Exporting messages from builtin command: %s"), cmd_name)
185
185
        _write_command_help(outf, command)
186
186
 
187
187
    plugin_path = plugin.get_core_plugin_path()
197
197
            # skip non-core plugins
198
198
            # TODO: Support extracting from third party plugins.
199
199
            continue
200
 
        note("Exporting messages from plugin command: %s in %s",
201
 
             cmd_name, command.plugin_name())
 
200
        note(gettext("Exporting messages from plugin command: {0} in {1}").format(
 
201
             cmd_name, command.plugin_name() ))
202
202
        _write_command_help(outf, command)
203
203
 
204
204
 
222
222
            continue
223
223
        fmt = getattr(klass, "_fmt", None)
224
224
        if fmt:
225
 
            note("Exporting message from error: %s", name)
 
225
            note(gettext("Exporting message from error: %s"), name)
226
226
            _poentry(outf, 'bzrlib/errors.py',
227
227
                     offsets.get(fmt, 9999), fmt)
228
228