WordPress.org

Ready to get started?Download WordPress

Forums

Attachments
[resolved] translations are not working (2 posts)

  1. Daniele Raimondi
    Member
    Posted 2 years ago #

    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/

  2. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.