Answer the question
In order to leave comments, you need to log in
How to correctly and concisely make multilingualism on the site?
Hey! Recently I was wandering around freelancing and came across such a project: there is a website (I’ll attach a photo below) and I need to make it multilingual (for now it’s just html + css).
Answer the question
In order to leave comments, you need to log in
The plugin helps to translate the content, you can also change the pictures in the article for different languages, so this plugin will help you first of all.
Translation of static texts (signatures of links, buttons, etc.) - there are special language functions in the WP core itself, but they require the creation of translation files. To change the design, in theory, wp itself must add a class indicating the language in the body, I think there should be one, it is important that this function be called in the theme near the body tag.
There is a course , there at the end there is a series of videos on site localization.
There are three approaches:
The page does not change, all content for all languages on the page is switched via CSS with changing the LANG attribute of html. Pictures can be changed as well. For one-pagers
Second:
Two different document trees or a subdomain for the language version (either inside one or two different admins)
Third:
Translation of each page into admins for all fields - when the resource tree is completely the same. language copies are created for all fields of the document, a redirect via htaccess and a cookie from the language switcher
All of this can be implemented through ± any admin panel
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question