<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Another tip.. If you are creating software as an OEM. 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Use %CUSTOMER_NAME%, and %PRODUCT_NAME%, and I have also used it for %COPYRIGHT% in the original C++.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">For instance: QString( “About: %PRODUCT_NAME%.  Copyright %COPYRIGHT% %CUSTOMER_NAME%” );<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></a></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> interest-bounces+scott.bloom=onshorecs.com@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs.com@qt-project.org]
<b>On Behalf Of </b>Harish Surana<br>
<b>Sent:</b> Thursday, December 19, 2013 6:13 PM<br>
<b>To:</b> Thiago Macieira<br>
<b>Cc:</b> Interests Qt<br>
<b>Subject:</b> Re: [Interest] Translation support totally broken<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">thanks Thiago for nice tip of !! :)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Dec 18, 2013 at 5:58 PM, Thiago Macieira <<a href="mailto:thiago.macieira@intel.com" target="_blank">thiago.macieira@intel.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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!<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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 style="color:#888888"><br>
<span class="hoenzb">--</span><br>
<span class="hoenzb">Thiago Macieira - thiago.macieira (AT) <a href="http://intel.com" target="_blank">
intel.com</a></span><br>
<span class="hoenzb">  Software Architect - Intel Open Source Technology Center</span><br>
</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><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>