Translating WooCommerce Checkout and Cart pages is a bit different than translating the rest of WooCommerce content. The theme and plugins in your site often provide these translations but in some cases you need to take some additional steps.
Themes and Plugins that Provide Translations
Some themes and plugins provide their own translations via localization files (MO and PO files). If the theme or plugin provides MO and PO files that match your site’s languages, your cart and checkout pages should automatically appear translated on the front-end of your site.
If the translations of your cart and checkout pages aren’t automatically loaded to your site, you may be missing the localization files. To find out, follow these steps:
- Check the wp-content/languages/plugins/ folder to see if you have MO and PO for WooCommerce in your secondary language. Names of the files should be woocommerce-[locale-code].po and woocommerce-[locale-code].mo.
- If those files are not there, go to WPML → Languages, click Add / Remove languages button first and then and click the Save button. There is no need to add or remove any language. Once done, check if the localization file has been automatically downloaded to wp-content/languages/plugins/ folder.
- If the files are there but still aren’t translated on the front-end, go to WPML → String Translation and import the secondary language PO file using the Import/export .po section.
If you want to edit the translations, go to WPML → Theme and plugin localization and scan your theme or the relevant plugin that provides these files. You can then edit the translations using String Translation.
Translating the Cart and Checkout Pages On Your Own
If a theme or a plugin that you are using for your online store does not provide localization files, you can translate strings by yourself.
- Go to the WPML → String Translation page.
- In the Select strings within domain dropdown, choose the domain for the theme or plugin the string comes from. This is a very important step since different themes or plugins can use the same text (string) in different places. You have to translate the correct occurrence of the string.
- In the Search for field enter the text of the string that you want to find and click the Search button.
- Click the plus icon to enter the missing translation, and click outside the window to save. If a string is already translated by theme authors or if the translation is imported it will show up automatically. In the example below, a French translation already exists, but you can change it if needed.
If your theme or plugin provides localization files, but your string still shows up untranslated, click the Can’t find the strings you’re looking to translate? dropdown menu. In the Some of the translations have changed section, choose your theme or plugin and scan the translation files. Then, search for the string again.