<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi everyone,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Today, I have finally solved the problem we've been having for many months regarding translation of strings with variables in our Smarty templates.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>All we needed is to know the awkward Smarty syntax. So here is how to use it, if you are playing with the templates.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>ex.</DIV><DIV><FONT class="Apple-style-span" color="#800056" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">{</SPAN></FONT><FONT class="Apple-style-span" color="#800080" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">"The %s network currently has %d valid users."</SPAN></FONT><FONT class="Apple-style-span" color="#800056" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">|_|sprintf:$networkName:$networkNumValidUsers}</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#000000"><BR class="khtml-block-placeholder"></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#000000">It is basically piping the sprintf-formatted string to Gettext for i18n, then filtering it through the sprintf for spot replacements. I updated the scripts to match the new regexp and fully updated the French translations, this will be committed along with other stuff before I leave for Boston next week.</FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#000000"><BR class="khtml-block-placeholder"></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#000000">See ya !</FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#000000">François</FONT></FONT></DIV><DIV><FONT class="Apple-style-span" color="#800056" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" color="#800056" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV></BODY></HTML>