How can I translate the Plugin?

Extend Ultimate Membership Pro system with extra features and functionality. Check for available Extensions here

The Ultimate Membership Pro plugin is  coming by default with English interface but fully translation ready. You may translate the entire Front-end and Back-end section based on your needs.

Part of existent strings and custom messages are directly manageable from UMP Dashboard interface and not via language files.  So look into UMP Dashboard first for all available options.

You can add an additional language file for your language set on WP.

Make sure that the plugin folder of the  translation target is on your local machine before starting the translation.

Copy and rename the file with the relevant WordPress locale. For example, if you want to translate the file to French, rename the file to fr_FR.po. In the case of a plugin, rename it to ihc-fr_FR.po, where ihc is the name of the text domain that the plugin loads.

For French: ihc-fr_FR.mo & ihc-fr_FR.po

1. Using PoEdit standalone app

You can use the free PoEdit app to create and manage language files based on the default files available from the Ultimate Membership Pro plugin.

  1. Open the po translation file in Poedit, click update to update the translation
    source.
  2. Open the catalog properties from Catalog > Properties and select the language,
    press ok.
  3. Now you can go through the source text and enter your translations.
  4. Click validate then save the translations, the po file will be updated and an mo file
    will be generated.
  5. Upload the new or updated language files to your WordPress installation folder indeed-membership-pro/languages/.
  6. Set your WordPress language by using a plugin such as WordPress localize, WPML, or manually update the WP_LANG constant in your WordPress config.php file.

2. Using LocoTranslate plugin

https://wordpress.org/plugins/loco-translate/

You can easily manage translations over Ultimate Membership Pro directly from WordPress Dashboard.

  1. Install Loco Translate free plugin
  2. Change default Loco Translate Settings by increasing “Skip PHP files larger than“.
  3. Open Loco Translate -> Plugins section and search for Ultimate Membership Pro
  4. Edit ihc.pot Template file and proceed a “Sync” action in order to be sure that all available strings are included. You must “Save” changes before leave current file setup.
  5. Create or open your language file and use “Sync” button to have all available strings inside.
  6. Translate all available strings

There are many guides on how to add a new translation file to any WP Plugin or Theme:

https://make.wordpress.org/polyglots/handbook/

http://themekraft.com/add-your-own-language-files-to-wordpress-plugins-with-poedit/

http://wordpress.stackexchange.com/questions/57219/how-to-translate-a-plugin-via-po-mo

If an important update was released and texts were added, you will need to update your language file.

The plugin’s custom name used in the translation file name is: ihc

Related Articles