Skip to content
This repository was archived by the owner on Dec 19, 2017. It is now read-only.
This repository was archived by the owner on Dec 19, 2017. It is now read-only.

Language Packs #49

@Kent55

Description

@Kent55

Although not mandatory, I personally feel that this would be a great addition, not only for those that wish to use TranxCraft from different countries, but it also makes managing output messages easier and encourages the community to contribute by translating. So, in the end, TranxCraft could be supported in many languages.

A possible way to do it would be to create a directory called languages, and then name each file with its relevant locale, i.e. en, fr etc. Inside each file have different constants, for example:

MESSAGE_FORUM_ACCOUNT_NOT_EXIST
ERROR_NO_PERMISSION

etc...

In the database we can store the selected locale of the user in a field, then load the relevant file depending on the field value, defaulting to english of course.

I can then do the same for the panel, fetching the same field from the database. I would love to know what you think @WickedGamingUK

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions