- Download https://github.com/wp-mirrors/wp-i18n-tools
- Extract contents to /wp-includes
- Run following in command line to generate .pot file (Fix paths as needed)
php wp-includes/makepot.php wp-plugin wp-content/plugins/YOURPLUGIN/ wp-content/plugins/YOURPLUGIN/YOURPLUGINSLANGFOLDER/YOURPLUGIN.pot
php wp-includes/makepot.php wp-theme wp-content/themes/YOURTHEME/ wp-content/themes/YOURTHEME/YOURTHEMESLANGFOLDER/YOURTHEME.pot