~nova-coresec/nova/bexar-translations

« back to all changes in this revision

Viewing changes to doc/ext/nova_todo.py

  • Committer: Ed Leafe
  • Date: 2011-01-19 02:00:28 UTC
  • mto: This revision was merged to the branch mainline in revision 607.
  • Revision ID: ed@leafe.com-20110119020028-3hthda2qccp2uawa
Completed first pass at converting all localized strings with multiple format substitutions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    # reading through docutils for the proper way to construct an empty list
27
27
    lists = []
28
28
    for i in xrange(5):
29
 
        lists.append(nodes.bullet_list("", nodes.Text('','')));
 
29
        lists.append(nodes.bullet_list("", nodes.Text('','')))
30
30
        lists[i].remove(lists[i][0]) 
31
31
        lists[i].set_class('todo_list')
32
32
 
42
42
            # Create a reference
43
43
            newnode = nodes.reference('', '')
44
44
 
45
 
            link = _('%s, line %d') % (filename, todo_info['lineno']);
 
45
            line_info = todo_info['lineno']
 
46
            link = _('%(filename)s, line %(line_info)d') % locals()
46
47
            innernode = nodes.emphasis(link, link)
47
48
            newnode['refdocname'] = todo_info['docname']
48
49