~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Patch Queue Manager
  • Date: 2011-09-27 15:45:28 UTC
  • mfrom: (6162.4.10 i18n-plugins)
  • Revision ID: pqm@pqm.ubuntu.com-20110927154528-2mxat4qopuupi9kq
(jr) Changes to i18n.py to help support plugins with translations (Jonathan
 Riddell)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6450
6450
    __doc__ = """Export command helps and error messages in po format."""
6451
6451
 
6452
6452
    hidden = True
 
6453
    takes_options = [Option('plugin', 
 
6454
                            help='Export help text from named command '\
 
6455
                                 '(defaults to all built in commands).',
 
6456
                            type=str)]
6453
6457
 
6454
 
    def run(self):
 
6458
    def run(self, plugin=None):
6455
6459
        from bzrlib.export_pot import export_pot
6456
 
        export_pot(self.outf)
 
6460
        export_pot(self.outf, plugin)
6457
6461
 
6458
6462
 
6459
6463
def _register_lazy_builtins():