• Resolved aarcos

    (@aarcos)


    The translation files are not loading in 3.6.1

    Line 199 of wp-content/plugins/edit-author-slug/edit-author-slug.php
    // Localize
    load_plugin_textdomain( ‘edit-author-slug’, false, dirname( $this->plugin_dir ) . ‘/languages/’ );

    Attempts to load wp-content/pluginswp-content/plugins/languages/edit-author-slug-xx_xx.mo

    Change to
    // Localize
    load_plugin_textdomain( ‘edit-author-slug’, false, ‘edit-author-slug/languages/’ );

    At least in 3.6.1 works

    http://wordpress.org/plugins/edit-author-slug/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brandon Allen

    (@thebrandonallen)

    Good catch. My fix will be to check in both the ‘edit-author-slug/languages/’ folder and the ‘wp-content/languages/edit-author-slug/’ folder. One thing to note, if you’re adding a translation file that’s not shipped with the plugin, you’ll want to add your translation file to ‘wp-content/languages/edit-author-slug/’, as subsequent plugin updates will wipe out your custom translation file.

    Plugin Author Brandon Allen

    (@thebrandonallen)

    This should not be fixed in 0.9.6.

    Plugin Author Brandon Allen

    (@thebrandonallen)

    This should not be fixed in 0.9.6.

    Ha! Just realized that I said that it was *not* fixed in 0.9.6. It was indeed fixed. For future reference, the plugin now looks in wp-content/plugins/edit-author-slug/languages then in wp-content/languages/plugins. If you are using a custom language file (ie – one not shipped with edit-author-slug), then you should place your .mo file in wp-content/languages/plugins.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translation files not loading, and suggested patch code’ is closed to new replies.