Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support vishali009

    (@vishali009)

    Hi @khahina

    Thank you for pointing out this issue.

    To make the month names translatable, please update the ebec-list-layout.php file located at:

    events-block-for-the-events-calendar\Layouts\list\ebec-list-layout.php

    Replace the code on lines 6 and 7 with the following:

    // Event month and year setup
    $monthNum = $event_value['event_start_date_details_month'];
    $year = $event_value['event_start_date_details_year'];

    // Month names translation setup
    $months = [
    'January' => __( 'January', 'ebec' ),
    'February' => __( 'February', 'ebec' ),
    'March' => __( 'March', 'ebec' ),
    'April' => __( 'April', 'ebec' ),
    'May' => __( 'May', 'ebec' ),
    'June' => __( 'June', 'ebec' ),
    'July' => __( 'July', 'ebec' ),
    'August' => __( 'August', 'ebec' ),
    'September' => __( 'September', 'ebec' ),
    'October' => __( 'October', 'ebec' ),
    'November' => __( 'November', 'ebec' ),
    'December' => __( 'December', 'ebec' ),
    ];

    $shortMonths = [
    'Jan' => __( 'Jan', 'ebec' ),
    'Feb' => __( 'Feb', 'ebec' ),
    'Mar' => __( 'Mar', 'ebec' ),
    'Apr' => __( 'Apr', 'ebec' ),
    'May' => __( 'May', 'ebec' ),
    'Jun' => __( 'Jun', 'ebec' ),
    'Jul' => __( 'Jul', 'ebec' ),
    'Aug' => __( 'Aug', 'ebec' ),
    'Sep' => __( 'Sep', 'ebec' ),
    'Oct' => __( 'Oct', 'ebec' ),
    'Nov' => __( 'Nov', 'ebec' ),
    'Dec' => __( 'Dec', 'ebec' ),
    ];

    // Get month names dynamically
    $englishMonthLong = wp_date( 'F', mktime( 0, 0, 0, $monthNum, 1 ) );
    $englishMonthShort = wp_date( 'M', mktime( 0, 0, 0, $monthNum, 1 ) );

    $longMonthStart = $months[ $englishMonthLong ] ?? $englishMonthLong;
    $shortMonthStart = $shortMonths[ $englishMonthShort ] ?? $englishMonthShort;

    For further details, please refer to the attached screenshot.

    Let us know if you need any further assistance.

    Thanks & Regards,

    Thread Starter khahina

    (@khahina)

    hye,

    thank you for answer.

    I’ll wait for your next update (when is it due?), my malware scan didn’t like the modified original plugin files.
    And for now, I’ve written a hook to fix the problem.

    Have a nice day

    Plugin Support vishali009

    (@vishali009)

    Hi @khahina

    We will be releasing the next update soon. In the meantime, we appreciate your workaround using a hook to address the issue. If you encounter any further concerns, please feel free to reach out.

    Thanks & Regards

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