Support » Plugin: Attachments » [Plugin: Attachments] translations are not working

  • Resolved Mad Max

    (@mad_max)


    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!

    http://wordpress.org/extend/plugins/attachments/

Viewing 1 replies (of 1 total)
  • Plugin Author Jonathan Christopher

    (@jchristopher)

    Hi Daniele, I’m sorry about that! I’ve just updated the plugin to version 3.0 (WordPress 3.5+ only) and would love to get this issue resolved.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Attachments] translations are not working’ is closed to new replies.