On 2/8/06, belovah <belovah gmail.com> wrote:
>
> Hello!
>
> I'm trying to make a website like this in PHP if
possible:
>
> 1. It will be multilanguage website
> When you enter the site there will be 3 or 4 flags.
When you click on
> the English flag, the entire website will be in English
or if you want
> it to be French you click on the French flag and
everything will be in
> French.
> (I think I could figure this out by myself but any help
would be much
> appreciated.)
>
This can be done using either a localization system or by
setting up a
load of files that contain the strings for different
languages.
Obviously you will need to translate all of your content,
but the
simplest way to do it in the site would be to assign each
string of
text (e.g. 'Welcome to example.org!' to a variable, and then
include()
the appropriate file when a language is selected.
e.g.
locale-eng.php:
$welcomeString = "Welcome to example.org!';
locale-french.php:
$welcomeString = "Bienvenue à example.org!";
This is a pretty basic situation, but for a small site it
works well
and doesn't need complex localization scripts.
> 2. Now this is the hard part. At least for me.
> In the right bottom corner there would be a map of
Europe with all of
> the countries. And when you'd go over a country with
your mouse a flag
> and a country name would show up on the map and in the
left top corner
> a description of this country (some text).
>
Thats not technically PHP, it can be done with
CSS/JavaScript. Its
possible, but it is client side and not generated on the
server. If
you need help doing this I'm sure I can find time to lend a
hand
Drop me a line and we can talk it over.
>
> Help me please!
>
>
|