How to make a multilingual website?

Asked

Viewed 234 times

1

I have already had to research on the subject on this site and others, and this question seemed to me the most complete: How to make a multilingual site? , my question is: is it necessary to do with language arrays, ... or can I just duplicate the page, for example: index.html and make an index_es.html and do so for all? And if so, this method has some disadvantage, or is it wrong to use it?

  • 2

    The solution of the array with the languages is usually called i18n. This is not always possible. It is suitable when the excerpts to be translated are short and have a lot repeated. For example, the label "user", it can be found in several corners. If the page has a large textual content, translating with that strategy may not be the best thing in the world (especially when it goes to a language that escapes from SVO, quite distinct from Portuguese). In this case, multiplexing the "article" in several languages may be the most suitable.

  • and the other solution, to duplicate pages is feasible?

  • 1

    I finished the previous comment now. They are distinct strategies that have different uses and advantages. Each should be applied where it is best to apply.

  • 1

    For example, here on Sopt: the help part of the site is heavier text. You might want to keep it separate. But those little phrases and messages from the main part, like "ask a question" and other messages more, it doesn’t make sense to separate

1 answer

3

If you watch carefully, Blogspot, Facebook, Google, Amazon mainly, all these multinational companies have different directories for different languages.

What you can do is on your website, make a link to the country’s flag in the upper right or left corner, and so forward to a different directory.

I think it’s less painful and less likely to fail.

Another thing you can do is own a. txt file for a language. In this file, enter a list of the most common words of a language and then make a script that captures the words in a person’s browser history. If the history words match the words in the . txt file of the desired language, update website to the desired language.

For example, a Frenchman has French words in his history. The script will capture those words and look them up in the .txt. files when the words in the history match the words in the file. txt of the French language, the website updates.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.