Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Creating a Multi-Langual website?

Poll

  1. 1. Poll

Please sign in or register to vote in this poll.

Featured Replies

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. :)

carsignatureis3.jpg

[http://woopidoo2.deviantart.com]

[Tip.it Moderator from Dec 10, 2006 to 03 Sep, 2008]

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

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 x11
    Berserker Ring x9
    Warrior Ring x8
    Seercull
    Dragon Med
    Dragon Boots x4 - all less then 30 kc
    Godsword Shard (bandos)
    Granite Maul x 3

Solo only - doesn't include barrows[/hide][hide=Stats]

joe_da_studd.png[/hide]

  • Author

Nice, yes I will use html+css for this website.

 

 

 

Thanks for the comments so far.

carsignatureis3.jpg

[http://woopidoo2.deviantart.com]

[Tip.it Moderator from Dec 10, 2006 to 03 Sep, 2008]

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.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.