1. Home
  2. Knowledge Base
  3. WooCommerce Product Filters
  4. FAQ

Translating WooCommerce Product Filters into other languages

WooCommerce Product Filters works with modern WordPress multilingual plugins such as Weglot and TranslatePress. You can also create your own translations.

Creating your own translations

You may wish to translate the plugin yourself. To do this you will need to follow the steps below.

The PO and MO file

In order to translate the plugin into your chosen language, you will need to create two files:

  1. A .po file, e.g. woocommerce-product-filters-it_IT.po
  2. A .mo file, e.g. woocommerce-product-filters-it_IT.mo

The .po file contains the actual translations. The .mo file is a machine-readable version, and is normally generated automatically from the .po file. (If you use software such as PoEdit, this will happen automatically each time you save your translations.)

The .pot file for the plugin is provided in the plugin's /languages folder. You use this file to translate the plugin into your chosen language. We would recommend PoEdit for making your translation, but you can of course use an alternate method.

Once you have made your translation, save the file as woocommerce-product-filters-<locale>.po, replacing <locale> as appropriate. For example, the locale for Italian is it_IT, so the file name would be: woocommerce-product-filters-it_IT.po.

Your .mo file should have the same format, e.g. woocommerce-product-filters-it_IT.mo.

Uploading the files

Upload the files to this location:

<your website>/wp-content/languages/plugins/

Contributing your translation to the plugin

If you create your own translation for WooCommerce Product Filters, then we would love to add it to the plugin!

Please contact us and attach your files so we can add them to a future release.

Does WooCommerce Product Filters work with WPML?

In general, you can use WooCommerce Product Filters with WPML - for example, using its string translation feature. However, there is one limitation that we are aware of, in which certain filters (such as attribute filters) may not show the filter options in all languages.

This is a complex issue to fix and will require quite a lot of redevelopment work in the plugin. As a result, we are tracking the demand for full WPML integration. Please submit a feature request if you would like this - this will help us to consider whether to add it in future. In the meantime, we apologise for the inconvenience and would encourage you to use WooCommerce Product Filters with a different translation plugin such as Weglot or TranslatePress if you experience this problem.

Does the plugin support RTL/right-to-left languages?

Yes, if you select a RTL language such as Hebrew under Settings → General then the text direction should go from right to left automatically throughout your website, including in the product filters.

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.