<div dir="ltr">Hi,<div><br></div><div>This is a right catch. Always the key in translation file should be field-label not field-name. field-name are not translated, only field-label gets translated according to language.</div>
<div><br></div><div><b><u>This is correct :</u></b></div><div><div>'Scanner Name' => 'Vizsgáló neve'</div><div>'Server' => 'Szerver neve' </div><div>'Protocol' => 'Protokol'</div>
<div>'User Name' => 'Felhasználónév'</div><div>'Password' => 'Jelszó'</div><div>'SSL Type' => 'SSL típusa'</div><div>'SSL Method' => 'SSL módszer'</div>
<div>'Look for' => 'Keres'</div></div><div><br></div><div>I have raised ticket for same in <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7984">trac</a>. we will look into this soon.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 20, 2014 at 4:37 PM, Holbok István <span dir="ltr"><<a href="mailto:holbok@gmail.com" target="_blank">holbok@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hi Vtiger team,<br>
<br>
I have found an issue with vtiger 6 translation system:<br>
<br>
There is a Smarty Template file for Mail Converter module:<br>
....\layouts\vlayout\modules\Settings\MailConverter\EditView.tpl<br>
And in this file there is <b>Line 46</b>:
{vtranslate($FIELD_MODEL->get('label'),$QUALIFIED_MODULE)}<br>
<br>
This line should be translate the field labels (or filed names) of
the _vtiger_mailscanner SQL table but it does not do it.<br>
<br>
For example in the Hungarian Language file
(...\languages\hu_hu\Settings\MailConverter.php ) exist all
necessary translations in the $languageStrings = array() <br>
'scannername' => 'Vizsgáló neve' , <br>
'server' => 'Szerver neve' ,
<br>
'protocol' => 'Protokol'
, <br>
'username' => 'Felhasználónév' , <br>
'password' => 'Jelszó' ,<br>
'ssltype' => 'SSL típusa' ,<br>
'sslmethod' => 'SSL módszer' ,<br>
'connecturl' => 'Kapcsolati Url' , <br>
'searchfor' => 'Keres' ,
<br>
'markas' => 'Átvizsgálás után' , <br>
<br>
But the translation does not occur. The red rectangles show the lack
of translation.<br>
<br>
<img alt="" src="cid:part1.02010509.07020605@gmail.com" height="535" width="585"><br>
<br>
If I will put into the language file the correct English labels,
e.g. 'Scanner Name' and / or 'Server' the translation will proceed.<br>
<br>
'scannername' => 'Vizsgáló
neve' , //-> ineffective key - does not work<br>
'server' => 'Szerver
neve' , // -> ineffective key - does not work<br>
'Scanner Name' => 'Vizsgáló
neve' , // works with English label<br>
'Server' =>
'Szerver' , // works with English label<br>
<br>
<img alt="" src="cid:part2.03090903.03060302@gmail.com" height="516" width="562"><br>
<br>
It looks like the $FIELD_MODEL->get('label') method does not
work if the label is not label but a field name in the SQL table.
But, the English key -> value pair was found for these strings.<br>
<br>
How to handle it?<br>
<br>
I think that is not the best method to put unnecessary keys into the
international language files.<span class="HOEnZb"><font color="#888888"><br>
<br>
<div>-- <br>
Kindest regards:<br>
<br>
<b>István</b> <b>Holbok</b><br>
<br>
+3670-342-0900<br>
<b>e-mail:</b> <a href="mailto:holbok@gmail.com" target="_blank">holbok@gmail.com</a><br>
<b>SkyPe:</b> holboki<br>
<br>
</div>
</font></span></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div>
</div>