Web-Talks

[Help] Changing Language

Discussion at Web-Talks in the Website Design Forum forum. 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 ...

Talks Network: » WH-Talks » Webmaster Tools

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

Notices

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: 565
Credits: 12,440
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
Sponsored Links
Old 07-03-2008, 09:42 AM   #2
Got powers xD
 
Ikki's Avatar
 
Join Date: Apr 2008
Location: Caracas, VE
Posts: 425
Credits: 10,886
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

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: 353
Credits: 4,367
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

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: 565
Credits: 12,440
My Mood:
Aziz has a spectacular aura about Aziz has a spectacular aura about
Send a message via MSN to Aziz
Default

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: 425
Credits: 10,886
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

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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios


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 57 58 59 60 61 62