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,