Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2007
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    viewing content in different languages using php

    hi ,im new to php,i created one web page ,i want to make this page viewed by different language in there respective languages choosen,please help me i can do this query to my web page..........if else please help me.........


    Thanking you.

  • #2
    Regular Coder
    Join Date
    Jun 2004
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    • Store the chosen language in a session
    • Store large texts in a database
    • Store small texts(like button captions and formfields) in a languagefile (see expample


    PHP Code:
    <?php
    # example language file
    # locale.english.php (or something :p)

    $language['submit'] = 'Submit!';
    $language['go_back'] = 'Click to go back!';
    ?>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •