“Select dates” not translated

  • This topic has 9 replies, 4 voices, and was last updated 1 week, 1 day ago by J. Davis.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1539545

    Hi,

    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

    #1540540

    same problem in the French language

    And I don’t find the string in Loco Translate

    #1545785

    Hi Eric, Please go to edit the translation file and click the Sync button to update the strings. Then use search to find this string.

    #1546043

    I 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?

    #1546787

    Hi, 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.

    #1770429

    May 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 date

    and
    class=”datepick-cmd datepick-cmd-clear “>Svuota
    should be: Cancella le date

    #1770432

    Maybe 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)

    #1770433

    For 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 written

    #1770434

    UPDATE 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.js

    Note: 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)

    #1770540

    Hi,
    “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.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.