[Vtigercrm-developers] access custom module js strings from anywhere
Alan Lord
alanslists at gmail.com
Mon Jun 29 07:03:25 GMT 2020
On 29/06/2020 07:26, Alan Lord wrote:
> On 28/06/2020 22:31, Rubén A. Estrada Orozco wrote:
>> Hi everyone,
>>
>> I have a custom module and I need to translate it into two languages.
>> My module has an always visible widget (like quickcreate) that uses
>> the app.vtranslate JS function. It works ok whenever I'm located in
>> the listview or a detailview of my module. Whenever I'm on a
>> different module, translations break.
>>
>> How can I make my JS translation strings be available system-wide
>> without overwriting the main vtiger.php translation file?
>
> Currently you can't:
>
> https://code.vtiger.com/vtiger/vtigercrm/issues/1240
This recent MR might go some way to help, but of course if more than one
extension needs to extend the same language file, e.g. en_us/Vtiger.php
then it ain't going to work.
https://code.vtiger.com/vtiger/vtigercrm/merge_requests/585
Al
More information about the vtigercrm-developers
mailing list