[Vtigercrm-developers] Vtiger.php language pack / app.translate

Conrado Maggi comaggi at gmail.com
Thu Mar 19 14:34:10 GMT 2015


Hello Uma,

Thanks.. I mean the following scenario:  if I register a header script to
run a function in accounts modules or add a link n the sidebar, if the
string to be translated is not in present Accounts.php, them won't be
translated.

You have to manually edit either Vtiger.php or Accounts.php language file
for this to work.





On Thu, Mar 19, 2015 at 1:16 PM, Uma S <uma.s at vtiger.com> wrote:

> Hi,
>
> In js filed you should make use of app.vtranslate() api for translations.
> Please do refer layouts/vlayout/modules/Acconts/resources/Detail.js.
>
> On Thu, Mar 19, 2015 at 4:16 PM, Conrado Maggi <comaggi at gmail.com> wrote:
>
>> Hi,
>>
>> When working with javascript files to add features to another module the
>> translations won't work.
>>
>> The app.translated function only load the language files from the module
>> you are viewing so all the messages, labels, etc look like
>> LBL_YOUR_MODULE_LABEL_TEXT
>>
>> Have anyone found a work around for this? Maybe loading the file using
>> ajax and caching the translation on client side?
>>
>> Thanks
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
>
> --
> With
> Best Regards
> Uma.S
> Vtiger Team
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150319/986d1ea0/attachment-0001.html>


More information about the vtigercrm-developers mailing list