[Plugin: Attachments] translations are not working
-
I’m on the last wp version (3.4.1) with the last version of your plugin (1.2.6.1) and translations are not working: I always see the plugin in english.
The function load_plugin_textdomain needs a relative path to the language folder, not an absolute one.And while
plugin_dir_path( __FILE__ )
returns an absolute path (with the trailing slash!),
dirname( plugin_basename( __FILE__ )
returns the relative path from plugin folder (without trailing slash).So I’ve changed line 36 of attachments.php from
plugin_dir_path( __FILE__ )to
dirname( plugin_basename( __FILE__ ) )Hope you will patch this in the next release.
Thanks for your plugin!
The topic ‘[Plugin: Attachments] translations are not working’ is closed to new replies.