leglesslizard
3/12/2018 - 11:27 AM

How to translate waitlist

How to translate waitlist without using a translator plugin

Translation

To translate the plugin you can use the supplied woocommerce-waitlist.pot file which can be found in the plugin directory /assets/languages and a program called Poedit (the free version works just fine).

The steps below should be all that are required:

  • Within Poedit, Click File > New from POT/PO file… and choose the plugins .pot file
  • Choose your translation language
  • Translate each required string using either the bottom boxes to enter your own translations or the recommendations in the sidebar provided by Poedit
  • Once you've finished click File > Save, change the filename to reflect the plugin and add the country code at the end of the filename, this is important! (e.g. woocommerce-waitlist-fr_FR.po for French)
  • If a .mo file is not automatically generated when the .po file is saved you can generate one by clicking File > Compile to MO. This should be named the same as your .po file (woocommerce-waitlist-fr_FR.mo)
  • Save both of these files into the directory wp-content/languages/plugins/ (if this directory does not exist you can create it (You will need to do this in your servers file manager or over FTP)
  • Change the site language in the WordPress admin by going to Settings and your translations should appear
  • If they don't appear immediately try clearing your cache and hard refreshing the page (ctrl+shit+r)