Wrong translation code?
-
I dont know how others got the translations working, but mine was correct until I modified the code.
It tried to find the translation source in the wrong directory, so I replaced flexible-posts-widget.php:399
load_plugin_textdomain( $this->get_widget_slug(), false, plugin_dir_path( __FILE__ ) . 'languages/' );
To
load_plugin_textdomain( $this->get_widget_text_domain(), false, basename(dirname(__FILE__)) . '/languages/' );
This made the translations work.
Sorry if It was something wrong in my version.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Wrong translation code?’ is closed to new replies.