Answer the question
In order to leave comments, you need to log in
How to create a multilingual site, where each language will have its own articles (not translation of the same articles)?
Good day!
It is necessary to create a multilingual site (Russian, English, Kyrgyz), where each language will have its own articles (not translation of identical articles).
Followed this tutorial , created contexts, installed babel.
Questions:
1. How to make a context for the Kyrgyz language? just put culturekey=kg?
2. How is the translation of blocks in chunks, for example, “comments” or “login” buttons? do you need to create your own chunks for new contexts? Or is it possible to store these words somewhere?
3. how to control which resources to output via pdoresources (getresources)? to bring id and one and another and the third context?
4. for the web context, the pages look like mywebsite.ru/category/article, and for the en context, they look like mywebsite.ru/en/INDEX/category/article. how to remove this index, when you go to mywebsite.ru/en/ - it shows a 503 error. how to fix it?
Thank you!
Answer the question
In order to leave comments, you need to log in
Hello!
1. The value of culturekey for MODX is not important, you can write at least "en", "eng", etc. It is important for the url-site switching snippet and for babel (in babel in the package folder on the host there are language files that you need to add with your own culturekey for Kyrgyz, if there is none by default).
2. You can create chunks for each context with your own chunk, for example, ,
, and in the template, write once - .
Or you can register in one chunk, but checking by condition through a modifier, for more details about the modifier, see docs.modx.pro/system/the-basics/filters-input-and-...
3. Yes, most likely, read documentation, it seems to be there.
4. Look carefully if there is .htaccess on the hosting and whether it is registered in the template<base href="http://askmeplz.com/"/>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question