i18n: using format strings with named arguments in wscalls.py
This commit is contained in:
parent
f582dd8405
commit
02545aeb8c
|
@ -117,7 +117,7 @@ class NamedWsCallPage(Directory):
|
|||
if self.wscall.request.get('qs_data'):
|
||||
r += htmltext('<li>%s<ul>') % _('Query string data:')
|
||||
for k, v in self.wscall.request.get('qs_data').items():
|
||||
r += htmltext('<li>%s</li>') % _('%s: %s') % (k, v)
|
||||
r += htmltext('<li>%s %s</li>') % (_('%s:') % k, v)
|
||||
r += htmltext('</ul></li>')
|
||||
r += htmltext('<li>%s %s</li>') % (
|
||||
_('Method:'),
|
||||
|
@ -125,7 +125,7 @@ class NamedWsCallPage(Directory):
|
|||
if self.wscall.request.get('post_data'):
|
||||
r += htmltext('<li>%s<ul>') % _('Post data:')
|
||||
for k, v in self.wscall.request.get('post_data').items():
|
||||
r += htmltext('<li>%s</li>') % _('%s: %s') % (k, v)
|
||||
r += htmltext('<li>%s %s</li>') % (_('%s:') % k, v)
|
||||
r += htmltext('</ul></li>')
|
||||
r += htmltext('</ul>')
|
||||
r += htmltext('</div>')
|
||||
|
|
Loading…
Reference in New Issue