Skip to content

Language is not merging with modules #1433

Description

@natanfelles

Describe the bug

When a Language file with same name of an default file of the system/Language/en/ is in a module folder, it is not merged.

For example:

I have the following folder structure:

application/
module-x/
module-x/Commands/
module-x/Language/en/

The namespace is proper configured in the Autoload config. I can see the commands when I call the spark.

And the lang() function also works - BUT, if a module lang file has the same name of a default file, it does not works.

If a file is named Foo.php, it works: lang('Foo.hello').

If a file is named HTTP.php, it does not works: lang('HTTP.hello').

Same for others, like Database.php, etc.

CodeIgniter 4 version

4.0.0-alpha.2

Affected module(s)

Language

Expected behavior, and steps to reproduce if appropriate

Expected that module Language files be merged.

Context

  • OS: [Debian]
  • Web server [PHP]
  • PHP version [7.2]

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 themmissing featureReported issue which is not a bug but needs to be implemented

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions