WorldWideScripts.net Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Add-ons

PHP Language Class

— Add-On to WorldWideScripts.net

Subscribe to our feed to stay up to date!

New! Follow us as you want it!


PHP Language Class - WorldWideScripts.net Item for Sale

Ads

Ad: Bluehost hosting

Version 3.1

PHP language class was developed thinking on developers and users. It helps you integrate and configure multiple languages by creating language files using an associative array. Users are able to choose their preferred languages but first the script automatically detects the browser language and use the appropriate language file based on the users default browser language and in case you don’t have created that language the script will use the website default language configured on script the. PHP files can be configured using super global GET or POST to convert the website to the particular language. It’s easy to modify and create language files. Documentation and demos available!

Updates:


April 2012 (Version 3.1)

  • Updated Documentation – Supported Languages Codes
  • Updated Class (Now Supports Worldwide Languages)
  • Updated Demo

November 2011 (Version 3.0)

  • Rewritten the class
  • Fixed bugs that limited and prevented the use of functions and OOP for the translations.
  • Improved Documentation, added more examples on how to use on functions and classes creating the possibility for large projects

August 2011 (Version 2.0)

  • Fixed an issue with the preferred default language due to sessions and changed the languages file extension to “.lang”;

Code Example:


          require_once("includes/file.conf");
          $var = new Language;
          $var2 = $var->getLanguage($params);

          // to call
          echo $var2['translatedKey'];

          // to use on functions
          function translate_title()
          {
        global $var2;

        return $var2['title'];    
          }
          echo translate_title();

and more...

Download
Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers

Properties

Created:
14 July 11

Last Update:
23 April 12

Compatible Browsers:
IE6, IE7, IE8, IE9, Firefox, Safari, Opera, Chrome

Software Version:
PHP 4.x, PHP 5.x, PHP 5.0 - 5.2, PHP 5.3

High Resolution:
No

Files Included:
JavaScript JS, HTML, CSS, PHP

Keywords

browser language, class, classe de linguas, configure language, language, language class, language support, linguas, multiple language, php