- In WP install directory, run
svn co http://develop.svn.wordpress.org/trunk/tools/
which will add a tools directory. - Run
ln -s . src
- Run `php tools/i18n/makepot.php wp-plugin wp-content/plugins/{plugin_name}
- A file named {plugin_name}.pot will be generated in the WP install directory.
- Move to /wp-content/plugins/{plugin_name}/languages