0001-misc-use-dict-replacement-for-translated-strings-wit.patch
wcs/backoffice/submission.py | ||
---|---|---|
208 | 208 |
label = '' |
209 | 209 |
if formdata.submission_channel: |
210 | 210 |
label = '%s ' % formdata.get_submission_channel_label() |
211 |
label += _('#%s, %s') % (formdata.id,
|
|
212 |
misc.localstrftime(formdata.receipt_time))
|
|
211 |
label += _('#%(id)s, %(time)ss') % {'id': formdata.id,
|
|
212 |
'time': misc.localstrftime(formdata.receipt_time)}
|
|
213 | 213 |
r += htmltext('<a href="%s/%s">%s</a>') % ( |
214 | 214 |
formdef.url_name, formdata.id, label) |
215 | 215 |
r += htmltext('</li>') |
wcs/forms/common.py | ||
---|---|---|
557 | 557 |
r += htmltext(' <span class="validation-status">%s</span>') % _('not validated') |
558 | 558 |
r += htmltext('<div class="file-validation">') |
559 | 559 |
if status: |
560 |
r += htmltext('<p class="validation-status">%s</p>') % _('%s validated by %s on %s') % (
|
|
561 |
status['label'], status['creator'], status['created'])
|
|
560 |
r += htmltext('<p class="validation-status">%s</p>') % _( |
|
561 |
'%(label)s validated by %(creator)s on %(created)s') % status
|
|
562 | 562 |
r += htmltext('<ul>') |
563 | 563 |
for meta in status['metadata']: |
564 | 564 |
r += htmltext(_('<li>%(label)s: %(value)s</li>')) % { |
565 |
- |