Learn by watching a brand new screencast on YouTube!
White Labeling the Connector plugin
Build your brand awareness with our Asura Connector plugin. The most requested feature by the Agency which part of Asura’s beta user.
This documentation will walk you through white labeling the Connector plugin.
Requirement
Downloading the Connector plugin repository
- Download the plugin files from https://wordpress.org/plugins/asura-connector
- Extract the zip archive file
Open your directory on the terminal.
cd /path/to/wp-content/plugins/connector
Creating Localization files
The Connector plugin white labeling is utilizing WordPress’s plugin translation feature.
Creating POT (Portable Object Template) files
to create the POT files, you need to run
wp i18n make-pot . languages/asura-connector-en_US.pot
where the wp
is the wp-cli. If you didn’t install the wp-cli or just downloading the binary file, you may need to run the below command instead:
php wp i18n make-pot . languages/asura-connector-en_US.pot
those commands will output POT (Portable Object Template) files
White labeling
open the new POT generated file with your favorite text editor.
to white labeling, you need to insert a text on msgstr ""
line.
E.g.:
// from this
msgid "Asura Connector"
msgstr ""
// to
msgid "Asura Connector"
msgstr "Your Company Name Tool"
// from this
msgid "thelostasura"
msgstr ""
// to
msgid "thelostasura"
msgstr "Your Company/Agency Name"
// from this
msgid "Add Provider to access design set that managed using thelostasura.com plugin"
msgstr ""
// to
msgid "Add Provider to access design set that managed using thelostasura.com plugin"
msgstr "Add Provider to access design set that you purchased from My Company Name"
Creating PO (Portable Object) files
to create the PO files, you need to run
php -r "copy('languages/asura-connector-en_US.pot', 'languages/asura-connector-en_US.po');"
In the languages/
directory, you will find the new asura-connector-en_US.po
file based on the POT file. They are identical at moment.
Then you need to run
wp i18n make-json languages/ --pretty-print --purge
where the wp
is the wp-cli. If you didn’t install the wp-cli or just downloading the binary file, you may need to run the below command instead:
php wp i18n make-json languages/ --pretty-print --purge
Creating MO (Machine Object) files
Now we need to compile our translation files into MO files.
You need to run the below command
msgfmt -o languages/asura-connector-en_US.mo languages/asura-connector-en_US.pot
In the languages/
directory, you will find the new asura-connector-en_US.mo
file compiled from the POT file.
🎉🎉 Congratulation, your new white label plugin is ready to deliver to your customer.