WordPress.org

Ready to get started?Download WordPress

Forums

Plugin Translation Localization (3 posts)

  1. Hello,

    I have my plugin successfully setup for translation. And have had a few generous individuals translate the plugin. Everything is working great.

    Now, I would like to include other php files used by the plugin to be translatable.

    Here is the function I'm using in my main.php file:

    function jwl_ultimate_tinymce() {
     load_plugin_textdomain('jwl-ultimate-tinymce', false, basename( dirname( __FILE__ ) ) . '/languages' );
    }
    add_action( 'init', 'jwl_ultimate_tinymce' );

    My question; Do I need to include that in each file which will have translatable strings? Or do I need to include each file which will have a translatable string in my main.php file?

    Thank you.

  2. If you don't get an answer here you might want to post on the hackers' mailing list: http://codex.wordpress.org/Mailing_Lists#Hackers

  3. Oh Wow. I wasn't even aware of that link. It looks WONDERFUL!!

    Thank you very much. I'll check it out now.

    And I'm going to hold off marking this as resolved at this point... just in case someone else comes along :)

    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.