Quantcast
Viewing all articles
Browse latest Browse all 119528

estepix on "[Plugin: Tweet Blender] I translated the file *.pot and now???"

Hi, to see the plugin translated you need to save the file in .mo format (easy with POEdit) and paste it in:
/wp-content/plugins/tweet-blender/lang/

With a filename like:
tweetblender-nl_NL.mo
tweetblender-ru_RU.mo

that is:
tweetblender-<your-locale>.mo

The only problem with this approach is that you will lose your translation when upgrading the plugin, to avoid that, I recommend the following method instead:
1. Add this code to your functions.php:

function custom_plugin_language_dir() {
    load_plugin_textdomain('tweetblender', false, '../languages/');
}
add_action('after_setup_theme', 'custom_plugin_language_dir');

2. Save your .mo file to /wp-content/languages/

There you go! your translation will be update-resilient!


Viewing all articles
Browse latest Browse all 119528

Trending Articles