-
Notifications
You must be signed in to change notification settings - Fork 0
Multilanguage
Ladislav Marsik edited this page Jan 7, 2018
·
4 revisions
Our Multi-language is achieved by MultilingualPress plugin. The whole idea is only creating a new site in our Multi-Network, and giving it translated content. So MultilingualPress plugin is more of a helper to have nice transitions between language mutations (widget to switch language, and languages shown in wp-admin).
- Using
NetworkAdmin -> Sites -> Add new
add CZ site (e.g. Climbing4Water Prague (CZ) ), name its URL onlycz
, because the basic Add Site does not like/
in the URL - In new MultilingualPress section, fill it somehow like this:
Note: 'Relationship' should be set for the original english mutation to achieve transition; 'Alternative language title' does not need to be specified, we are probably not gonna use it); 'Based on site' is useful, since it actually copies all Customizer content and activates plugins => saves a lot of time
- Similar as adding any other site under our network achieve the hierarchy by fixing URLs in
wp_X_options
table,/prague/dance/cz
is our new URL. - After site is created and functional, go to
NetworkAdmin -> Sites -> All sites
, clickEdit
on the new language mutation site, and under theMultilingualPress
tab, fill in the 'Flag image URL' input. Using external URL such as http://img.freeflagicons.com/thumb/speech_bubble_icon/czech_republic/czech_republic_64.png should suffice for now. - As a last step, the
Language Switcher
widget needs to be added to Header area underAppearance -> Widgets
(see below & make it similar for all Header areas). DONE!! - Here is another step-by-step guide from Slack that you may find useful, it has some more information too ;)