Can I Translate Restrict Content Pro Into My Language?

Restrict Content Pro can be easily translated into any language and even includes several non-English translations. If your language is not included in the list below, or your language has an incomplete translation, follow the instructions below to create and/or update a translation so that Restrict Content Pro may be used wholly in your desired language.

At this time, Restrict Content Pro includes translations for the following languages:

  • German
  • Spanish
  • Persian
  • French
  • Hebrew
  • Italian
  • Dutch
  • Polish
  • Portuguese (Portugal)

Note: Some translations may be incomplete.

Creating New Translation

New translations can be easily created for Restrict Content Pro at any time by writing a translation file. There are numerous ways to create a translation file, but the easiest is through a free application called POEdit. If you have a tool you prefer to use, use that, otherwise download POEdit for free and open it.

POEdit will ask you whether you wish to edit an existing translation or create a new one.

Click Create new translation. This will open a file select dialog. Navigate to where you have downloaded Restrict Content Pro and select the rcp.pot file inside of the languages folder.

You will now be asked which language you are creating a translation for. Choose your language:

You will now be shown a complete list of all text strings in Restrict Content Pro that need to be translated. Click on a string (source text) and then enter your translation in the box at the bottom. On the right side of the screen, POEdit will provide suggested translations that may be helpful.

Where To Put Your Translation Files

Once you have translated all text strings, save the file. This will automatically generate two files:

  • rcp-{locale}.po
  • rcp-{locale}.mo

Restrict Content Pro supports two different locations for translation files.

  • wp-content/languages/rcp/ (these are not updated or overwritten when you install Restrict Content Pro updates. Use this if you do not plan to submit your translation to us for distribution inside Restrict Content Pro)
  • wp-content/plugins/restrict-content-pro/languages/ (these are updated and overwritten every time you install a Restrict Content Pro update. Only use this option if you're submitting your translation files for distribution inside Restrict Content Pro - see below)

Place these two files inside of one of the above folders and Restrict Content Pro will automatically detect them and display the plugin in the appropriate language based on your WordPress settings.

Editing An Existing Translation

If Restrict Content Pro already has a translation for your language but it is incomplete or needs improvements, you may update it at any time using the same steps as above with just a few minor differences.

  1. Open POEdit
  2. Click Edit a Translation
  3. Select the translation file you wish to edit
  4. Make your changes
  5. Save the file

Submitting Your Translations For Inclusion

If you have translated Restrict Content Pro into another language or made improvements to an existing translation, we would love for you to send us the translation files so we can include them in the plugin. Simply send us an email from the support page and attach the translation files.

Have more questions? Submit a request