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 do some additional steps.
If a theme or a plugin that you are using is translated to your site’s languages, your cart and checkout page should also display correctly. If this is not the case, it may be because you are missing the localization files.
- Check the wp-content/languages/plugins/ folder to see if you have localization files (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 you have the MO and PO files but the strings are still not translated on the front-end, take your secondary language PO file and import it using the Import/export .po section of the WPML → String Translation page.
If a theme or a plugin that you are using for your webshop does not have a translation for languages that you use, you can translate strings by yourself. You should do the following:
- Go to the WPML → String Translation page.
- In the Select strings within domain dropdown, choose the domain for the theme or plugin that is not showing correct translation. 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 string that you want to find and click the Search button.
- Expand the translation for the string, enter the missing translation, mark Translation is complete checkbox and click the Save button.
- If a string is already translated by theme authors or if the translation is imported it will be marked with yellow color. In the example below, a Spanish translation already exists, but you can change it if needed.