16 - Translations
You can translate product fields, labels, drop-down items and fields.
Note: before starting, you must install a multi-language plugin. For example, this plugin.
To translate a language just create or edit a file (e.g: "en_US.php", "fr_FR.php", "it_IT.php") in:
- Wordpress: “/wp-content/uploads/woo-price-calculator/translations”
- Joomla: “/media/com_hikapricecalculator/translations”
You'll find an existing example like below::
For example "en_US.php":
For example "it_IT.php":
You can also translate text on the website front-end, for example the Edit Cart Button, the text regarding a Not set field, see the table below:
Translate Key | Default Value (en_US) | Description | Keywords |
---|---|---|---|
element.not_set | Not set | The text displayed when a field is empty in Cart, Checkout and Order Details | None |
wpc.cart.edit | Edit | Text of the edit button in the cart | None |
wpc.cart.price | Price | Price label displayed on the edit modal in the cart | None |
wpc.cart.cancel | Cancel | Label of the "Cancel" button on the edit modal in the cart | None |
wpc.cart.modal.title | Edit of %product_title% | Label displayed on top of the edit modal in the cart | %product_title% = The name of the product |
ecommerce.shop.choose_an_option | Choose an option | Shop button label used to redirect the user to the product page | None |