/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/export_pot.py

(gz) Include registry value switch help text in translation template (Martin
 Packman)

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
def _write_option(exporter, context, opt, note):
181
181
    if getattr(opt, 'hidden', False):
182
182
        return   
 
183
    optname = opt.name
183
184
    if getattr(opt, 'title', None):
184
185
        exporter.poentry_in_context(context, opt.title,
185
 
            "title of {name!r} {what}".format(name=opt.name, what=note))
186
 
    if getattr(opt, 'help', None):
187
 
        exporter.poentry_in_context(context, opt.help,
188
 
            "help of {name!r} {what}".format(name=opt.name, what=note))
 
186
            "title of {name!r} {what}".format(name=optname, what=note))
 
187
    for name, _, _, helptxt in opt.iter_switches():
 
188
        if name != optname:
 
189
            if opt.is_hidden(name):
 
190
                continue
 
191
            name = "=".join([optname, name])
 
192
        if helptxt:
 
193
            exporter.poentry_in_context(context, helptxt,
 
194
                "help of {name!r} {what}".format(name=name, what=note))
189
195
 
190
196
 
191
197
def _standard_options(exporter):