Translate with WPML

Country Based Restrictions for WooCommerce(CBR) is fully compatible with WPML, allowing you to easily translate all CBR-related strings into your desired languages. With the WPML update, you can now translate strings individually or in bulk, using the enhanced translation interface.

Translating CBR Using WPML

WPML’s String Translation and Translation Management tools make it simple to localize CBR’s tracking information for your multilingual store. Below are step-by-step instructions on how to translate CBR strings both individually and in bulk.

Bulk Translation via WPML Translation Management

To translate multiple CBR strings at once:

  1. Log in to your WordPress dashboard.
  2. Navigate to WPML > Translation Management.
  3. Scroll down to the Other texts (Strings) section.
  4. In the Filter by field, search for CBR strings using any of the following key names:
    • admin_texts_wpcbr_default_message
    • admin_texts_wpcbr_cart_message
    • admin_texts_cbr_cat_default_message
  5. Once the relevant strings are displayed, you can translate them in bulk:
    • Select the checkboxes for all the strings you want to translate.
    • Use the dropdown at the bottom of the list to choose Translate in bulk.
    • Enter the translations for each string on the following screen and click Save.
blank

Single String Translation via WPML String Translation

To translate a single string from CBR:

  1. Go to WPML > String Translation.
  2. In the Filter by dropdown, choose Domains and select one of the following:
    • admin_texts_wpcbr_default_message
    • admin_texts_wpcbr_cart_message
    • admin_texts_cbr_cat_default_message
  3. You can also directly search for a specific string by entering the string or part of the string in the Search box. For example, searching for “cbr” under admin_texts_wpcbr_default_message will display the string associated with the tracking form button.
  4. To translate the string, click the plus (+) OR Edit icon next to the language you want to translate into.
  5. Enter the translation in the provided field and click Save.
blank

Sync Your Translations

Once you’ve translated the strings, ensure they are synced across your website. WPML should automatically apply the translations, but if needed, you can go to WPML > Translation Management and confirm that the translations are live on your site.

Free

Download