Log in

View Full Version : Language selection in a good looking pop-up window



Addeanton
01-17-2012, 06:47 PM
Hello, i am quite novice in the css and php-area.

what i want to achive is to let my visitor have an option when they log on to my site:

Language selection Swedish or English, in a pop up window.

When the option is made, i want to output the right language selection.

What PHP-code do I need to do this?

if (english choice is made)
{ this text is going to be output}
else
{i want this text}

PS: Any good suggestion for nice pop-up "in-window" plug-in. Such as fancybox etc.

djr33
01-17-2012, 09:36 PM
Here's a recent discussion on this topic:
http://www.dynamicdrive.com/forums/showthread.php?t=66871

Do you have any specific questions? Do you want to translate the entire website or just one message? If it is just one message, that's much simpler (just a basic "if" statement).

As for boxes, here's a recent discussion about that too:
http://www.dynamicdrive.com/forums/showthread.php?t=66939
As a short reply to that, there are many good options out there, so it really depends on what you like working with-- there isn't one "best" box.
(In the future, please do a basic search before asking a new question, since a lot of questions have already been answered here.)

Addeanton
01-17-2012, 09:43 PM
Thanks for your answer, as a newbie I am not sure of the names and such. Therefore it kinda hard to use the search function...

I will more into it!

I want to translate the whole website, not one a single message

djr33
01-18-2012, 01:38 AM
Ok. Read the information in the other discussion, and let us know if you have any specific questions.