Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
language change without reload the page
Old 12-29-2009, 04:07 PM language change without reload the page
antonisid's Avatar
Junior Talker

Posts: 4
Name: Antonis
Location: Greece , Athens
Trades: 0
Hello
I don't know how to change the language to a web site without reloading, by clicking the flag . I suppose that must insert the text to php tables or to a database?

I have seen that the url changes to " .../index.php?newlang=greek "

Any ideas or example to do that ?

Tnx
__________________

Please login or register to view this content. Registration is FREE
antonisid is offline
Reply With Quote
View Public Profile Visit antonisid's homepage!
 
 
Register now for full access!
Old 12-29-2009, 05:18 PM Re: language change without reload the page
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
To change the language without reloading, you must have access to the translated content or a plugin extension to all browsers that facilitates translation. Assuming you're not planning on writing those plugins for this task, you have (as far as I see) 2 options for gaining access to the content:

1) Have it all on the page for each language and then toggle the visibility of the proper language when the user selects their language.
2) Use Ajax techniques to fetch and replace translated content.

Both techniques require javascript. The first technique will be problematic if you need to change page encoding and will require unnecessarily-long page load times. The second technique will be a bit more javascript intensive, depending on how picky you want the script to be.

I recommend just loading the new page.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Reply     « Reply to language change without reload the page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09670 seconds with 12 queries