generated from MokoConsulting/Template-Joomla
Admin menu: use COM_..._SHORT short-name constant (one-word naming pass) #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the org-wide MokoSuite component naming/consistency pass.
Current: the top-level Administrator → Components menu item uses the full constant
COM_MOKOSUITESUPPORT(no short form).Required (match MokoSuiteHQ / MokoSuiteClient):
<administration><menu>toCOM_<ELEMENT>_SHORT.COM_<ELEMENT>_SHORT="Support"in the component's.sys.ini.Suggested short value: "Support".
PR opened to resolve this: #17 — #17
Approach: created
admin/language/en-GB/com_mokosuitesupport.sys.ini(definingCOM_MOKOSUITESUPPORT_SHORT="Support"plusCOM_MOKOSUITESUPPORTand_XML_DESCRIPTION), pointed<administration><menu>atCOM_MOKOSUITESUPPORT_SHORT, and wired the admin language into the manifest (shipped thelanguagefolder + added a<languages folder="admin/language">block). No prior sys.ini existed and none was wired, so this both defines and loads the constants.