Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Media Library module is not properly capitalized. It's named as "Media library" in core, and should be changed to "Media Library".
Module naming convention explained in https://www.drupal.org/node/604342#interface-text-capitalization
Comment | File | Size | Author |
---|---|---|---|
#8 | Screen Shot 2019-06-02 at 7.44.59 PM.png | 54.41 KB | alonaoneill |
#7 | media_library_name-3058943-6.patch | 5.13 KB | Mohammed J. Razem |
#5 | media_library_name-3058943-2.patch | 5.13 KB | Mohammed J. Razem |
#2 | media_library_name-3058943-1.patch | 484 bytes | Mohammed J. Razem |
Comments
Comment #2
Mohammed J. RazemPatch attached.
Comment #3
Mohammed J. RazemComment #5
Mohammed J. RazemUpdated patch that changes the capitalization wherever Media Library is in context of a proper name in English.
Comment #7
Mohammed J. RazemAh! One more time. I missed the documentation link name fix.
Comment #8
alonaoneill CreditAttribution: alonaoneill at Hook 42 commentedCode looks good, the name of the module is now capitalized on the Extend page. Screenshot provided."
Marking as RTBC
Thank you for working on the module!
Comment #9
alexpottI checked all the occurrences in core and can't find any instances where Media Library is referenced as a module that are not updated so we're good to go here. We are likely to regress here I guess but /shrug I can't see what to do about that.
Committed and pushed 1094d0c8d1 to 8.8.x and a807fa863a to 8.7.x. Thanks!
Comment #12
maximpodorov CreditAttribution: maximpodorov commentedExcuse me, is there any requirement to capitalize the names of modules themselves (not references to modules)?
Comment #13
Mohammed J. Razem@maximpodorov yes.
Comment #14
maximpodorov CreditAttribution: maximpodorov commentedNo. This guide says about the situation of referencing existing modules, not about assigning names to modules.
Comment #15
maximpodorov CreditAttribution: maximpodorov commentedSo can we consider all such requests to change module names as incorrect ones?
Comment #16
alexpott@maximpodorov the standard in core for module names is title case. See core/modules/block_content/block_content.info.yml, core/modules/automated_cron/automated_cron.info.yml, core/modules/block_place/block_place.info.yml, core/modules/config_translation/config_translation.info.yml, core/modules/content_moderation/content_moderation.info.yml, core/MAINTAINERS.txt etc...
Comment #17
maximpodorov CreditAttribution: maximpodorov commentedOK. So we can consider all such requests to change CONTRIB module names as incorrect ones.
Comment #18
Mohammed J. Razem@maximpodorov - Go to https://www.drupal.org/docs/develop/documenting-your-project/help-text-s...
It describes the convention there for both core and contrib modules.
Comment #19
maximpodorov CreditAttribution: maximpodorov commentedExactly. But "When referring to the name of a module". It's not about the module name itself.
Comment #20
Mohammed J. RazemI reset my case.