Translate PHP class Created by christophdb. This templates have specific characteristics, namely: Translate has features such as High Resolution: No, Compatible Browsers: IE6, IE7, IE8, IE9, Firefox, Safari, Opera, Chrome, Software Version: PHP 5.x .
- None: None
- None: None
- Php 5.x: PHP 5.x
- Ie6, ie7, ie8, ie9, firefox, safari, opera, chrome: IE6, IE7, IE8, IE9, Firefox, Safari, Opera, Chrome
- Php: PHP
- No: No
Translate is an easy but flexible PHP class to help you to create multilangual websites. It consist only of one class.php file and as many language files as you want. The simple structure makes it easy to add additional languages.Translate can automatically detect the browser language, supports placeholder in your predefined texts and allowes to define a fallback language. Give it a try and you will see how easy it is to create multilanguage websites.
The integration or better the necessary preparation of “Translate” to use multiple languages is very simple. Only 3 lines of code are enough: require_once (‘Translate/Translate_class.php’); $translate = new translate(); $translate->setBrowserLanguage();
- Ready to use with 3 lines of code
- easy to extend with new languages (just copy an existing language file)
- simple structure (translate_class.php and the language files.)
- no errors because of a defined fallback language
- detects the browser language of the user automatically or via the IP address
- text parts can contain placeholders for variables
Please help me
If you are going to rate the script less than 5 stars, please tell me what I can do to make it 5 stars for you and I will fix it. I would love to hear your suggestions on how I could improve the script, leave me a comment or send me an email and your suggestion might make it in to a future version!