Plugin translation (localization)

Democracy Poll

Steps to translate into any language:

  1. Install Poedit
  2. Launch the program and go to the menu: File > NEW form POT/PO file...
  3. In the dialog window that opens, go to the plugin folder lang, switch to displaying PO files (they are not visible by default), and select the file ru_RU.po. Click Open in the dialog window.
  4. Select the language you will be translating into and click OK. Now, just in case, update all translated strings: in the Poedit toolbar, click the Update button.
  5. Translate all strings and click the Save button. And save the translated file in the plugin folder lang.

    plugin name should match the locale of your translation. See the list of locales here: http://svn.automattic.com/wordpress-i18n/.

  6. Translation is ready! The translation should enable automatically.

translation

When updating the plugin, if there were changes and non-translated strings appeared, you need to open Poedit again, open the required .po file in it, and click "Update". All non-translated strings will appear in the translation file.