13 Dec
2013
13 Dec
'13
4:11 a.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