Resolved
Reported for: WPML String Translation 2.6.1
Overview of the issue
This issue happens when you have a shop powered by the Easy Digital Downloads plugin and your default WordPress language (the one set on the Settings -> General page) was set to any other language than English.
For example, your site’s default language is French and you then install WPML. And on the Cart page, you see the “Your cart is empty” text always displayed in French.
This happens for every string generated by an Easy Digital Downloads shortcode.
Workaround
This issue will be resolved in the future WPML release and in the meantime, you can use the following workaround.
Please, create a full backup of your site before proceeding with the following steps:
– open a code editor
– Go to the ‘sitepress-multilingual-cms’ folder
– find the ‘sitepress.php’ and scroll to the end of that file
– add the following snippet at the end of the file:
add_action( 'activated_plugin', 'wpml_core_loads_first' );
function wpml_core_loads_first() {
$path = str_replace( WP_PLUGIN_DIR . '/', '', __FILE__ );
$plugins = get_option( 'active_plugins' );
if ( $plugins && $key = array_search( $path, $plugins, true ) ) {
array_splice( $plugins, $key, 1 );
array_unshift( $plugins, $path );
update_option( 'active_plugins', $plugins );
}
}
Now everything works.
We are incyclemarketing, need technical support for plugin translation.
Please using the contact page to explain details.
https://wpml.org/home/contact-us/
Most likely you need to use this section:
https://wpml.org/home/contact-us/contact-form/