2017 © Pedro Peláez
 

library potter

Auto-create .pot translation templates for WordPress plugins

image

peregrinus/potter

Auto-create .pot translation templates for WordPress plugins

  • Saturday, June 2, 2018
  • by potofcoffee
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

potter

Auto-create .pot translation templates for WordPress plugins, (*1)

Setup

This is assumes that you already have a WordPress plugin using Composer. In this case, you'll just have to type the following command in your plugin's root directory., (*2)

composer require peregrinus/potter

Composer will install the potter script into the vendor/peregrinus/potter folder. Unfortunately, at this moment, composer still fails to assign the correct permissions on Linux, so you'll have to do a second command:, (*3)

chmod +x vendor/peregrinus/potter/potter

Usage

On Linux, execute the following command in the root directory of your plugin:, (*4)

vendor/peregrinus/potter/potter

On windows, you would use the following command:, (*5)

php vendor\peregrinus\potter\potter

Potter will figure out the correct name and path for your .pot file from the plugin's metadata, most notably "Domain Path" and "Text Domain". It will then scan all php files in your plugin's folder and all subfolders and extract all relevant texts., (*6)

The Versions

02/06 2018

dev-master

9999999-dev

Auto-create .pot translation templates for WordPress plugins

  Sources   Download

GPL-3.0+

The Requires

  • php ^7.0