MultiSafepay / woocommerce

MultiSafepay WooCommerce plugin
https://docs.multisafepay.com/docs/woocommerce
10 stars 2 forks source link

[PLGWOOS-394] translation does not work properly with qTranslate-XT #9

Closed nielsgeurs closed 4 years ago

nielsgeurs commented 4 years ago

this does the job ...

function multisafepay_load_plugin_textdomain() {
    $domain = ‘multisafepay’;
    $locale = apply_filters( ‘plugin_locale’, get_locale(), $domain );
    load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . ‘/’ . $domain . ‘-’ . $locale . ‘.mo’ );
    load_plugin_textdomain( $domain, FALSE, basename( dirname( __FILE__ ) ) . ‘/languages/’ );
}
add_action( ‘init’, ‘multisafepay_load_plugin_textdomain’ );
Jasper-MultiSafepay commented 4 years ago

@nielsgeurs This issue should be resolved in version 3.5.2 of our plugin. Please reopen if you are still experiencing this issue.