Categories

Featured templates

CherryFramework 4. How to add localization for a plugin

Guillaume Dumas November 18, 2015
Rating: 5.0/5. From 2 votes.
Please wait...

This tutorial is going to show you how to add a localization for plugins using a WordPress CherryFramework 4 template.

CherryFramework 4. How to add localization for a plugin

In order to add a localization for a plugin, you need to perform the following:

  1. Go to http://poedit.net/download and download Poedit for your system (Windows/MAC). Poedit is a free, open source and cross-platform gettext catalog (.po file) editor to aid in the process of language localization:

    CherryFramework_4._How_to_add_a_localization_for_a_plugin-1

  2. Install it on your computer: double click the file and follow the steps it suggests. At the end of the installation make sure the option Open Poedit After Installation is checked and click Finish:

    CherryFramework_4._How_to_add_a_localization_for_a_plugin-2

  3. Go to the /wp-content/plugins directory. There you’ll see plugins folders:

    CherryFramework_4._How_to_add_a_localization_for_a_plugin-3

  4. Each of the plugins folders has a languages folder, which contains a blank POT file that can be used to create a localization for the plugin. Some plugins already have localizations for several languages:

    CherryFramework_4._How_to_add_a_localization_for_a_plugin-4

  5. In order to add a new localization, you need to download the POT file to your local system and open it in Poedit by selecting in the main menu File -> New from POT/PO file…. When you do that, you’ll get to a dialogue box that says Translation Language:

    CherryFramework_4._How_to_add_a_localization_for_a_plugin-5

    There you need to select the language you are going to add.

  6. You need to make a translation for each string by writing it in the Translation field. Also, you can translate only those of them that need to be rewritten:

    CherryFramework_4._How_to_add_a_localization_for_a_plugin-6

  7. After all is done, go to File / Save or press Ctrl + S and save the localization. You’ll get two files with the extensions *.po and *.mo. You need to name them plugin_name-ln_LN, where ln_LN is the locale international code of the language and plugin_name is the name of the plugin you’re making translations for.

  8. The PO/MO localization files that you created should be uploaded to the wp-content/languages/plugins folder. If the folder doesn’t exist, please create it.

  9. The last step is to go to Dashboard – Settings – General and switch the Site Language:

    CherryFramework_4._How_to_add_a_localization_for_a_plugin-7

Feel free to check the detailed video tutorial below:

CherryFramework 4. How to add localization for a plugin

Wordpress Site Templates
This entry was posted in Monstroid Tutorials, WordPress Tutorials and tagged CherryFramework4, localization, plugin. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket