Localising Clean And Simple Contact Form Plugin

In this post I explain how to translate the Clean and Simple Contact Form into your own language.

First check that your language isn’t already there.

This is a list of the currently available translations:

  • Danish (da_DK)
  • German (de_DE )
  • Spanish (es_ES)
  • Finish (fi)
  • French (fr_FR)
  • Italian (it_IT)
  • Polish (pl_PL)
  • Portugese (European) (pt_PT)
  • Swedish (sv_SE)
  • Armenian (hy_AM)
  • Dutch (nl_NL)
  • Slovak (sk_SK)
  • Catalan (ca)
  • Turkish (tr_TR)
  • Japanese (ja)
  • Russian (ru_RU)
  • Estonian (et)
  • Greek (el) and (el_GR)
  • Arabic (ar)
  • Norwegian Bokmål (nb_NO)
  • Brazilian Portugese (pt_BR)
  • Hebrew (he_IL)
  • Indonesian (id_ID)
  • Slovenian (sl_SI)
  • Serbo-Croatian (sr_RS) (translated by Borisa Djuraskovic)

These language files will be installed automatically for you into the /languages folder when you download the plugin so there is no need to do any setting up.

If your language is in the list but it is not being used make sure that you are using WordPress in your own language. Check your WordPress wp-config.php file.

define('WPLANG', 'en_GB');

In place of  ‘en_GB’ you should see your own country code. For more information on using WordPress in your own language go here.

Note: Since WP 4.0 WPLANG has been deprecated use this in wp-config.php instead:


If your language does not appear in the list and you would like to contribute by creating one please use the following directions:

Step One

Locate the translation template ‘pot’ file for this plugin here:  /wp-content/plugins/clean-and-simple-contact-form-by-meg-nicholas/languages/cleanandsimple.pot

Step Two

Download a translation tool from http://www.poedit.net/

Step Three

Use the tool to translate each line of text into your own language. When you are finished the tool will produce two files for you:

cleanandsimple-[your country code].po
cleanandsimple-[your country code].mo
Step Four
Copy the above files back to this folder: /wp-content/plugins/clean-and-simple-contact-form-by-meg-nicholas/languages
The translation should now work. If it doesn’t, check you have the same country code in your wp-config.php as mentioned earlier.
Please can you contact me to let me know you have created a new translation file so I can include it in the next version.


2 thoughts on “Localising Clean And Simple Contact Form Plugin”

  1. I have to say the plugin honor its name, nice work man. So far the only trouble I got with the plugin is the translation system: there are (at least) three texts that doesn’t translate the first html p cscfForm, cscfMessageNotSent and cscfMessageSent html classes. It happens that you retrieve the text from the DB and them use an isset to verify. If the text doesn’t exists you return the –() function, so the text never translates because always is retrieved from de DB. I had to return the __() function and forget about the DB retrival in order to get the title translated, at least in es_ES (btw the translation is full of errors, gladly to help if you want me to do it). class.cscf_pluginsettings: methods SentMessageHeading, SentMessageBody, Message. Thanks for your hard work!

    • Hi Aitor,

      When the plugin is first installed the text used by the plugin will be retrieved from the translation file and then some of it is then saved to the database. The user can then change this text via the settings screen.

      If you want start from scratch uninstall the plugin and the database settings will then be deleted forcing the translation file to be accessed instead when it is reinstalled.

      You are very welcome to edit the spanish translation file and I will include your version in the installation.


Comments are closed.