Creating multilingual pages in PHP

Hello to all my dear friends

In this post I want to introduce a simple class for making PHP scripts multilingual.

Using this class is very simple.

First you need to create a folder to put the files for the languages you want in. Then you put the files for the languages you want, with the .ini extension, in that folder, add the EasyLang class to your PHP code, and use the translations through the language constants.

This class is very simple and is compatible with PHP 5.2 and above.

For more details and to download the source code and a demo script, you can go to the GitHub link below.

I made this class, and I'd be happy to hear any comments you have about it.

See the source code on GitHub

No Comments

No comments yet