Viewing 1 replies (of 1 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    That calendar widget is so old that it never got any form of localization or translation added to it. I’m amazed it still works, actually.

    However, it does use the globals for things like $weekday_abbrev and such, so if you’re using a WordPress that is translated to another language, it should use those abbreviations for weekdays and such… but only on the calendar display mode.

    On the text display mode, the plugin is just using PHP date() calls to output date info, which won’t translate.

    So, you can try changing calls like this:
    date($dateformat,$stuff[$iter]['date'])

    into this:
    mysql2date($dateformat,$stuff[$iter]['date'])

    That might make it translate properly.

Viewing 1 replies (of 1 total)
  • The topic ‘Google Calendar Widget plugin by Otto. How to translate date?’ is closed to new replies.