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 / Miscellaneous

LangQuery - PHP Multiple Language Class with Param

— Add-On to WorldWideScripts.net

Subscribe to our feed to stay up to date!

New! Follow us as you want it!


LangQuery - PHP Multiple Language Class with Param - WorldWideScripts.net Item for Sale

Ads

Ad: Bluehost hosting

I’ve looked everywhere for language classes before writing this class but I realized there is no class doing everything i need as easy as in my head. So I started to write easiest and the best possible language class and I think this class will be number one language class.

Features

  • Super Easy
  • Super Fast
  • One line code Setup
  • Auto Remember Language
  • Auto Detect Browser Language
  • Parameter Support
  • ini Based Language Files
  • Integrated Change Language Feature
  • Returns String or In-line Echo Feature

Example Code


    include("LangQuery.php");

    $L=new LangQuery();
    // All Setup is ONLY ONE LINE
    // Browser language detected and loaded if available
    // Language will be autosaved and remembered next time.

    // Write Hello World
    echo($L('hello_world'));

    // Write Hello World Easier - In-line Echo Feature
    // You don't have to write echo. Just add '>'
    $L('>hello_world');

    // Use in Strings
    echo("Hello Universe. {$L('hello_world')} Hello Europe");

    // Write my age with parameter
    $L(">my_age",25);

    // Write my name and age with parameters
    $L(">my_name_age","Enes",25);

    // Using instant language change feature.
    // This will change language only for this line. 
    $L(">[tr]hello"));


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

Properties

Created:
10 August 12

Last Update:
14 August 12

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

Software Version:
PHP 5.3, jQuery

Files Included:
PHP

Keywords

LangQuery, class, easy, language, parameter, php, support