Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCHEN HAOMING
5,376 PointsHow to make a multiple homepage for the different language speaking visitors
Hello, My friends. I just have several questions about how to build multiple languages on my own website. I haven't found any courses about how to build multiple languages web site yet. I don't mean I want to build a translated homepage by google. I will make it by myself, which means I will set a language selection menu, let my visitors to choose English, Chinese, Japanese(I do speak these 3 languages) Example: domain name www.airbnb.com(English) www.airbnb.jp(Japanese) if my site visitors choose Japanese www.airbnb.cn(Chinese) same as up etc
And, one more question. What kind of attribute should I use to set my homepage language while the site visitors open the website could view the language they do understand. Which means if Her or His computers' default language is English or Japanese or Chinese , He or She will view the same language from my site.
It might be a little hard to understand my questions, lol.
Thank you for checking my questions, and I wish I could get some help from you.
Thx.
1 Answer
Amrit Pandey
17,595 PointsYou may have noticed, <meta charset="UTF-8">
in your HTML file.
That meta tag actually says browser to render characters which are included in Universal Transformation Characters 8 bit bundles. All the modern browser supports UTF-8.
Now, if you want to code your website, you have to code it in english, but the contents like text and characters will be in language of your choice!
tl;dr You actually have to type and provide content in different languages, or ask your visitor to use Google Translator