S
S
Steely2018-08-29 19:40:24
Django
Steely, 2018-08-29 19:40:24

Multilingual multiregional Django site, how to implement urls?

Actually there is a task to make a website:
site.com/ru-ru
site.com/ru-ua
site.com/ua-ua
site.com/language-country
( https://habr.com/post/177089/)
That is for the region there can be several languages, for example, for the ua region, the site must be in Ukrainian and Russian. Can anyone suggest or direct how to properly implement this? New to Django.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-08-29
@UPSA

Forget it .... although it will do for brain training ...
1. In Django, multilingualism is more connected with content filling. There is a form for creating a page (content) - How many languages ​​you set - so many pages and you will fill. The names of the fields will automatically be renamed to the language that you have chosen. Why ru-ua? Probably to confuse :)))
2. There is a link in your link . There are confusing examples. For example, ru-en does not say that this site is Russian-English, but says that you need to go to a server physically located in Russia, but in English. (simplified example, do not scold)
3. Are you ready to rewrite the entire i18n module. Or, of course, you can add your own language there. ru-ua :)
4. Try 3 languages, put ru, ua, en. Look how much the filling work has increased. Then decide, is it worth it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question