Pippins Plugins
  • Email
  • Facebook
  • Feedburner
  • Github
  • Google
  • Twitter
  • Vimeo
  • Youtube
  • Rss
  • About
  • News
  • Join the Site
    • Member Benefits
    • Member Plugins
    • Email Notifications
  • Plugin Store
    • Affiliate Area
    • Checkout
  • Plugins
    • Plugin Portfolio
      • Plugin Portfolio – List View
    • Free
    • Premium
    • Member Plugins
    • Coding Standards
    • Get Plugin Support
  • Tutorials
    • Series
      • Plugin Development 101
      • Creating a User Follow System Plugin
      • Customizing Restrict Content Pro
      • Displaying Content with Easy Content Types
      • Writing Your First WordPress Plugins, Basic to Advanced
      • Working with Widgets
      • User Submitted Image Galleries
      • Plugin Thoughts
      • Integrating Stripe.com with WordPress
      • WordPress Rewrite API
    • Member Exclusive
      • Free Members
      • Subscriber Only
    • Difficulty
      • Beginner
      • Intermediate
      • Advanced
    • Action and Filter Hooks
    • Ajax
    • Custom Post Types
    • External APIs
    • Short Codes
    • Taxonomies
    • Video Tutorials
    • Widget Tutorials
    • WordPress Admin / Dashboard
    • Working with jQuery
    • WordPress Database
    • Writing Plugins
    • Tag Index
  • Reviews
  • Support Forum
  • Contact
    • Support the Site
    • Request Code Review
    • Plugin Support

Localizing and Translating WordPress Plugins

Posted on October 17, 2011 by Pippin in Advanced, Free Members, Member Restricted, Tutorials, Video Tutorials, WordPress Admin / Dashboard, Writing Plugins 14 Comments
Home» Tutorials » Advanced » Localizing and Translating WordPress Plugins
Tweet
Love It - 4

In order to be kind to our friends that do not speak the language we have written our plugin in, it is always a good idea to fully localize your WordPress plugin. This means make it “ready for translation”. If you are one of those that is blessed with the fluency of more than one language, then you can also translate it, but for the majority of us, localizing will be enough. Making your plugin ready for translation is actually a pretty simple task, but, unfortunately, has very, very little good documentation on how it is done. So I’d like to take you in depth on the topic and actually demonstrate how it is done.

Photo by elenathewise: http://photodune.net/item/hands-globe/190070



For this tutorial, I’m going to start from the beginning and actually show you how to setup your plugin for translation (this means localizing it). I’m going to do this by translating part of one of my plugins, Full Screen Background Images Pro. To help you out, I’m going to provide basic instructions after the video in text form, but the majority of explanations will take place in the video.

How Translation Works

While it may sound very difficult and time consuming, making a plugin ready for translation (and even translating it) does not take long, nor is it difficult. It works by storing all of your plugin text into a “catalog”, which acts as a reference and has all of the text translations stored in it. When WordPress is set to display in a language other than the default (English), the catalog is used to look up the appropriate translations for each piece of text. The translation is then displayed instead of the original text.

You must be logged in to view the rest of this content. Register or login from the sidebar.

Tweet Follow @pippinsplugins
international, localization, localize, translating, translation

14 comments on “Localizing and Translating WordPress Plugins”

  1. WPexplorer says:
    October 17, 2011 at 2:02 pm

    Great tutorial!

    Reply
  2. Jason says:
    October 17, 2011 at 2:03 pm

    You are AWESOME! I love your tutorials and plugins. Can’t wait to see what’s next!

    Reply
    • Pippin says:
      October 17, 2011 at 3:12 pm

      @Jason – Thanks! Keep your eyes open because there’s something pretty cool coming in a few days :)

  3. Jason says:
    October 17, 2011 at 3:23 pm

    plugin or tutorial?

    Speaking of tutorials. . .I know you were working on adding an update system to your CodeCanyon plugins. . .did you get one up and running?

    That would be an AWESOME tutorial!

    Reply
    • Pippin says:
      October 17, 2011 at 3:25 pm

      @Jason – There are a few new plugins coming really soon. One should be out later today, and several more over the next two weeks.

      I did get the update system running. It’s currently active in Easy Content Types and Full Screen Background Images Pro. I do like the idea of doing a tutorial on it, so I probably will next week :)

  4. Jason says:
    October 17, 2011 at 3:29 pm

    That would be so awesome!

    Did you end up using this: http://codecanyon.net/item/wordpress-plugin-update/270593

    Or did you create something on your own?

    Reply
    • Pippin says:
      October 17, 2011 at 5:44 pm

      No, I used one that was originally built for themes. You can read about it: http://codecanyon.net/forums/thread/a-wordpress-plugin-update-notifier-script/50850

  5. Jason says:
    October 17, 2011 at 5:47 pm

    Nice! I’ll check it out.

    Thanks!

    Reply
  6. FxBe says:
    October 25, 2011 at 5:10 am

    Great tutorial, thanks for all the developpers not doing it yet. Internationalization should be also a priority when creating a plugin or a theme. You’re giving an oportunity do do it the right way

    Reply
    • Pippin says:
      October 25, 2011 at 9:20 am

      Yes, it should definitely be a priority. Glad you liked it.

  7. J. Pippin says:
    December 22, 2011 at 1:04 am

    Just started development this year and was a little baffled about how to do this since diving into WP dev. Thanks for the great tutorial. Will be sure to link to it when I get my personal site up and runnning. Nice name btw.

    Reply
    • Pippin says:
      December 22, 2011 at 9:16 am

      Nice name yourself ;)

  8. Ben says:
    March 25, 2013 at 10:57 pm

    Hey Pippin nice video my friend! We are in the process of translating our premium plugins and I have to say your tutorial literally saved me hours of research. Thank you!

    Reply
    • Pippin says:
      March 26, 2013 at 9:56 am

      Great!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Login

Lost your password?

Please enter your username or e-mail address. You will receive a new password via e-mail.

  • Facebook Become a Fan Like

  • Twitter Subscribe on Twitter Follow

  • YouTube Follow my Videos Subscribe

  • RSS Feed Subscribe with RSS Subscribe

Easy Digital Downloads

Most Loved

  • Love It Pro for WordPress
  • Write a “Love It” Plugin with Ajax to Let Users Love Their Favorite Posts / Pages
  • Simple Notices Pro Plugin for WordPress
  • User Bookmarks for WordPress
  • Front End Registration and Login Forms Plugin

Similar Plugins and Posts

  • Introduction to the gettext Filter in WordPress

Latest Premium Content

  • Plugin Development 101 – Introduction to Adding Dashboard Menus
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • User Follow System – Part 5
  • Plugin Development 101 – Intro to Short Codes
  • Plugin Development 101 – Registering a Custom Post Type
  • Plugin Development 101 – Intro to Actions

Latest Tutorials

  • Test Your Plugins with RTL (0)

    Right-To-Left languages are those that...

  • Submitting Your First Pull Request to a WordPress Plugin on Github (5)

    Github is an extremely popular tool for managing WordPress plugins, and one...

  • Plugin Development 101 – Introduction to Adding Dashboard Menus (1)

    Adding new menus, both top level and sub level, to the WordPress Dashboard is a really common task for plugins...

Enter your email to receive automated updates when new posts are published

Latest Tweets

  • @dechowmedia Thanks :)
    May 24, 2013
  • @dechowmedia The "hierarchical" checkbox determs tag vs category
    May 24, 2013
  • @GaryJ both phone and iPad apps are awesome @SDavisMedia
    May 24, 2013

Topics

wp_enqueue_script add_shortcode hook the_content shortcodes meta box Tom McFarlin Sugar Event Calendar featured register_setting add_options_page attachments get_user_meta mail chimp attachment plugin image forms short codes Related posts login do_action authors bbpress apply_filters recent posts comments post types short code taxonomies custom post type images gallery Ajax Stripe jquery taxonomy users widgets add_filter add_action easy content types widget restrict content pro easy digital downloads

Weekly Newsletter

Useful Links

  • Join the Site
  • Plugin Store
  • Affiliate Area
  • Tag Index
  • Support the Site
  • Suggest a Tutorial
  • Random Post
  • Contact

Monthly Archives

(c) 2013 Pippin's Plugins