Admin menu: use COM_..._SHORT short-name constant + fix MOKOJOOM stem #75

Closed
opened 2026-07-06 03:02:24 +00:00 by jmiller · 2 comments
Owner

Part of the org-wide MokoSuite component naming/consistency pass.

Current: the top-level Administrator → Components menu item uses the full constant COM_MOKOJOOMSTORELOCATOR (no short form), and the constant stem is MOKOJOOM… rather than MOKOSUITE… / the actual element name.

Required (match MokoSuiteHQ / MokoSuiteClient):

  1. Set the manifest's top-level <administration><menu> to COM_<ELEMENT>_SHORT.
  2. Define COM_<ELEMENT>_SHORT="Store Locator" in the component's .sys.ini.
  3. Stem consistency: reconcile the MOKOJOOM prefix — the language-constant stem should match the component element (e.g. com_mokosuitestorelocatorCOM_MOKOSUITESTORELOCATOR_*). Confirm the intended element name.

Suggested short value: "Store Locator".

Part of the org-wide MokoSuite component naming/consistency pass. **Current:** the top-level Administrator → Components menu item uses the full constant `COM_MOKOJOOMSTORELOCATOR` (no short form), and the constant stem is `MOKOJOOM…` rather than `MOKOSUITE…` / the actual element name. **Required (match MokoSuiteHQ / MokoSuiteClient):** 1. Set the manifest's top-level `<administration><menu>` to `COM_<ELEMENT>_SHORT`. 2. Define `COM_<ELEMENT>_SHORT="Store Locator"` in the component's **`.sys.ini`**. 3. **Stem consistency:** reconcile the `MOKOJOOM` prefix — the language-constant stem should match the component element (e.g. `com_mokosuitestorelocator` → `COM_MOKOSUITESTORELOCATOR_*`). Confirm the intended element name. Suggested short value: **"Store Locator"**.
Author
Owner

Branch created: feature/75-admin-menu-use-com-short-short-name-cons

git fetch origin
git checkout feature/75-admin-menu-use-com-short-short-name-cons
Branch created: [`feature/75-admin-menu-use-com-short-short-name-cons`](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteStoreLocator/src/branch/feature/75-admin-menu-use-com-short-short-name-cons) ```bash git fetch origin git checkout feature/75-admin-menu-use-com-short-short-name-cons ```
Author
Owner

PR opened: #77#77 (branch fix/short-menu-constantdev, not merged).

Summary:

  • (A) Renamed the language-key stem COM_MOKOJOOMSTORELOCATOR*COM_MOKOSUITESTORELOCATOR* across 24 files (3 language .ini, 4 forms, 7 templates, 9 admin src PHP, 1 map-module template) — definitions and references changed in lockstep.
  • (B) Added COM_MOKOSUITESTORELOCATOR_SHORT="Store Locator" to all 3 language files and pointed the manifest <administration><menu> at COM_MOKOSUITESTORELOCATOR_SHORT.

The pre-existing full-name key COM_MOKOSUITESTORELOCATOR="MokoSuite Store Locator" was preserved; the old bare COM_MOKOJOOMSTORELOCATOR="Store Locator" became the new _SHORT (avoiding a duplicate-key collision).

Confirmed element/identity was NOT touched: <name>com_mokosuitestorelocator</name>, the com_mokosuitestorelocator folder/element, the Moko\Component\MokoSuiteStoreLocator namespace, the #__mokosuitestorelocator DB prefix, and all file paths are unchanged. This is a language-string key rename only.

Residual COM_MOKOJOOMSTORELOCATOR count on the branch = 0.

PR opened: #77 — https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteStoreLocator/pulls/77 (branch `fix/short-menu-constant` → `dev`, not merged). Summary: - **(A)** Renamed the language-key stem `COM_MOKOJOOMSTORELOCATOR*` → `COM_MOKOSUITESTORELOCATOR*` across 24 files (3 language `.ini`, 4 forms, 7 templates, 9 admin `src` PHP, 1 map-module template) — definitions and references changed in lockstep. - **(B)** Added `COM_MOKOSUITESTORELOCATOR_SHORT="Store Locator"` to all 3 language files and pointed the manifest `<administration><menu>` at `COM_MOKOSUITESTORELOCATOR_SHORT`. The pre-existing full-name key `COM_MOKOSUITESTORELOCATOR="MokoSuite Store Locator"` was preserved; the old bare `COM_MOKOJOOMSTORELOCATOR="Store Locator"` became the new `_SHORT` (avoiding a duplicate-key collision). Confirmed element/identity was NOT touched: `<name>com_mokosuitestorelocator</name>`, the `com_mokosuitestorelocator` folder/element, the `Moko\Component\MokoSuiteStoreLocator` namespace, the `#__mokosuitestorelocator` DB prefix, and all file paths are unchanged. This is a language-string key rename only. Residual `COM_MOKOJOOMSTORELOCATOR` count on the branch = 0.
Sign in to join this conversation.