Hi,
Thanks 🙂
Hard to say, could be your setup, or the file, or something else..
Could you contact me through my website http://www.jeroensormani.com/contact/ so we can get in touch?
Thanks!
Jeroen
[SOLVED]
1 – Changing the language files for: wooCommerce-advanced-free-shipping-xx_XX.po and mo.
2 – Inclusion of the line of code in the file: wooCommerce-advanced-free-shipping.php.
public function __construct() {
// Load plugin text domain
add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
e
/**
* Load the plugin text domain for translation.
*
* @return void
*/
public function load_plugin_textdomain() {
$locale = apply_filters( 'plugin_locale', get_locale(), 'woocommerce-advanced-free-shipping' );
load_textdomain( 'woocommerce-advanced-free-shipping', trailingslashit( WP_LANG_DIR ) . 'woocommerce-advanced-free-shipping-' . $locale . '.mo' );
load_plugin_textdomain( 'woocommerce-advanced-free-shipping', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
3 – Replacing textdomain ‘WAFS’, ‘WAPL’ and ‘WooCommerce’ for WooCommerce-advanced-free-shipping.
Tests and was running perfectly.
After completion of the translation for ‘pt_BR’, if you want I can send the files.
To finalize the file includes: conditions-Table.php the code below, this way it is possible to leave the stub method in a method or schedule.
$method_conditions = get_posts( array( 'posts_per_page' => '-1', 'post_status' => 'any', 'post_type' => 'wafs' ) );
Thanks for the support.
Hi Edison,
Ah, yes I forgot that textdomains weren’t loading yet in this version.
It was on the planning for coming version (which I’m working on right now).
If you can contact me through my website to send me the files, that would be awesome!
Thanks!
Jeroen