Skip to content

Multi language ( on same page ) support #891

Description

@puschie286

Hi, i notice that is currently impossible to have two translation of the same string

Example ( Reproduce ) :
Create a XX directory in CI4/system/Language
Create a Number.php file ( with some example content ) in CI4/system/Language/XX
echo lang('Number.million', [], 'en').'<br/>'.lang('Number.million', [], 'XX')
you should get the same string two times ( independed of the second selected language )

The problem is that the language class will be set to the language of the first call - which prevent every other language to be loaded ( for the same string )

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions