How to change any text in MemberPress

Video Overview:

Warning: If using Stripe Checkout, please do not translate the string "Stripe" as it will break Stripe Checkout. This is a known issue we are working to resolve. 

Written Step-by-Step Instructions:

Step 1 - Install and activate Loco Translate plugin

In your dashboard, head to Plugins -> Add New. Type "loco translate" in the search box.

Install and activate the plugin.

Step 2 - Prepare for translating MemberPress

Once you get back to the Plugins section of your Dashboard, you'll notice that every plugin, including MemberPress, now has an additional field - Translate.

Click Translate next to the MemberPress plugin and you'll be presented with the new screen.

As you could see, MemberPress comes with the complete translation to the Spanish language.

You can click "New language" link and add any language you want, but in order for that language to show up on the frontend, it must match the language selected in Settings -> General section.

However, we'll show you how you can use Loco Translate to change any English text to some other English text.

Make sure that the English (United States) corresponds to the language selected in the backend and that the location corresponds to one in the screenshot. Then click "Start translating" button.

You should get this screen:

Step 3 - Start translating MemberPress

Once you get the above screen, you're ready to start translating MemberPress.

Simply type what you'd want to start with, in the "Filter translations" box. Let's say that you want to change "coupon" into "voucher". You'll get the results like this:

Click on the line you want to change, and type new text in the translation box. Please note that if the original string contains some special characters, in this case, it is '%s' that it must be preserved in the translated text. It doesn't need to be at the same place, especially if you're translating MemberPress to some other language, but it must be preserved, or you might face some missing text and other errors caused by that.

You'll notice that the string that you've translated/changed will get a star symbol next to it.

When you finish changing all the strings you wanted to change/translate, click the "Save" button.

That's it, you should be able to see the change in the frontend or backend, depending upon where that string is located.

You can also search for UI and it will show you the list of all user interface strings.

Step 4 - What to do when MemberPress gets updated

Any new update might bring some new strings or some strings from the previous version could be removed so you'll need to resync your translation with the current  memberpress.pot file. You can easily achieve that by clicking the Sync button and wait for it to finish. The appropriate message will be displayed as well.

That's it. Happy translating/changing strings and have fun!

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.