Skip to content

Bug: Can't Rewrite System Validation Messages #4318

Description

@devajmeireles

Describe the bug
When I insert custom array of validation messages in the file: app/Language/en/Validation.php the system does not overwrite the system messages with my new messages, this only happens if the file: system/Language/en/Validation.php does not exist or be renamed.

CodeIgniter 4 version
4.1.1

Affected module(s)
Language System - I seen that only work if I remove (or rename) system/Language/en/Validation.php

Expected behavior, and steps to reproduce if appropriate
Inserting a array of Validation Messages in app/Language/en/Validation.php, the system continue to be using the system core Validation messages.

Context

  • Docker (Apache + PHP 7.4 + MariaDB)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions