You have (1) Unread PM; Click The Icon To Read It You have a new PM

Go Back   Web-Talks > Design and Development > Website Development

Notices

[Help] Changing Language

Website Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-03-2008, 03:40 AM   #1
Super Moderator
 
Aziz's Avatar
 
Join Date: May 2008
Location: Haifa, Israel
Posts: 566
My Mood:
Aziz has a spectacular aura about Aziz has a spectacular aura about
Send a message via MSN to Aziz
Default [Help] Changing Language

Hey,

I was wondering if anyone knows how make change language buttons
in HTML or java or related markups so I'll have a site which allows users
to pick a specific language

please help!
__________________
http://www.azizgfx.com/
Aziz is offline   Reply With Quote
Old 07-03-2008, 09:42 AM   #2
Got powers xD
 
Ikki's Avatar
 
Join Date: Apr 2008
Location: Caracas, VE
Posts: 433
My Mood:
Ikki has a spectacular aura about Ikki has a spectacular aura about Ikki has a spectacular aura about
Send a message via MSN to Ikki Send a message via Yahoo to Ikki
Default Re: [Help] Changing Language

Some time ago, I created this site which had a Language Selector so people could choose between English and Spanish. A lot of my visitors back then appreciated that feature :)

I coded that site in php and "hardcoded" the languages in the scripts. It was not the best approach but it worked for me. If you're planning to do something like that I'd recommend you to follow these steps:
  • Create a table called "labels". In this table you would store all your site's labels (buttons labels, headings, etc) in different languages.
  • Initially, your site would load using one predefined language for all your labels. You could use PHP to retrieve the labels from the DB while your site is loading.
  • Once your site has loaded using the predefined labels, you may want to use a combo box to let your visitors pick their preferred language. That would trigger the script that retrieves the labels in the language selected by the user from the DB and reloads the entire site in that language. You should use cookies or sessions in order to "remember" which language your visitor has selected (if different from the predefined one, of course).
That's a general sketch of what you need to do to accomplish what you want.

Good luck ;)
Ikki is offline   Reply With Quote
Old 07-03-2008, 11:56 AM   #3
Web-Talk Security!
 
khena25's Avatar
 
Join Date: Apr 2008
Location: USA
Posts: 365
My Mood:
khena25 will become famous soon enough
Send a message via AIM to khena25 Send a message via MSN to khena25 Send a message via Yahoo to khena25
Default Re: [Help] Changing Language

I'll bet you than Google knows how to do it. lol.
__________________
I CAN HELP YOU
Questions? Comments? Suggestions?Just drop me a PM
khena25 is offline   Reply With Quote
Old 07-03-2008, 11:57 AM   #4
Super Moderator
 
Aziz's Avatar
 
Join Date: May 2008
Location: Haifa, Israel
Posts: 566
My Mood:
Aziz has a spectacular aura about Aziz has a spectacular aura about
Send a message via MSN to Aziz
Default Re: [Help] Changing Language

I get the idea, However; I have no experience in coding PHP
could you provide me a source code or help me do it
__________________
http://www.azizgfx.com/
Aziz is offline   Reply With Quote
Old 07-03-2008, 02:16 PM   #5
Got powers xD
 
Ikki's Avatar
 
Join Date: Apr 2008
Location: Caracas, VE
Posts: 433
My Mood:
Ikki has a spectacular aura about Ikki has a spectacular aura about Ikki has a spectacular aura about
Send a message via MSN to Ikki Send a message via Yahoo to Ikki
Default Re: [Help] Changing Language

I can give you a hand ;) However, currently I could only help you on weekends though.

Is this site online already? Or this is a new proyect of yours?
Ikki is offline   Reply With Quote
Reply

Bookmarks

« What makes a template 'Good'? | directory template - started over »
Thread Tools
Display Modes



All times are GMT -5. The time now is 08:48 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
Designed And Optimized By: SEO Tips

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56