Originally written
July 16, 2019
July 16, 2019

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.

Themes and plugins that provide translations

If a theme or a plugin that you are using is translated to your site’s languages, your Cart and a Checkout page should also display correctly. If this is not the case you should use the following steps.

  1. Go to the WPML -> Theme and plugins localization page and in the Localization options section select the Translate themes and plugins using WPML’s String Translation and always load .mo files as backup option.
  2.  Check the wp-content/languages/plugins/ folder to see if you have localization file (.mo and .po) for WooCommerce in your secondary language. Names of the files should be woocommerce-[locale-code].po and woocommerce-[locale-code].mo.
  3. 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 them using the Import/export .po section of the WPML -> String Translation page.

Translating Cart and Checkout page on your own

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:

  1. Go to the WPML – > String translation page.
  2. In the Select strings within domain dropdown, choose the domain for 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 right occurrence of the string.
  3. In the Search for field enter the string that you want to find and click the Search button.
  4. Expand the translation for the string, enter the missing translation, mark Translation is complete checkbox and click the Save button.
  5. If a string is already translated by theme authors or if the translation is imported it will be marked with yellow color. In this example, Spanish translation already exists but you can change it if needed.