Skip to content

[3.2][new feature] little native language system (internationalization, i18n) #582

@Dominic28

Description

@Dominic28

Hey,
As you made it possible to load text with Text::get(), I created a very simple language system with it. I let the user choose the language while registering and save it to the database. Then I'm just checking which file needs to be loaded in the text class.

Additionally I'm reading out $_SERVER['HTTP_ACCEPT_LANGUAGE'] to show unregistered users the site in their prioritized language (if available).

Are you interested in this simple solution? Because you said it's not really needed some time ago.
I can't create a pull-request now as my version of huge is too different, that's why I'm asking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions