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:

$locale='en_GB';

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.

 

Discover how to guarantee your website brings in leads and sales every single day.

Download your free checklist '10 Key Elements of a Website That Delivers Leads and Sales'.

Add your name and email below for immediate access.

By signing up today you will be subscribed to our mailing list. You may unsubscribe at any time.