12 Dec
2013
12 Dec
'13
7:11 p.m.
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