[Openstack-i18n] use dict-based substitution instead of index-based?

Chris K nobodycam at gmail.com
Fri Dec 13 00:11:08 UTC 2013


Hello i18n team,

I came across a question today I was unable to find the answer for. The
question arose from a review I was looking over.

Should I18n translated strings should use dict-based substitution instead
of index-based?

LOG.debug(_('stdout is: "%s"') % blah)
vs.
LOG.debug(_('stdout is: "%(blah)s"') % {'blah': blah})

Thank you,
Chris Krelle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-i18n/attachments/20131212/b725abac/attachment.html>


More information about the Openstack-i18n mailing list