Translations in wrong language
-
Hi,
I’m using WP Multilang to translate my WooCommerce store and I noticed that all the strings of the EU-VAT-Assistant-plugin are displayed in the site’s default language, no matter what language the current page is in.
After some debugging I noticed that the EU-VAT-Assistant-plugin uses gettext functions (like __() ) before the language is initialized by WP Multilang, which does this at action ‘init’, priority 0.
If the EU-VAT-Assistant-plugin would handle it’s initializing at the ‘init’-action, the problem is solved. Like this:
At the end of plugin-main.php:
add_action( 'init', function() { $GLOBALS[WC_Aelia_EU_VAT_Assistant::$plugin_slug] = WC_Aelia_EU_VAT_Assistant::factory(); });
Can this please be implemented in the next release?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Translations in wrong language’ is closed to new replies.