8 years ago
4
Topic

Hello!

In the typo plugin for Date, the weekday for "Monday" in German is written wrong "Motag" instead of "Montag", but no idea where the error is located. I searched the whole directory for it.

It seems to be this line in the code: $day=date( 'l', $date_n ); 

Sebastien wrote it might have something to do with Joomla! - does anyone know where this typo comes from?

thanks,

Elisa

Get a VIP membership
4229 Posts
Kadministrator
8 years ago
1
Level 1

it's a bug in date typo - _getDateByLang( $format does not use format parameter at all... and since it is performing emglish to deutsch replacements twice
Monday gets replaced by Montag, then again Mon is replaced by Mo as it would be if you would use short date

As temporary fix for your case comment out "$date = str_replace( $before, $after, $date );"
(last line before return in _getDateByLang )

8 years ago
0
Level 2

Thank you Klas! this worked.

8 years ago
1
Level 1

What file do I need to make the change?

4229 Posts
Kadministrator
8 years ago
0
Level 2

In plugins\cck_field_typo\date\date.php

Get a VIP membership