<div dir="ltr">thanks Thiago for nice tip of !! :)<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 18, 2013 at 5:58 PM, Thiago Macieira <span dir="ltr"><<a href="mailto:thiago.macieira@intel.com" target="_blank">thiago.macieira@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On quarta-feira, 18 de dezembro de 2013 16:58:22, Till Oliver Knoll wrote:<br>
> "ID based translation" is the bigest fuckup since the invention of i18n!<br>
><br>
> Oh just how I hated that concept when back in Java. Or any other framework<br>
> for that matter.<br>
><br>
> In Qt you have the /actual messages/ in the source code, so I never have to<br>
> wonder what e.g.<br>
><br>
>   dialog->showMessage(resourceBundle->msg('msg_12345', arg1, arg2, arg3); //<br>
> hold on! Does that message really take 3 args? WTF!<br>
<br>
</div>One intermediate solution we used to use in Nokia products was to write<br>
"Engineering English" in the source code. If you've ever used a prototype, you<br>
might have seen strings with "!!" in the beginning. For example, you'd write:<br>
<br>
        dialog->showMessage(tr("!! This is %1 and the date is the %2")<br>
                .arg("frobniz")<br>
                .arg(QLocale().toString(QDateTime::currentDateTime()));<br>
<br>
And then you have a translation team translating from "Engineering English" to<br>
"Proper English", including fixing grammar errors like using an article before<br>
the date.<br>
<br>
(It might be that the double bang was added by the translation system, not<br>
written in the text)<br>
<br>
This has the following benefits:<br>
 - developers don't have to have perfect command of English<br>
 - fixing the English text doesn't affect other languages<br>
 - immediately visible which strings didn't get translated yet, from the !!<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Thiago Macieira - thiago.macieira (AT) <a href="http://intel.com" target="_blank">intel.com</a><br>
  Software Architect - Intel Open Source Technology Center<br>
</font></span><br>_______________________________________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org">Interest@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/interest" target="_blank">http://lists.qt-project.org/mailman/listinfo/interest</a><br>
<br></blockquote></div><br></div>