R
R
Roman Krylov2015-06-07 08:55:28
Computer networks
Roman Krylov, 2015-06-07 08:55:28

User locale on the site, where to store?

Let's say there is a site with multilingual support, a user came in and chose his native locale or close to it.
Where to store the user's choice?
In sessions, or as part of the address example.com/ru/products/1234
Or in the GET parameter ?locale=ru
The subdomain name is not considered, as it is taken for other needs.
What other ideas do you have, pros and cons of different approaches?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2015-06-07
@TsarS

Convenient for search engines www.site.ru/en www.site.ru/de

D
Dmitry Entelis, 2015-06-07
@DmitriyEntelis

Familiar seo experts say that it is absolutely right to have different domains for different languages.

4
4uva4ok1905, 2015-06-07
@4uva4ok1905

Why does the user need to select manually? When entering the site, the system itself will determine and set the desired language, and if the user is not satisfied with the choice, then ?lang=ru(ua, en, etc.) and save his choice in a cookie.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question