Quantcast
Channel: My Monkey Do
Viewing all articles
Browse latest Browse all 13

Easy WordPress Localization

$
0
0

If you want to localize a plugin or theme or even just change some wording around, or if you are starting from scratch the easiest thing to do is install the Codestyle Localization plugin.

If starting from scratch, just  make sure your plugin or theme loads the file using

 <?php load_plugin_textdomain( $&;domain, $&;abs_rel_path, $&;plugin_rel_path ) ?> 

Once that line of code is in the plugin or theme go to Tools->Localization and you should see your plugin or theme listed.

Find your plugin or theme and click on the Add New Language buttton.

Click Rescan.  Have it scan the files.

Click Edit

Click on generate mo-file.

Then you’re all done.


Viewing all articles
Browse latest Browse all 13

Trending Articles