Multi language PHP application: best practice?
问题 I'd like to get your feedback over the way I implemented multi-language support on my PHP MVC web app. That's how I did: in the /app folder I created a /languages folder which contains one file per language (english.php, spanish.php, etc.) each file contains a serie of variables with the same names in each files, containing the texts to render in the views these variables are then echoed in the different views a "language" cookie variable is updated when the user changes the language in the