Multisite Language Switcher (original) (raw)

A simple, powerful, and user-friendly plugin that adds multilingual support to your WordPress multisite installation, whether using multiple subdomains or folders. Multisite Language Switcher allows you to effortlessly manage translations for posts, pages, custom post types, categories, tags, and custom taxonomies.

The plugin uses flag icons from FamFamFam. Thanks to Mark James for his great work. In addition, I would like to thank Jürgen Mayer for creating the plugin’s banner.

Please, don’t forget to rate this plugin! 🙂

Translators

Thanks to all the translators for their great work.

You can translate this plugin on translate.wordpress.org, or if you prefer and have created your language pack, or have an update of an existing one, you can send me your Gettext PO and MO so that I can
bundle it into the Multisite Language Switcher. You can download the latest POT file
from here.

This plugin provides 1 block.

Now you can:

Review the Multisite Language Switcher Website for more information.

I have no language options in the General settings.

You might read first WordPress in your language.

But I’d like the interface to stay in English.

You can choose the language of the dashboard in the settings of your user profile.

Do I need a multisite?

It’s up to you – of course. But yes, if you want to use the Multisite Language Switcher.

How can I automatically redirect users based on the browser language?

The Multisite Language Switcher does not redirect the users automatically. I’m not sure if the plugin should do that. You might check out this jQuery plugin or this approach with a theme
if you need such functionality.

Please check the add-on MslsMenu out.

I want to have the languages in an HTML select. How can I do that?

Please check the add-on MslsSelect out.

Can I call a function to get the language of the page the user is viewing?

Yes, you should use the WordPress API function get_locale() but you could also use code like that

use lloc\Msls\MslsBlogCollection;

$blog     = MslsBlogCollection::instance()->get_current_blog(); <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>l</mi><mi>a</mi><mi>n</mi><mi>g</mi><mi>u</mi><mi>a</mi><mi>g</mi><mi>e</mi><mo>=</mo></mrow><annotation encoding="application/x-tex">language = </annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.01968em;">l</span><span class="mord mathnormal">an</span><span class="mord mathnormal">gu</span><span class="mord mathnormal">a</span><span class="mord mathnormal" style="margin-right:0.03588em;">g</span><span class="mord mathnormal">e</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span></span></span></span>blog->get_language();

If I have another question, where can I ask?

Please visit the MSLS website or use the WordPress support forum for more information.

At first I had some trouble with the plugin. But now – I wouldn’t want to be without it! I really like the plugin’s functional simplicity! Thanks, Dennis, for this wonderful plugin!

I think we still need to wait some time before WordPress core implementation for Multilingual sites. See WordPress roadmap I’ve tried WPML in the past but did not really like it. Haven’t tried Polylang plugin yet In my opinion the best setup for multilingual sites is a wordpress multisite setup. Then this great Multisite Language Switcher plugin is the way to go. Simply loving it and also top support deserves a 5 * star rating please keep up the good work you’re doing! greetingsBecki

I always use this plugin when creating multi-language multisite wordpress sites. Easy to set up and very useful. Top-rate support too

There is a learning curve and i think someone should make a tutorial how to implement the language switcher and menu and how to work with it. But after all a great plugin.

This is a fantastic plugin: it does exactly what promises to do, it’s not bloated with extra features and it’s been around for a long time. I can’t thank the plugin author enough for developing this plugin, maintaining it for years and having the patience to deal with occasional 1-star reviews from people who can’t be bothered to read the docs.

I’m not keen to write reviews, but in this case I was so overwhelmed of this plugin’s simple features and ease of use that I had to. This is by far THE easiest multisite multilanguage plugin I ever tried. Over the years I tested several multilingual approachs (plugins for standalone WP sites, multisite “premium” plugins, country domains, etc.). But this here exceeds all my expectactions for its simplicity. Multilanguage should not be an option in WordPress, but part of the core, out of the box. This plugin deserves a 10 of 10. Two thumbs way up! Thank you for this peace of art.

Read all 97 reviews

“Multisite Language Switcher” is open source software. The following people have contributed to this plugin.

Contributors