<div dir="ltr">Hello i18n team,<div><br></div><div>I came across a question today I was unable to find the answer for. The question arose from a review I was looking over. </div><div><br></div><div>Should I18n translated strings should use dict-based substitution instead of index-based?<br>
</div><div><br></div><div><span class="" style="color:rgb(0,0,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">LOG</span><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">.</span><span class="" style="color:rgb(0,0,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">debug</span><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">(</span><span class="" style="color:rgb(0,0,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">_</span><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">(</span>'stdout is: "%s"'<span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">)</span><span class="" style="color:rgb(0,0,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre"> </span><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">%</span><span class="" style="color:rgb(0,0,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre"> blah</span><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">)</span><br>
</div><div><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">vs.</span></div><div><span class=""><span class="" style="color:rgb(0,0,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">LOG</span><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">.</span><span class="" style="color:rgb(0,0,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">debug</span><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">(</span><span class="" style="color:rgb(0,0,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">_</span><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">(</span>'stdout is: "%(blah)s"')<span class="" style="color:rgb(0,0,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre"> </span><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">%</span><span class="" style="color:rgb(0,0,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre"> {'blah': blah}</span><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">)</span><br>
</span></div><div><span class=""><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre"><br></span></span></div><div>
<span class=""><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">Thank you,</span></span></div><div><span class=""><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre">Chris Krelle</span></span></div>
<div><span class=""><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre"><br></span></span></div><div><span class=""><span class="" style="color:rgb(68,68,0);font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace;font-size:11px;white-space:pre"><br>
</span></span></div></div>