Multisite Language Switcher

Descrizione

A simple, powerful and easy to use plugin that will add multilingual support to a WordPress multisite
installation, i.e. multiple subdomains or folders (if you need to set up multiple sites across multiple domains, you’ll also want to use the WordPress MU
Domain Mapping
plugin as well – as long as the domains are all hosted on the same server.).

The Multisite Language Switcher enables you to manage translations of 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! 🙂

Traduttori

Thanks to all translators for their great work.

If you have created your own 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.

Screenshot

  • Plugin configuration
  • Elenco degli articoli
  • Modifica articolo
  • widget

Blocchi

Questo plugin fornisce 1 blocco.

lloc/msls-widget-block
Multisite Language Switcher

Installazione

  • Download the plugin and uncompress it with your preferred unzip programme
  • Copy the entire directory in your plugin directory of your WordPress blog (/wp-content/plugins)
  • Activate the plugin in your plugin administration page (by the network administrator on all the blogs or by the root blog administrator for each particular blog).
  • You need to activate the plugin once in each blog, set the configuration in Settings -> Multisite Language Switcher

Now you can:

  • connect your translated pages and posts in Posts -> Edit or Page -> Edit
  • connect your translated categories and tags in Posts -> Categories or Post -> Tags
  • connect your Custom Post Types and Custom Taxonomies across languages
  • use the widget, the Gutenberg block, the shortcode [sc_msls] and/or a content_filter which displays a hint to the user if a translation is available
  • find also a shortcode for the widget [sc_msls_widget]
  • optionally you can place the code <?php if ( function_exists( 'the_msls' ) ) the_msls(); ?> directly in your theme files

Review the Multisite Language Switcher Website for more information.

FAQ

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 really 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.

How can I add the Multisite Language Switcher to the nav-menu of my blog?

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.

I don’t want to upload the same media files for every site. What can I do?

You could try the plugin Network Shared Media. It adds a new tab to the “Add Media” window, allowing you to access the media files in the other sites in your multisite.

Is there a function I can call to get the language of the page the user is currently 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();
$language = $blog->get_language();

How can I move from WPML to MSLS?

There is a plugin which comes handy in here.

Recensioni

13 Agosto 2020
Literally the only tool, that allows for implementing proper hreflangs in all posts, pages, tags and categories. Language selector block and menu from the other addons are great as well. The only thing that seems not to be doing anything is "available translations hints" option, but still it's a 5 star plugin.
10 Agosto 2020
Connects my 2 sites perfectly and quickly. It was super easy to install and the font type and font colour and flags can be all customised. The support I got was also amazing.
12 Aprile 2020
Works perfectly and does everything it is supposed to do.
22 Gennaio 2020
I use this plugin on two multi-sites and it's perfectly compatible with the Gutenberg. I can't thank you enough! Hope the developers will always keep it updated! Best regards.
Leggi tutte le recensioni di 83

Contributi e sviluppo

“Multisite Language Switcher” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

“Multisite Language Switcher” è stato tradotto in 11 lingue. Grazie ai traduttori per i loro contributi.

Traduci “Multisite Language Switcher” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)

There is a separate Changelog for this project available.