[Vtigercrm-developers] i18n Translation issue of vtiger 6
Holbok István
holbok at gmail.com
Thu Mar 20 11:07:13 GMT 2014
Hi Vtiger team,
I have found an issue with vtiger 6 translation system:
There is a Smarty Template file for Mail Converter module:
....\layouts\vlayout\modules\Settings\MailConverter\EditView.tpl
And in this file there is *Line 46*:
{vtranslate($FIELD_MODEL->get('label'),$QUALIFIED_MODULE)}
This line should be translate the field labels (or filed names) of the
_vtiger_mailscanner SQL table but it does not do it.
For example in the Hungarian Language file
(...\languages\hu_hu\Settings\MailConverter.php ) exist all necessary
translations in the $languageStrings = array()
'scannername' => 'Vizsgáló neve' ,
'server' => 'Szerver neve' ,
'protocol' => 'Protokol' ,
'username' => 'Felhasználónév' ,
'password' => 'Jelszó' ,
'ssltype' => 'SSL típusa' ,
'sslmethod' => 'SSL módszer' ,
'connecturl' => 'Kapcsolati Url' ,
'searchfor' => 'Keres' ,
'markas' => 'Átvizsgálás után' ,
But the translation does not occur. The red rectangles show the lack of
translation.
If I will put into the language file the correct English labels, e.g.
'Scanner Name' and / or 'Server' the translation will proceed.
'scannername' => 'Vizsgáló neve' ,
//-> ineffective key - does not work
'server' => 'Szerver
neve' , // -> ineffective key - does not work
'Scanner Name' => 'Vizsgáló neve' ,
// works with English label
'Server' =>
'Szerver' , // works with English label
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.
How to handle it?
I think that is not the best method to put unnecessary keys into the
international language files.
--
Kindest regards:
*István* *Holbok*
+3670-342-0900
*e-mail:* holbok at gmail.com
*SkyPe:* holboki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140320/bfe7f3ca/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vttrans-01.png
Type: image/png
Size: 28136 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140320/bfe7f3ca/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vttrans-02.png
Type: image/png
Size: 27703 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140320/bfe7f3ca/attachment-0003.png>
More information about the vtigercrm-developers
mailing list