Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking “Select dates” not translated
- This topic has 9 replies, 4 voices, and was last updated 1 week, 1 day ago by
J. Davis.
- AuthorPosts
- December 3, 2023 at 10:41 am #1539545
R. L.
ParticipantHi,
In the new availability calendar (NICE!) in the bottom left it says ‘Select dates’. But this is not translated in my language, and also not listed in the motopress-hotel-booking-nl_NL language file at all.
How can I change this text? Thanks
December 5, 2023 at 1:50 am #1540540eric Brabants
Participantsame problem in the French language
And I don’t find the string in Loco Translate
December 15, 2023 at 7:50 am #1545785J. Davis
KeymasterHi Eric, Please go to edit the translation file and click the Sync button to update the strings. Then use search to find this string.
December 16, 2023 at 6:47 am #1546043R. L.
ParticipantI use Poedit, and the string is not there. I can not synchronize because I need an account with some service…
I added it manually in the textfile like this:
msgid “Select dates”
msgstr “Selecteer data”and saved the .mo. And this works ;). Or will this result in problems?
December 18, 2023 at 1:20 pm #1546787J. Davis
KeymasterHi, if you use Poedit, then you need to download the POT file from the latest version of the Hotel Booking plugin to your PC. Then open your PO file in Poedit, navigate to Translation > Update from the POT file, and select the POT file from the newest version.
May 28, 2025 at 1:11 pm #1770429Alberto
ParticipantMay 2025.
These 2 fundamental button labels have to work out of the box for the major languages you already support.Eg: in italian
<div class=”mphb-calendar__selected-dates”>Select dates</div>
should be: Seleziona le dateand
class=”datepick-cmd datepick-cmd-clear “>Svuota
should be: Cancella le dateMay 28, 2025 at 1:35 pm #1770432Alberto
ParticipantMaybe this is partially related , as I and many other have GTranslate installed too:
https://wordpress.org/support/topic/calendar-not-translating/(after editing the first of the two string in Loco Translate – the second one I cannot find – and also manually overwriting files .po .mo , the result does not change. Even after disabling GTranslate)
May 28, 2025 at 1:49 pm #1770433Alberto
ParticipantFor the first button:
I had to manually edit
/public_html/wp-content/plugins/motopress-hotel-booking/includes/script-managers/public-script-manager.php
There seems to be hardcoded translation here, and some @TODO code inside..For the second button:
a href=”javascript:void(0)” title=”Annulla” class=”datepick-cmd datepick-cmd-clear “>Svuota
I have still to understand where the string “Svuota” is writtenMay 28, 2025 at 2:08 pm #1770434Alberto
ParticipantUPDATE for the second button:
Found, the source (where is hard coded “Svuota” that does not fit)is from jQuery Datepicker plugin
http://keith-wood.name/datepick.html
Italian localisation for jQuery Datepicker.
located
/public_html/wp-content/plugins/motopress-hotel-booking/vendors/kbwood/datepick/jquery.datepick-it.jsNote: a great work from MPHB team should be to move these translations in the general https://crowdin.com/ functions you are using (plus investing a day with the best AI translation to complete what’s missing)
May 29, 2025 at 4:02 am #1770540J. Davis
KeymasterHi,
“Select dates” – can be translated via plugin translations. You can try following this step if you still can not see it. In this case, you will need to revert the changes in the file.
Clear – is translated in /motopress-hotel-booking/vendors/kbwood/datepick/jquery.datepick-it.js. So you can edit this file if you want to change the translation of this word.
Thank you fr your feedback. - AuthorPosts
- You must be logged in to reply to this topic.