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
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