anacondaq Posted November 14, 2014 Posted November 14, 2014 Hi! I have a question. Is it possible to add multilanguage support to FluxCP? Or if is it already implemented, how to use it? Anyone can explain me? For example, i wanna to add 2 buttons on the website: EN ES If visitor click on "EN" button, website (default phrases) will be in english If visitor click on "ES" button, website (default phrases) will be in spanish. I saw that feature on few servers with flux, but i did't found how to organize it. Anyone, can explain about this feature?
Stickhead Posted November 14, 2014 Posted November 14, 2014 I think you can use google translate to help you with your website but i think everything will be manual if you want to create one. not sure ill try to research more about this
Doch Posted November 14, 2014 Posted November 14, 2014 (edited) all the text have to be stored in a file, in a array or constants or whatever, and then replace all the texts in the website with that variables, so then you just have to switch between english/spanish.php file to change the language (spanish with strings in spanish and same with english), then you can set a cookie as a config to store what language did they choose Edited November 14, 2014 by Doch
samurai.rukasu Posted November 14, 2014 Posted November 14, 2014 Not ALL the flux web have variables for language, many others options are hardcoded, you can translate the language file, but u will need to check file by file for translate hardcoded language
Question
anacondaq
Hi!
I have a question.
Is it possible to add multilanguage support to FluxCP?
Or if is it already implemented, how to use it? Anyone can explain me?
For example, i wanna to add 2 buttons on the website:
If visitor click on "EN" button, website (default phrases) will be in english
If visitor click on "ES" button, website (default phrases) will be in spanish.
I saw that feature on few servers with flux, but i did't found how to organize it.
Anyone, can explain about this feature?
3 answers to this question
Recommended Posts