Customize plugin labels and messages or translate them to other languages.
WP Full Pay displays labels and messages in US English by default.
You might need to translate the labels for many reasons, just to name a few:
There are two ways to change plugin labels:
This article describes how you can translate plugin labels by creating a resource file.
You need to complete the following steps to translate plugin text:
You can find the template resource file called wp-full-stripe.pot
in:
languages/
folder of the plugin .zip file; orwp-content/plugins/wp-full-stripe/languages/
folder of your Wordpress installation.Copy and rename the file to wp-full-stripe-[language]_[country].po
, where:
You can edit the .po file in a text editor, or you can use the free version of POEdit for a better user experience.
The .po file is composed of lines grouped together, each group representing the source text and translated text on a separate line. The source text is identified by “msgid”, and the translated text is identified by “msgstr”.
As an example, imagine the following .po file snippet that we’d like to translate to Italian:
This is how the translation would look like:
If you’d like to translate only a few labels, you can delete the rest of the file. For the deleted labels, the plugin will display their default US English counterparts.
You have to convert the plain text .po file to a binary .mo file which will be used by Wordpress.
You can use the po2mo online tool to convert.
Make sure to correct the file name after conversion (po2mo spoils the file name).
Alternatively, you can use the msgfmt command line tool (part of the gettext distribution) to do the conversion:
The last step is to copy the wp-full-stripe-[language]_[country].mo
file to the
wp-content/plugins/wp-full-stripe/languages/
folder of your Wordpress installation.
You’d create the following .po file with the translations. Please note that all other labels are removed since we don’t need to translate them:
You can use the po2mo online tool to convert.
The next step is to copy the wp-full-stripe-en_GB.mo
file to the
wp-content/plugins/wp-full-stripe/languages/
folder of your Wordpress installation.
Make sure that site language is set to “English (UK)”. You can verify it on the “Settings -> General” page in WP admin:
Our support team is happy to help you.
Contact support
Feature requests are always welcome!
We consider each feature request carefully, and examine how it fits the roadmap for the plugin.