sruupl / batflat

Lightweight, fast and easy CMS for free. Bootstrap ready. https://batflat.org
MIT License
135 stars 54 forks source link

Rendered month in Blog #94

Open keesversluis opened 3 years ago

keesversluis commented 3 years ago

I have found a bug in the Blog module displaying the published date. I cannot detect any errors in the Dutch translation. The Blog date format is set '01 januari 2016' (Dutch translation). The rendered month is not correct. For example:

januari  > januariuari
februari > februariruari
juni     > junii
november > novemberember
december > decemberember
keesversluis commented 3 years ago

For myself I found a solution by editing '\inc\modules\blog\Admin.php'. I changed the 'dateformats' section in four places as follows:

[
    'value' => 'd M Y',
    'name'  => '01 '.$this->lang('jan').' 2016'
],
...
[
    'value' => 'd M Y, H:i',
    'name'  => '01 '.$this->lang('jan').' 2016, 12:00'
],

So I removed an 'x' four times and with that the reference to the translation that is apparently only needed in the Polish language.