Language Pack not working
now, you can change the language in the back-end in the general configuration page, at the bottom of the page
now, you can change the language in the back-end in the general configuration page, at the bottom of the page
GUID to related post not in current language
I have to use this PHP function to get the list of files contained in the language directory of the plugin : scandir($plg_dir.”/language”);
Thx to the comments I found the plugin: Debug MO Translations It returns a list of all searched and loaded MO files. The source code is provided on github: https://github.com/closemarketing/debug-mo-translations
You should edit the theme and add the use of translation API https://codex.wordpress.org/I18n_for_WordPress_Developers at the appropriate places.
Use plugin_locale filter: apply_filters( ‘plugin_locale’, $locale, $domain ); Change locale like this: $my_plugin_domain = ‘my_plugin_domain_name’; $override_locale=”es-ES”; add_filter(‘plugin_locale’, function ($locale, $domain) use ($my_plugin_domain, $override_locale) { if($domain == $my_plugin_domain) { $locale = $override_locale; } return $locale; }, 10, 2);
Looking at the source, there is no programmatic way to accomplish that. There is only one location where $_GET[‘rtl’] is referenced and its value is used directly (i.e., it is not used to set the value of another variable used in the plugin). The function you would want to modify if you want the same … Read more
You are now only testing for the theme location not to be empty. This means that every non empty menu location will see the language button attached. So, in stead of testing for emptyness you should be testing for a specific location. The name of that location depends on your theme, but suppose it’s called … Read more
I recently developed a trilingual website, and used a plugin named Polylang. It will work perfect for your wanted result, even though it may require some time to set up and get going.
use wpml plugin and change page or post content. https://wordpress.org/plugins/wpml-to-multilingualpress/