refactor: remove PrettyName class, inline slug-to-label conversion #5

Merged
Copilot merged 3 commits from copilot/create-pretty-plugin-name into main 2026-03-06 08:38:58 +00:00

3 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 139397b1b3 refactor(field): remove PrettyName class, use inline human-readable name
Delete src/src/Utility/PrettyName.php and the empty Utility/ directory.
Replace the single call site in MenuslugField with an inline
ucwords(str_replace(['-', '_'], ' ', $item->alias)) which converts
slugs to human-readable labels (e.g. terms-of-service → Terms Of
Service) without requiring a dedicated class.

Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com>
2026-03-06 08:37:51 +00:00
copilot-swe-agent[bot] 93695c8d16 feat(lang): use pretty plugin name in language files
Rename the plugin display name from the opaque "System - MokoJoomTOS"
to the descriptive "System - Offline Terms of Service" in all six
language INI files so Joomla's Plugin Manager shows administrators a
human-readable name that clearly conveys what the plugin does.

Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com>
2026-03-06 08:17:16 +00:00
copilot-swe-agent[bot] 77762ba130 Initial plan 2026-03-06 08:15:09 +00:00