• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • Last Modified:

multilingual question

hi,
a website were making is too be in english and in italian.
what is the best way to do this?
i mean do i have to make 2 versions of every page?
its possible the users will be using older browsers (i was thinking of using layers but not sure what browsers will support it)
do you have any ideas?
can i load static text from a text file or something depending on which language was chosen..
0
inthe
Asked:
inthe
  • 3
  • 3
  • 2
  • +1
1 Solution
 
jbeamanCommented:
I would recommend having a start page where people coming to your site could click on the appropriate language (or flag even) and then get directed to the site with the language they chose.  It would mean having to create 2 versions of your site, but I feel that this is the best implementation for the end user.  Here is an example of a English/German website:

http://www.elaborate-bytes.com/

My 2 cents,
John
0
 
jbirkCommented:
I think the best way to do it is to have two complete versions of the site.  But I like when the default language is the start page.  Then you can choose to toggle to the other language.  So if you expect the majority of your users to want it in italian, make that the default and have a link on that page which says "English", and vise versa.  I've seen this done on a lot of web pages (amazon.com, yahoo.com, netscape.com)

-Josh
0
 
intheAuthor Commented:
this is what im trying to avoid if at all possible ..all the sites i find seem to use this method that is why i ask if there is any other way..
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
jbeamanCommented:
Not that I know of.  What would be cool is if a website could pull the language being used in the browser and use some java to direct the visitor to the correct page.  I have seen this done where people using IE get sent to one location and people using NN get sent to another.  Maybe something like that exists now, but I have never run across it.  If not, it would definitely be something to include in future browser versions.  :-)
0
 
jbirkCommented:
It's possible to find out the language version of the browser, which is not necesarily the language version of the OS or the person...
In netscape look at this variable:
navigator.appVersion
Then parse out what's between []  it will be a 2 letter code representing the language...  but this won't work for all the browsers and versions...


you CAN do the layer method, but it would require extra download time (all the text twice!), would have problems on older browsers, and may have problems when the window is resized.  Also Netscape sometimes doesn't like things in layers which work fine outside a layer (has lots of bugs in other words...)  I wouldn't recommend this method.

There may be a server side solution available to you though.  On the server side, you can grab this 2 letter code as well, and then the page could be generated based on that...  with a default if the code isn't present or not italian or english...  This would put a lot of strain on the server though if you get a lot of hits...
-Josh
0
 
intheAuthor Commented:
i have no control over server whatsoever
dont even know where it will end up.
(im making site on behalf of a person who in turn is having it done for another company)

im also woried about using any scripts etc that are too special because of the browser issue (im told some maybe veiwing it in version 2 of ie & netscape )

looks like only option is duplicate twice the pages :-( but i'll leave question open til tommorrow night see if there are any viable options someone else knows of that we havent thought of yet.
0
 
jbeamanCommented:
There is a javascript that will redirect your visitors depending on the language of their browser.  You can download the code at

http://www.javascripts.com

search for language, and you should find it.
0
 
kikkertmCommented:
If you want to prevent creating two identical websites in two differnt languages, you should choose for a database-driven site. This would mean that you would only have one version of all the generic stuff, layout and code, and the language specific stuff will all come out of a database (or even out of include files), This makes the site much more maintainable than having two seperate standalone versions, because if you choose to , for example, change the layout of the site, you only have to change it in one place instead doing it twice. If you take a good look around, you'll see that most grand-scale sites are actually database driven..Offcourse, This descision depends on the scale of your site, if it's only a few pages, don't bother, just create two versions. If there are a few hundred however, believe me, you want tot go for database driven !


Goodluck
Mike.
0
 
intheAuthor Commented:
oh well ,2 versions it is  :o(

ps/
nice site that javascript one .
cheers
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now