[Vtigercrm-developers] i18n Translation issue of vtiger 6

Uma S uma.s at vtiger.com
Thu Mar 20 12:20:31 GMT 2014


Hi,

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.

*This is correct :*
'Scanner Name' => 'Vizsgáló neve'
'Server'             => 'Szerver neve'
'Protocol'          => 'Protokol'
'User Name'      => 'Felhasználónév'
'Password'        => 'Jelszó'
'SSL Type'        => 'SSL típusa'
'SSL Method'    => 'SSL módszer'
'Look for'           => 'Keres'

I have raised ticket for same in
trac<http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7984>.
we will look into this soon.


On Thu, Mar 20, 2014 at 4:37 PM, Holbok István <holbok at gmail.com> wrote:

>  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
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140320/aed768a0/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/aed768a0/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/aed768a0/attachment-0003.png>


More information about the vtigercrm-developers mailing list