How to translate Smart Coupons

Smart Coupons provide a powerful, “all-in-one” solution for gift certificates, store credits, discount coupons, and vouchers extending the core functionality of WooCommerce coupons.

This doc article explains how you can translate texts of the Smart Coupons plugin.

It is possible to translate Smart Coupons in your language. There are various methods to translate a plugin. If those methods are not working, you can try following steps, as these steps are tested:

  1. Check wp-config.php file, whether WP_LANG_DIR is already defined. If not, add following line in your wp-config.php file
    define ('WP_LANG_DIR', '/home/<user>/public_html/<wordpress_directory>/wp-content/languages');
  2. Now go to this path: /home/<user>/public_html/<wordpress_directory>/wp-content/languages
  3. Create a new directory & name it as woocommerce-smart-coupons
  4. Install & activate a free WordPress plugin: Loco Translate.
  5. Navigate to Loco Translate > Manage translations from sidebar admin menu
  6. Locate WooCommerce Smart Coupons under Plugins
  7. Check if a language file for your language already exists. If it exists, click to edit OR if it doesn’t exist, click New language to add the translation for your language
  8. Select your language from the dropdown menu & click Start translating
  9. You’ll see 2 column: left containing texts from the plugin. Select one of them & add translated text for this from below. Repeat the steps for other texts also
  10. Once done, Save it using Save button. If sufficient permissions for saving are not there, download PO & MO file
  11. Upload these files to /home/<user>/public_html/<wordpress_directory>/wp-content/languages/woocommerce-smart-coupons
  12. Make sure these files have proper read permission otherwise, texts will not be translated
  13. You can also place these PO & MO file inside languages directory of the plugin, but it is not recommended, as you’ll lose it when you’ll update the plugin.

Now Smart Coupons should display your texts.

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top