Skip to content
Resrv
Esc
↑↓navigate↵open⌘Jpreview
On this page

Languages

Most of the texts in Resrv are read from the addon’s language file. This page explains how to change them or add new translations.

Publishing the language file

If you didn’t publish them during installation, you first need to publish the language files:

php artisan vendor:publish --tag=resrv-language

You should now see the language file in lang/vendor/statamic-resrv/en/frontend.php.

You can edit this file in order the change the wording used in most areas of Resrv’s frontend.

Adding new translations

When using multisite, you can simply create a new folder with the handle of your other sites in lang/vendor/statamic-resrv/. Then, simply copy frontend.php to the new folder and translate the strings.

Updated keys in v6

“Property” keys now read “Rate”

Rates replace v5’s advanced availability. The old property-themed keys still exist, but their English values now say “rate”:

Key v5 value v6 value
selectProperty Select property Select rate
property Property Rate
multipleAvailable Multiple properties available. Multiple rates available.
pleaseSelectProperty Please select a property… Please select a rate from the search form to check prices and continue.
pleaseSelectPropertyToBook Please select a property to book Please select a rate to book

A v5 translation file keeps working, but the rate selector now uses the new selectRate key and the cart results use pleaseSelectRateToBook. Add the keys below to your translations.

New rate keys

Key Default value
selectRate Select rate
multipleRatesAvailable Multiple rates available.
pleaseSelectRate Please select a rate from the search form to check prices and continue.
pleaseSelectRateToBook Please select a rate to book

Cancellation policy keys

Used by the cancellation policy label in availability results, the checkout sidebar, reservation details and the confirmation email.

Key Default value
cancellationPolicy Cancellation policy
nonRefundable Non-refundable
freeCancellationUntilDate Free cancellation until :date
freeCancellationPassed No free cancellation for these dates

The :date placeholder becomes the free cancellation date. freeCancellationPassed replaces that label once the date has passed (new in v6.5.2).

Cart keys

Used by cart booking.

Key Default value
addToBooking Add to booking
yourBooking Your booking
clear Clear

Payment page keys

v6.5.0 adds 23 keys to frontend.php for the payment page, where customers pay for a manual reservation. If you published or translated frontend.php before v6.5.0, add them to every locale folder in lang/vendor/statamic-resrv/. Missing keys fall back to English, the only language Resrv ships with.

Key Default value
completeYourPayment Complete your payment
paymentHeadingInstructions How to pay
paymentHeadingProcessing Payment processing
paymentHeadingConfirmed Reservation confirmed
paymentHeadingExpired Payment link expired
paymentHeadingUnavailable Reservation unavailable
amountToPay Amount to pay
paymentDeadline Payment deadline (defined, but not currently used by the page)
paymentDueBy Please pay by :date
paymentDueByArrival Please pay by the end of your arrival day: :date
remainingBalance Remaining balance
remainingBalanceNote Not included in this payment.
paymentMethodIs Payment method: :method
contactPhone Phone
paymentLinkFailed We couldn’t open your reservation from that link. Please check the link in your email or contact us for assistance.
paymentLinkExpired This payment link has expired. Please contact us to arrange your booking.
paymentArrivalPassed The arrival date for this reservation has passed, so it can no longer be paid online. Please contact us to arrange your booking.
paymentAlreadyCompleted This reservation has already been paid and confirmed. Thank you!
paymentProcessing Your payment is being processed. You will receive a confirmation email as soon as it completes.
paymentUnavailable This reservation is no longer available for payment. Please contact us for assistance.
paymentOfflineInstructions Please include your booking reference :reference with your payment. We will confirm your reservation as soon as the payment arrives.
paymentOfflineNoInstructions This reservation is not paid online: payment is arranged directly with us. Please contact us for the payment details and quote your booking reference :reference. We will confirm your reservation as soon as the payment arrives.
paymentMountFailed We could not start the payment process. Please try again or contact us for assistance.
paymentAttemptStillOpen An earlier payment attempt for this reservation is still open with the payment provider. If you did not complete it, you can try again after :date.

Keep the :date, :method and :reference placeholders in your translations. Resrv replaces them with the payment deadline (for paymentAttemptStillOpen, the time the open attempt expires), the payment method’s label and the booking reference. The page also reuses these existing keys: pay, bookingReference, emailAddress, reservationPeriod, to, extras, options, total, paymentSurcharge and reservationItemUnavailable.

Was this page helpful?