• Hi,

    I recently installed your plugin to one of my websites http://boudoir-valeriane.com/booking/

    I’m french so I have downloaded translation files from Transifex.

    I had an issue when I want to check a date, if I let the default format “d M Y” in French i got an internal server Error 500.

    So I searched where I can change the date format and i changed the file
    js/datepicker_language/bootstrap-datetimepicker.fr.js
    line 16: format: “dd-mm-yyyy”

    But this line does nothing, the french file is loaded but I still had the “d M Y” format

    So I changed the file
    src/SLN/Form.php
    line 44: required=”required” data-format=”dd-mm-yyyy” class=”form-control”
    line 45: value=”<?php echo ucwords(date_i18n(‘d-m-Y’, $value->format(‘U’))) ?>” data-locale=”<?php echo strtolower(substr(get_locale(),0,2))?>”/></div>

    And I got a result but it was not enough, when the AJAX request was done the date input is filled in the “d M Y” format again !!

    I found this code on file js/salon.js
    line 287: putOptions($(‘#sln_date’), intervals.suggestedDate);

    I checked the suggestedDate value and I had to change the file
    src/SLN/Helper/Intervals.php
    line 237: ‘suggestedDate’ => ucwords(date_i18n(‘d-m-Y’, $this->suggestedDate->format(‘U’))),

    But I don’t want to change these files on each update. Can you tell me how to resolve this issue without touching the code .

    Regards

    https://ww.wp.xz.cn/plugins/salon-booking-system/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dimitri Grassi

    (@wordpresschef)

    Hi,

    thank you for reporting us this issue we’ll report to our developer in order to find a fix.

    Best regards

    D.

    Plugin Author Dimitri Grassi

    (@wordpresschef)

    Hi,

    we added a new feature to set a different date format inside “General Settings”. Could you please check if your problem has been solved with our latest release?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘checkDate issue with Fr language’ is closed to new replies.