How can I translate the Plugin?

The Ultimate Membership Pro plugin is translation ready.

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

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.

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