Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Can I change button text?
- This topic has 10 replies, 7 voices, and was last updated 3 years, 9 months ago by Andre Flores.
- AuthorPosts
- March 11, 2020 at 6:34 pm #929099Deksia JonesParticipant
I’d like to change the button in the availability form to have the text something other than “Confirm Reservation”? (e.g. Inquire about a Reservation).
The same thing for the “Book Now” button. Can I change it to say something like “Request to Book”?Also, is the only way to add pet fees to get the Hotel Booking Checkout Fields Add-on?
Thank you.
March 11, 2020 at 9:56 pm #929155Alex MParticipantLet me illustrate the “translation” process with an example using the Loco Translate plugin, but you can use any other plugin that can generate translations.
- Install and activate the Loco Translate plugin.
- Navigate to Dashboard > Loco Translate > Home.
- Click on the Hotel Booking plugin.
- Click “New language”.
- Choose your language. For example, “English (United States)”.
- For the location choose “languages/loco/plugins/motopress-hotel-booking-en_US.po”.
- Click “Start Translating”.
- Insert the “Confirm Reservation” text in the “Filter translations” field.
- Click on the source text.
- Add your text to the translation field.
- Save.
March 12, 2020 at 12:29 pm #929503Deksia JonesParticipantThanks for the response.
Is an external translating plugin the only way to achieve this?
Also, in this case, wouldn’t I have to constantly re-do the whole process whenever the Hotel Booking plugin gets updated or altered?March 12, 2020 at 4:09 pm #929713J. DavisKeymasterHi,
You may edit Po language file on your PC using Poedit software and then upload the file to system path which is not overridden after plugin update – /wp-content/languages/plugins/
best regards,
J. DavisMarch 17, 2020 at 11:18 pm #931617Alex MParticipantDeksia Jones,
If you choose the location as
languages/loco/plugins
it won’t be overwritten on plugin update.Another safe path to store custom translations is
/wp-content/languages/motopress-hotel-booking/
You may customize plugin translation by editing the needed texts or adding your translation following these steps:
1. Take the source file for your translations \motopress-hotel-booking\languages\motopress-hotel-booking.pot or needed translated locale.
2. Translate texts with any translation program like Poedit, Loco, Pootle etc.
3. Put created .mo file with your translations into the folder /wp-content/languages/motopress-hotel-booking/motopress-hotel-booking-{lang}_{country}.mo. Where {lang} is ISO-639 language code and {country} is ISO-3166 country code. Example: Brazilian Portuguese file would be called motopress-hotel-booking-pt_BR.mo.April 15, 2020 at 8:26 pm #942621AJ BestParticipantDeksia Jones Did you figure this out? I am looking to do the same thing.
April 16, 2020 at 1:05 pm #942878Andre FloresModeratorHi, AJ!
Have you tried the translating with Loco Translate plugin Alex described in this reply? It should work perfectly. Alternatively, try editing language files manually following these directions.
Regards,
AndreApril 28, 2020 at 9:58 am #947555Tom MoretonParticipantI’m trying to do the same thing too (same button!). Edited the pot file on Poedit and loaded .mo file like suggested but it won’t see the new tranlation! How do I activate it? If I find a solution before a reply I’ll post here.
/wp-content/languages/motopress-hotel-booking/motopress-hotel-booking-en_GB.mo
I’ve also tried putting it other locations:
/wp-content/languages/motopress-hotel-booking-en_GB.mo
/wp-content/languages/plugins/motopress-hotel-booking-en_GB.mo
/wp-content/plugins/motopress-hotel-booking/languages/motopress-hotel-booking-en_GB.moDo I need to copy the .po file too?
April 29, 2020 at 3:05 pm #948086Andre FloresModeratorHello, Tom!
You should upload both .po and .mo files generated after changes you have performed to pot file. The recommended location is: /wp-content/languages/plugins/ – edited translation files will not be overwritten if you store them in this location.
If you still have difficulties performing translation, submit your request to our Help Desk.Regards,
AndreDecember 16, 2020 at 7:49 pm #1047934S. Siroco-Gemelos22ParticipantThis reply has been marked as private.December 17, 2020 at 10:33 am #1048124Andre FloresModeratorThis reply has been marked as private. - AuthorPosts
- You must be logged in to reply to this topic.