Skip to content

chore: Cherry-pick admin language loading via Translation service onto develop - #214

Merged
hellopablo merged 1 commit into
developfrom
chore/cherry-pick-form-validation
Sep 6, 2026
Merged

chore: Cherry-pick admin language loading via Translation service onto develop#214
hellopablo merged 1 commit into
developfrom
chore/cherry-pick-form-validation

Conversation

@hellopablo

Copy link
Copy Markdown
Member

Summary

Cherry-picks the Translation service migration for admin's generic language lines from feature/pre-new-admin. Depends on nails/common#558.

  • 7ac97c6 (c96be4e) refactor: Load language lines via the Translation service

Conflicts resolved

src/Controller/Base.php was independently and substantially rearchitected on develop (the BaseMiddle pattern was removed, it now implements Controller) — the loadLanguages() method this commit patches didn't exist there at all, and nothing else fills that role. Re-added the method (identical to feature/pre-new-admin's version) and wired it into the constructor's loadConfigs()->loadHelpers()->loadLanguages() chain, matching the source branch's call order exactly.

Verification

(against nails/common's chore/cherry-pick-form-validation branch synced into vendor/nails/common)

  • No test suite exists in this module (No tests executed!) — nothing to regress.
  • phpstan: 0 errors, unchanged from develop baseline (also 0).

Do not merge yet — holding for review.

🤖 Generated with Claude Code

Replaces `get_instance()->lang->load('admin/admin_generic')` with `Factory::service('Translation')->load('admin_generic')`, which works outside a CodeIgniter request.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit c96be4e)
@hellopablo
hellopablo merged commit 38c6766 into develop Sep 6, 2026
4 checks passed
@hellopablo
hellopablo deleted the chore/cherry-pick-form-validation branch September 6, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant