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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 12-17-2008, 12:08 PM Idiom
Super Talker

Posts: 128
Name: Jose daSilva
Trades: 0
Hi

Compliments of the season to all

Can somebody tell me how my website can be open depending on the language of the user. In another words a user in uk opens the web site and it opens in english, an italian opens in italian and so on.

The way I have is the old way.it opens in portuguese and then the diferente nationality users clicks on the respective flags and it changes.

Thanks
josil is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-17-2008, 01:07 PM Re: Idiom
Banned

Posts: 923
Name: Geoff Vader
Location: In my dreams
Trades: 0
I checked inside my apache server. There's an online 'manual' which serves as a good example. This is the index page's contents:

Quote:
URI: index.html.de
Content-Language: de
Content-type: text/html; charset=ISO-8859-1

URI: index.html.en
Content-Language: en
Content-type: text/html; charset=ISO-8859-1

URI: index.html.es
Content-Language: es
Content-type: text/html; charset=ISO-8859-1

URI: index.html.fr
Content-Language: fr
Content-type: text/html; charset=ISO-8859-1

URI: index.html.ja.euc-jp
Content-Language: ja
Content-type: text/html; charset=EUC-JP

URI: index.html.ko.euc-kr
Content-Language: ko
Content-type: text/html; charset=EUC-KR

URI: index.html.ru.koi8-r
Content-Language: ru
Content-type: text/html; charset=KOI8-R

and when I go to it, being in the UK, it goes to the UK page

basically this is part of the folder listing and gives you an idea of what you have to do (i.e. lots of pages ending in .html.en and .html.es and so on - i.e. a page for each language)

Quote:

content-negotiation.html index.html.de sections.html.ja.euc-jp
content-negotiation.html.en index.html.en sections.html.ko.euc-kr
content-negotiation.html.fr index.html.es server-wide.html
content-negotiation.html.ja.euc-jp index.html.fr server-wide.html.en
content-negotiation.html.ko.euc-kr index.html.ja.euc-jp server-wide.html.es
custom-error.html index.html.ko.euc-kr server-wide.html.ja.euc-jp
custom-error.html.en index.html.ru.koi8-r server-wide.html.ko.euc-kr
custom-error.html.es
As you can see, there are pages for each language and the index.html page sends you in the direction of the appropriate language.

It seems to me that URI's are the clincher here.

I found this on W3c...

Quote:
Learning About URIs

The Web is an information space. Human beings have a lot of mental machinery for manipulating, imagining, and finding their way in spaces. URIs are the points in that space.
Unlike web data formats, where HTML is an important one, but not the only one, and web protocols, where HTTP has a similar status, there is only one Web naming/addressing technology: URIs.
Uniform Resource Identifiers (URIs, aka URLs) are short strings that identify resources in the web: documents, images, downloadable files, services, electronic mailboxes, and other resources. They make resources available under a variety of naming schemes and access methods such as HTTP, FTP, and Internet mail addressable in the same simple way. They reduce the tedium of "log in to this server, then issue this magic command ..." down to a single click.
It is an extensible technology: there are a number of existing addressing schemes, and more may be incorporated over time.
http://www.w3.org/Addressing/


That seems to be the direction I would start travelling in if I were looking to solve the problem you outline.
witnesstheday is offline
Reply With Quote
View Public Profile
 
Old 12-17-2008, 01:25 PM Re: Idiom
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
In another words a user in uk opens the web site and it opens in english,
Use the IP to tell you the country of origin
http://www.ip2location.com/free.asp

bear in mind though all AOL users are in the US regardless of their country and all the major SEs are in the US.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Idiom
 

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.52460 seconds with 12 queries