public marks

PUBLIC MARKS from bacon with tag inserindo

22 July 2003 10:45

inserindo uma variável na tradução....

perguntei como se faz, e me responderam rapidamente no xoops.org: <div class="xoopscode"><pre><samp><code> <? define("_usaid", "the $username said:"); // remember, is just a hypothetical sample! ?></code></samp></pre> resposta: <div class="xoopscode"><pre><samp><code> the way estou do this: define ('_usaid', '%s said:'); then when using it: $text = sprintf('_usaid', $username); you can use any of printf format specifiers with this. %s, %d, %f, etc... it is essential for some translations where word order can change.</code></samp></pre>

bacon's TAGS related to tag inserindo

tradução +   uma +   variável +   xoops +