Contents
On this page

Multilingual - Plugixa Boat Rental

Plugixa Boat Rental can be translated into any language, and works on sites that run several languages with WPML or Polylang. Everything on this page is in the free plugin.

Translating the plugin

Every word the plugin writes, on the public pages and in the admin app, is translatable. The text domain is plugixa-boat-rental, and the plugin ships a translation template, languages/plugixa-boat-rental.pot.

To translate it, use the tool you already use for other plugins, such as Loco Translate or Poedit, and create a translation for your language from that template. The admin app reads the same translation as the rest of the plugin, so there is nothing separate to translate for it.

The plugin writes English where you have not translated a string.

Your own text

Text you type yourself, such as a boat’s name, a location’s description or an email, is stored as you typed it. How it is translated depends on where it lives.

Boat categories

Category names are registered as strings with WPML and Polylang, under the context plugixa-boat-rental, each named boat_type_ followed by the category’s slug, for example boat_type_jet_ski. Translate them on WPML’s String Translation screen or Polylang’s Strings translations screen. They are registered when you open the WordPress admin, and again whenever a category is added or renamed.

The eight starter categories are a special case. While a starter name is exactly as it was created, such as “Jet ski”, it is shown through the plugin’s own translation, so it is already in your language. Once you rename it, it is your own text and is translated through WPML or Polylang. See Boats.

Settings texts (WPML)

The plugin’s wpml-config.xml registers these settings with WPML as admin texts, so they can be translated in String Translation:

Setting Where it is set
Instructions for the customer (pay on arrival) Settings -> Payments
The licence note Settings -> General -> Licence note
The customer’s confirmation email, subject and message Settings -> Notifications
The new booking notice to you, subject and message Settings -> Notifications

See Emails and alerts and Payments.

Shortcode attributes (WPML)

wpml-config.xml also registers the attributes of [plugixa_boat_rental] (form, location and boat among them) for translation. With WPML you can then give each language its own booking form: build one form per language, each with its own slug, and translate the form attribute on the translated pages. For example the English page holds [plugixa_boat_rental form="book-en"] and the French page [plugixa_boat_rental form="book-fr"].

With Polylang, or without a translation plugin, do the same by putting the right form’s shortcode on each language’s page by hand.

A form’s own texts, such as the labels of the fields you add, are stored as you typed them. One form per language is the way to ask your own questions in each language. See Booking forms.

Right-to-left languages

The public pages, the booking form among them, are laid out for right-to-left languages such as Arabic and Hebrew when the page is right to left. The arrows on the Continue and Back buttons, the step bar, the select boxes and the side column of the Split design turn around with the text.

With Pro, the dock app PRO also follows the site’s language direction.

The date picker

The calendar on the booking form follows the language of the page, for the languages the bundled date picker has a translation for. In any other language, and in English, it shows in English.

Currency and formats per marina

Language does not change money or dates. Prices are in each location’s currency, or the site’s (see Locations), and dates and times follow the formats in Settings -> General.

Quick Links

Share