Translate Rental Products

You can check the guide below to find out how to translate Rental Products for WooCommerce using different methods.

Automatically translate from English to other languages

↑ Back to top

If you wish to automatically translate the text in this extension from English to other languages, there are various plugins available that offer automatic translation that you can use.

Manually translate from English to a different language

↑ Back to top

If you wish to translate Rental Products for WooCommerce manually, you can do this by modifying the text settings shown within the Rentals > Settings > Labels page – these are the most commonly used text references.

A translation plugin can be used instead for any strings that aren’t included on the Lages page. The Loco Translate plugin is the current recommendation at the time of writing.

Manually translate from English to multiple languages with language selection

↑ Back to top

If you wish to translate Rental Products for WooCommerce manually, and you have a multilingual store where a user can select a language to show manually added translations, you will need to use a translation plugin. The translation plugin used will need to have functionality to not only translate the text included within extensions/plugins but also WordPress options stored in the database. 

That’s because the most commonly used text references in this extension are stored as settings (WordPress options stored in the database), and therefore, the translation plugin used needs to be able to translate these, too. The option names for the text have the wcrp_rental_products_text_ prefix.

Note: there may be other text-based settings (e.g. rental information title) with only the wcrp_rental_products_ prefix you wish to alter too. Some translation plugins allow you to modify any visible text, which effectively achieves the same result without translating the options directly.

TranslatePress is the current recommendation at the time of writing.

Rental form and availability checker calendar language

↑ Back to top

The calendar displayed in the rental form and availability checker uses the Litepicker library. The day/days text within this can be translated using the methods above, however, all the other references used within it, such as month names, are set through a language setting of the library. 

By default, the language will be as per your WordPress language setting. In the scenario where your store has multiple languages with language selection, you may wish to use the wcrp_rental_products_litepicker_language filter hook to return a different ISO language string as per the user language selection.

Please read before translating

↑ Back to top

Some translation plugins create multiple product instances by cloning or duplicating products to allow you to translate for each language (sometimes in the background without you knowing). In doing this, they then attempt to sync price, stock, etc, between the instances. 

However, due to the complex nature of rental price and stock data, using translation plugins that do this are extremely likely to give unexpected results or not work at all.  We recommend against using plugins that may be utilizing this kind of functionality.

More information

↑ Back to top

Do you have more questions? You can click here to return to the Rental Products for WooCommerce’s Getting Started table of contents.

You didn’t find what you were looking for? We’d love to hear from you and help you with any questions you have.