Dennis Ploetner
Forum Replies Created
-
Forum: Reviews
In reply to: [Multisite Language Switcher] Disaster, why?Version 2.0.3 will look for the keys “us” or “en” and copy the values to “en_US” before it starts to use them. So there will be nothing to do.
Forum: Plugins
In reply to: [Multisite Language Switcher] Replacement for msls_head() in version 2.0I hopefully find a solution to this problem. Version 2.0.3 will be available very soon.
It is already available at Github: https://github.com/lloc/Multisite-Language-Switcher
Forum: Plugins
In reply to: [Multisite Language Switcher] Update from MSLS 1.1 to 2.0.2 broken?Hey, Arno … I send version 2.0.3 to the Github repository. It will copy the keys “en” or “us” to “en_US” in case these values are present.
This should resolve the issue. I will test it and publish it soon in the SVN at WordPress.org.
Let me know!
You can thank me with a 5 star rating. 😉
Forum: Reviews
In reply to: [Multisite Language Switcher] Disaster, why?Forum: Reviews
In reply to: [Multisite Language Switcher] Disaster, why?There is nothing destroyed because the saved relationships are still there. You can just wait some hours and the next fix will be online.
I think I don’t have to comment the rest.
Forum: Plugins
In reply to: [Multisite Language Switcher] Update from MSLS 1.1 to 2.0.2 broken?Thanks for the analysis, Arno … I will check that. I’m sure there is a problem with en_US right now – and that can be fixed today. I’m quite sure that MSLS saved de_DE but I will certainly control it too.
There are at least two options because the code is outdated:
1. You could use the addon MslsMenu -> https://wordpress.org/plugins/mslsmenu/
2. or rewrite the code a bit:add_filter( 'wp_nav_menu_items', 'zw3_lang_switcher_menu_item', 10, 2 ); function zw3_lang_switcher_menu_item( $items, $args ) { if ( class_exists( lloc\Msls\MslsOutput::class ) && 'Primary' == $args->menu->name ) { $obj = lloc\Msls\MslsOutput::init(); $arr = $obj->get( 1 ); if ( ! empty( $arr ) ) { $items .= '<li class="menu-item lang-switcher menu-item-type-custom menu-item-object-custom">' . implode( '</li><li class="menu-item menu-item-type-custom menu-item-object-custom">', $arr ) . '</li>'; } } return $items; }Please, write me a mail (in German): re@lloc.de
Just to be sure: This a multisite (configured with subdirectories) with two sites – one English and one German – and not to single sites, right?
I guess you have still an unsupported version of PHP installed. Please, update your PHP version at least to 5.6.
Forum: Plugins
In reply to: [Multisite Language Switcher] Der MLS benötigt die Installation einer ….Das ist sozusagen der erste Schritt. Danach muss man im WordPress Admin unter Werkzeuge -> Netzwerk-Einstellungen den nächsten Schritt machen und sich den Rest der Konfiguration ausgeben lassen.
Ich hab nur eine englischsprachige Anleitung hier: https://codex.wordpress.org/Create_A_Network
Forum: Plugins
In reply to: [Multisite Language Switcher] Your Changelog Link in the description is wrongThanks a lot!
This is kind of strange but let me understand what’s going on:
– Is that in every site the case? Like A does not see B and B does not see A?
– Do you use custom code for filters or action provided by MSLS?
– Does return back to 1.0.8 (the latest stable here) or 1.2 (at Github https://github.com/lloc/Multisite-Language-Switcher/releases) resolve that problem?Forum: Plugins
In reply to: [Multisite Language Switcher] Menu entry issueDo you have set it in the menu section of the German page?