it's my first question here so please excuse me for any technical mistakes.
We are creating a WP website for a cinema. We have set up a calendar carousel and I'm struggling to get the days and months tranlated from Fri, Sat, Sun etc. to Polish language. Here is the code:
<?php
$begin = new DateTime('today');
$end = new DateTime('+ 19 days');
$daterange = new DatePeriod($begin, new DateInterval('P1D'), $end);
foreach($daterange as $date){
echo '<div class="carousel-item">';
echo '<a href="#DAY'.$date->format("d").'" data-toggle="tab" class="dka-link-kal">';
echo '<div class="day-div" id="DD'.$date->format("d").'">';
echo '<div class="nazwa-dnia">';
echo $date->format("D");
echo '</div>';
echo '<div class="numer-dnia">';
echo $date->format("d");
echo '</div>';
echo '<div class="nazwa-miesiaca">';
echo $date->format("M");
echo '</div>';
echo '</div>';
echo '</div>';
echo '</a>';
}
?>
I think I don't have locale installed on the actual server. I will be really glad if you can give me a hint. Thanks.