woopidoo2 Posted January 30, 2009 Share Posted January 30, 2009 Ive been thinking and reading on how to do this, but I still dont know it. I want to create a website which is accessible in 2 languages. After typing the URL that leads a user to my website, the user has to choose between English or Dutch. The content of both directions are the same, just different languages. How do I do this in a smart way, which is clear for me and for the visitor? I was thinking about a structure like this: *user goes to * *user chooses English or Dutch* If English: www..nl/en/home www..nl/en/aboutme etc. If Dutch: www..nl/nl/home www..nl.nl/overmij etc. Thats seems the best structure, but is this realistic to do? if so, how? Thanks in advance. :) [http://woopidoo2.deviantart.com][Tip.it Moderator from Dec 10, 2006 to 03 Sep, 2008] Link to comment Share on other sites More sharing options...
thrash-boy Posted January 30, 2009 Share Posted January 30, 2009 just have 2 different directories at the root (en for the English website and nl for the Dutch). Build the website using html & css. all the content goes in the html file (have a html file for each page in each language in each directory), and every page (both dutch & english versions) use the same style sheet (css file). that way you can change the layout, border thicknesses, everything by modifying 1 css file, and it will update all pages in both dutch and English versions. that would be the way to go if your using html here is a great site for learning how to use html with css, it taught me very well anyway: http://www.htmldog.com Link to comment Share on other sites More sharing options...
JoeDaStudd Posted January 30, 2009 Share Posted January 30, 2009 Looks like a nice structure. I would set a cookie when they choose the language so you can auto re-direct them to the correct language if they visit again. [hide=Drops]Dragon Axe x11Berserker Ring x9Warrior Ring x8SeercullDragon MedDragon Boots x4 - all less then 30 kcGodsword Shard (bandos)Granite Maul x 3Solo only - doesn't include barrows[/hide][hide=Stats][/hide] Link to comment Share on other sites More sharing options...
woopidoo2 Posted January 30, 2009 Author Share Posted January 30, 2009 Nice, yes I will use html+css for this website. Thanks for the comments so far. [http://woopidoo2.deviantart.com][Tip.it Moderator from Dec 10, 2006 to 03 Sep, 2008] Link to comment Share on other sites More sharing options...
sloter Posted January 30, 2009 Share Posted January 30, 2009 You could also use a server side language and set a get element for the language Ex: http://www.yourwebsite.com/?lang=en. And then build a multidimensional array with English and your other languages being your first array key and the as the second array key put a word that means a string or something and put that where you need and then translate each string in hat array. To save on memory just make one array per language and just include the language file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now