Plugin Translation
-
Hello Tijmen,
Again thanks for the help you give on this support forum, this is really appreciated. I had to make a couple of changes for the plugin to work with Polylang (alternative to WPML) and I thought that it might interest you or someone else here. For some reason Polylang was not picking up the translated .mo file so I had modify the way you load plugin text domain to load it during init.
Here is my code (in
wp-store-locator.php
):function __construct() { add_action('init', array($this, 'load_plugin_textdomain')); ... } function load_plugin_textdomain() { load_plugin_textdomain('wpsl', FALSE, dirname(plugin_basename(__FILE__)).'/languages/'); }
That way everything is working and I can even hook into
load_textdomain()
.
Anyway, thanks for this awesome plugin!!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Plugin Translation’ is closed to new replies.