Support » Fixing WordPress » Plugin Translation Localization

  • Josh

    (@josh401)


    Moderator and Editor Customizer

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    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

    Josh

    (@josh401)

    Moderator and Editor Customizer

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin Translation Localization’ is closed to new replies.