Translation problems because the text domain is different from the slug
-
Hello.
There are problems loading the translation generated by?translate.www.ads-software.com?(try with the Dutch language which is currently 100% complete) because the text domain is different from the slug.
In?this file?and in the?.POT file?the text domain is?‘tpebl’, but the translation that is generated by?translate.www.ads-software.com?is based on the plugin slug?‘the-plus-addons-for-elementor-page-builder’.
If you want to leave them different, but still want to load the translations generated by translate.www.ads-software.com, you need to make a change like this:
$locale = get_user_locale();
$locale = apply_filters( 'plugin_locale', $locale, 'tpebl' ); // phpcs:ignore
unload_textdomain( 'tpebl' );
load_textdomain( 'tpebl', WP_LANG_DIR . '/plugins/the-plus-addons-for-elementor-page-builder-' . $locale . '.mo' );before the line:
load_plugin_textdomain( 'tpebl', false, basename( dirname( __FILE__ ) ) . '/lang' );
in this file.
Thanks.
- You must be logged in to reply to this topic.