Опис
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! 🙂
Перекладачі
Дякуємо всім перекладачам за їхню чудову роботу.
- Німецька (de_DE) – Dennis Ploetner
- Італійська (it_IT) – Antonella Cucinelli
- Голландська (nl_NL) – Alexandra Kleijn
- Бразильська Португальська (pt_BR) – Coolweb
- Іспанська (es_ES) – Andreas Breitschopp
- Французька (fr_FR) – Andreas Breitschopp
- Російська (ru_RU) – Andrey Vystavkin
- Українська (uk) – Victor Melnichenko
- Хорватська (hr_HR) – Brankec69
- Румунська (ro_RO) – Armand K
- Польська (pl_PL) – Kamil Frejlich
- Литовська (lt_LT) – Ovidijus Pukys
- Каталонська (ca_ES) – Joan López
- Чеська (cs_CZ) – Rastr
- Угорська (hu_HU) – RobiG
- Грузинська (ka_GE) – Jas Saran
- Грецька (el) – Christoforos Aivazidis
- Сербська (sr_RS) – Web Hosting Hub
- Турецька (tr) – Alican Cakil
- Вірменська (hy_AM) – Yeghishe Nersisyan
- Бенгальська (bn_BD) – Md. Nazmul Huda
- Японська (ja) – ThemeBoy
- Шведська (sv_SE) – Erik Bernskiold
- Китайська традиційна, спрощена (zh_CN & zh_TW) – DrBenson
- Арабська (ar) – Mohamed Elwan
- Норвезька (nb_NO) – Ibrahim Qraiqe
- Болгарська (bg_BG) – Vencislav Raev
- Іспанська мексиканська (es_MX) – Fernando Mata
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.
Скріншоти
Блоки
Цей плагін надає 1 блок.
- Multisite Language Switcher Review the settings for the Multisite Language Switcher plugin, as the block utilizes the API function `the_msls()` for its output.
Встановлення
- Use the WordPress admin to install the plugin from there or
- Download the plugin and uncompress it with your preferred unzip programme and copy the entire directory in the 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 blog administrator for each particular blog).
- You need to activate the plugin once in each blog, by setting the configuration in
Settings
->Multisite Language Switcher
Now you can:
- Connect your translated pages and posts in
Posts
->Edit
orPage
->Edit
- Connect your translated categories and tags in
Posts
->Categories
orPost
->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
- you can 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.
Часті питання
-
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 thatuse lloc\Msls\MslsBlogCollection; $blog = MslsBlogCollection::instance()->get_current_blog(); $language = $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.
Відгуки
Учасники та розробники
“Multisite Language Switcher” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:
Учасники“Multisite Language Switcher” було перекладено на 16 локалізацій. Дякуємо перекладачам за їх роботу.
Перекладіть “Multisite Language Switcher” на вашу мову.
Цікавитесь розробкою?
Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.
Журнал змін
This project has a separate Changelog.