Create a POT file for themes and plugins

~$ cd /var/www/your-site-folder/wp-content/ ~$ svn export http://i18n.svn.wordpress.org/tools/trunk/ makepot ~$ cd plugins/your-plugin-folder/languages ~$ php /var/www/your-site-folder/wp-content/makepot/makepot.php wp-plugin ../ With the last option you need to specify if you are creating a POT for a plugin or for a theme (for themes, use “wp-theme” instead of “wp-plugin”) and the last command line parameter is the plugin/theme folder (in this case ../ is pointing […]

GIT – merge selective files

To selectively merge files from one branch into another branch, run where: branchX is the branch you want to merge from into the current branch The –no-commit option will stage the files that have been merged by Git without actually committing them. This will give you the opportunity to modify the merged files however you want to and then commit […]