<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body smarttemplateinserted="true" 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.<br>
<br>
<div class="moz-signature">-- <br>
Kindest regards:<br>
<br>
<b>István</b> <b>Holbok</b><br>
<br>
+3670-342-0900<br>
<b>e-mail:</b> <a class="moz-txt-link-abbreviated" href="mailto:holbok@gmail.com">holbok@gmail.com</a><br>
<b>SkyPe:</b> holboki<br>
<br>
</div>
</body>
</html>