- This topic has 12 replies, 2 voices, and was last updated 5 months ago by Andre Flores.
- July 30, 2021 at 7:45 am #1164353Daniel PerryParticipant
Apologies if this has been answered elsewhere I did try a few searches but could find anything.
On the search results page, there is a button underneath the recommended section to reserve the recommended, however this diverts to the booking page (which is fine). Is it possible to change the text of this button from “reserve” to “book”?
DanAugust 2, 2021 at 3:29 am #1165145Andre FloresModeratorAugust 2, 2021 at 5:02 am #1165210Daniel PerryParticipant
Is there a way to do this without adding another plug-in?
Maybe a php snippet or something?
DanAugust 3, 2021 at 1:14 am #1165662Andre FloresModerator
Sure, you may perform translations directly in language files. Use the .po language file for the language in question under /wp-content/plugins/motopress-hotel-booking/languages/ directory to perform necessary changes. It is recommended to copy edited .po and .mo files to /wp-content/languages/plugins/ directory after that in order to avoid loosing changes after the plugin update.
Check this article on how to manage .po and .mo files.
AndreAugust 3, 2021 at 1:36 am #1165680Daniel PerryParticipant
Thats great thanks, I don’t see an “EN” suffix version of the file though? Which files do I edit for the English translation?
DanAugust 9, 2021 at 7:38 am #1168312Daniel PerryParticipant
nudge nude, can someone respond please, I really need to get this sorted, thanks againAugust 12, 2021 at 5:22 am #1169854Andre FloresModerator
Kindly provide me with your website URL and temporary access to WordPress dashboard in a private reply, so I check it for you.
AndreAugust 12, 2021 at 6:36 am #1169912Daniel PerryParticipantThis reply has been marked as private.August 16, 2021 at 3:11 am #1171389Andre FloresModeratorThis reply has been marked as private.August 16, 2021 at 3:28 am #1171397Daniel PerryParticipant
Fantastic, thanks very much for doing that 🙂
However it would be handy to know how to do this, as there are a couple of other pieces of text I would like to change for example, changing “CHOOSE ADDITIONAL SERVICES” to something like “choose your extras”.
Thanks again for the support
DanAugust 18, 2021 at 3:30 am #1172481Andre FloresModerator
You now have motopress-hotel-booking-en_GB.po file under /wp-content/languages/plugins/ directory, you will need to edit the file locally in your machine with Poedit software and perform necessary changes to it. Once changes are saved, you will get new .mo file generated, make sure to replace current .mo file with it as well, so changes are applied.
AndreAugust 18, 2021 at 6:39 am #1172580Daniel PerryParticipant
Perfect thank you so much 🙂August 19, 2021 at 4:03 am #1172878Andre FloresModerator
You are most welcome 🙂
It would be very much appreciated if you share your positive feedback about the Hotel Booking at: https://www.trustpilot.com/evaluate/www.getmotopress.com.
Thank you in advance!
- You must be logged in to reply to this topic.