Module Builder bloated language files #5337

Closed
opened 2026-02-20 16:59:48 -05:00 by deekerman · 1 comment
Owner

Originally created by @kale1d0code on GitHub (Sep 30, 2025).

Issue

Hi,

I've noticed that module builder is not able to export language files correctly.
the file <MODULE_ROOT>/SugarModules/language/application/en_us.lang.php

contains a copy of every single label in the system.
If you was expecting to only export the language file for the module you built you will be disappointed.

If you are importing your module into another system and wondering why labels for other modules, options for drop-down lists etc are changing. This is why.

Currently it is faster and less error prone to wipe the file and write out the contents manually.

Possible Fix

don't export every label

Steps to Reproduce the Issue

1. create a module in module builder
2. export that module to a package
3. check out <PACKAGE_ROOT>/SugarModules/language/application/en_us.lang.php
...

Context

No response

Version

7.14.6

What browser are you currently using?

Chrome

Browser Version

Version 136.0.7103.92 (Official Build) (64-bit)

Environment Information

PHP 8.1.30

Operating System and Version

Debian GNU/Linux 12 (bookworm)

Originally created by @kale1d0code on GitHub (Sep 30, 2025). ### Issue Hi, I've noticed that module builder is not able to export language files correctly. the file ```<MODULE_ROOT>/SugarModules/language/application/en_us.lang.php``` contains a copy of every single label in the system. If you was expecting to only export the language file for the module you built you will be disappointed. If you are importing your module into another system and wondering why labels for other modules, options for drop-down lists etc are changing. This is why. Currently it is faster and less error prone to wipe the file and write out the contents manually. ### Possible Fix don't export every label ### Steps to Reproduce the Issue ```bash 1. create a module in module builder 2. export that module to a package 3. check out <PACKAGE_ROOT>/SugarModules/language/application/en_us.lang.php ... ``` ### Context _No response_ ### Version 7.14.6 ### What browser are you currently using? Chrome ### Browser Version Version 136.0.7103.92 (Official Build) (64-bit) ### Environment Information PHP 8.1.30 ### Operating System and Version Debian GNU/Linux 12 (bookworm)
Author
Owner

@johnM2401 commented on GitHub (Oct 2, 2025):

Hey!

Thanks for getting in touch with this!

For reference's sake, I believe this may be a duplicate of: https://github.com/SuiteCRM/SuiteCRM/issues/10646
So i've marked it as such.

(However, if you feel othewise, please let me know!)

Thank you again!

@johnM2401 commented on GitHub (Oct 2, 2025): Hey! Thanks for getting in touch with this! For reference's sake, I believe this may be a duplicate of: https://github.com/SuiteCRM/SuiteCRM/issues/10646 So i've marked it as such. (However, if you feel othewise, please let me know!) Thank you again!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5337
No description provided.