How CRM create file in custom/modules/***/Ext/Languages/en_us.lang.ext.php

CRM automatically create that file.
That file makes me a problem. Each time when I make changes in Lables(LBL), because of that file CRM bring everything back.

I need to know where from CRM take data for that file, so I can change source of that data and it will fix my problem.

Hi,

Usually files that are auto-generated in

custom/modules/***/Ext/…

will be created from files in:

/custom/Extension/modules/***/Ext/…

For example, a file in:
/custom/Extension/modules/Accounts/Ext/Language/en_us.lang.php

Will auto-generate the file:
/custom/modules/Accounts/Ext/Language/en_us.lang.ext.php

So, if you want to make changes to a file in:
/custom/modules/***/Ext/Languages/en_us.lang.ext.php

You should do so in:
/custom/Extension/modules/***/Ext/Language/en_us.lang.php

1 Like

You can also have a look in the manual at the following pages:

support.sugarcrm.com/Documentation/Sugar...mework/Introduction/

support.sugarcrm.com/Documentation/Sugar...Extensions/Language/

support.sugarcrm.com/Documentation/Sugar…_Framework/Language/

developer.sugarcrm.com/2012/05/24/sugarcrm-labels-hierarchy/

2 Likes

Thanks for explanaition.

File /custom/Extension/modules/***/Ext/Language/…
Also autogenerated file. If I change that file, it will be changed back after next “Repair and Rebild”

I need to know file that is source for /custom/Extension/modules/***/Ext/Language/…

Have a look at the following hierarchy diagram taken from the SugarCRM Manual:

Link to manual page:
http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Application_Framework/Language/Labels_and_Lists/

For some reason I can no longer click on the links I posted in my previous message, so I am posting them again here:

http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Extension_Framework/Extensions/Language/

http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Application_Framework/Language/

http://developer.sugarcrm.com/2012/05/24/sugarcrm-labels-hierarchy/

1 Like

Thanks a lot for help. I significatly improved in that problem.

So I moved/deleted files from custom/Extension/modules/AOS_Products/Ext/Language
And push “Repair & Rebild”. That completly solved a problem.

After “Repair & Rebild” new filed had not been created automatically, so folder Extension/modules/AOS_Products/Ext/Language is empty.
Will that cause problems in future?

Hi,

It shouldn’t cause any major issues.

Off the top of my head, the worst I can think of would be having fields in your CRM with no label. (I.e, It will just show up in LBL_XXXXX format in CRM)
If that happens, you should just be able to create a label for it in either the CRM or Code.