WooCommerce Search & Filter plugin is ready for use in any languages. The languages/ folder contains WCSEARCH-en_US.po file, which is used for translations. The process of translation is quite similar to modifying texts with PoEdit application. The only difference is that before translation you need to duplicate WCSEARCH-en_US.po file and give a name to new file according to following rules:
- On WordPress Settings -> General page select needed site language.
- Make a copy of the WCSEARCH-en_US.po file and rename it to WCSEARCH-WP_LOCALE.po according to your WP Locale
- Example for the Portuguese Brazil language: WCSEARCH-pt_BR.po
— pt_BR – is the WP Locale, it means Portuguese (Brazil) language
— you’ll have to fill in with your own language, the list of WordPress locales here - Download and install Poedit.
- Open with Poedit WCSEARCH-pt_BR.po file.
- Now you can find and modify any needed words and texts.
- Every time you save translated WCSEARCH-WP_LOCALE.po file, PoEdit automatically generates WCSEARCH-WP_LOCALE.mo file, which is the one WordPress uses and basically the only one you need to upload to your site.
- Upload generated WCSEARCH-WP_LOCALE.mo file and saved WCSEARCH-WP_LOCALE.po file to your site into wp-content/languages/plugins/ folder. You can use FTP client or FTP manager of your hosting.