Translating a template using po/mo

You can easily translate a template into other languages by following the instructions:

  1. Download and install poEdit
  2. Go to wp-content/plugins/totalpoll/templates/TEMPLATE/languages/ where TEMPLATE is your template you want to translate and make a copy of the file with the name totalpoll.po within the same folder.
  3. Add the suffix -LANGCODE_COUNTRYCODE to the new file (i.e, the new file will be totalpoll-LANGCODE_COUNTRYCODE.po, Where
    1. LANGCODE is the ISO 639-1 form of the language you’re translating to, You can also browse the full list of supported languages.
    2. COUNTRYCODE is the country, You can see the full list here.


Now open the new file with poEdit, And translate the strings there. Once you finish translating, Save the changes or press Ctrl + S for windows or CMD + S for mac, And poEdit will take care of creating a customized po and a generated mo files.

Note: The given instructions is to translate the sentences of a specific template, If you’re interested into translating the plugin itself or an extension, You can follow the same steps, But the file path will differ.

If you want to help us translating TotalPoll into a new language, Please let us know, we’ll be happy to assist you and awarding you for such initiative.


Last updated on February 14, 2016