• Resolved macsuibhne

    (@macsuibhne)


    Is there any way I can translate the day and months so that they display on the site in a different language?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Do you mean in a different language from the language the site is configured into?

    All days and months are translatable, and that data comes from the WordPress core translation. If you want it in some language other than the language your site is in, however, that could be challenging.

    Thread Starter macsuibhne

    (@macsuibhne)

    Yes, the WordPress core is English, but I was wondering if it’s possible to display the days and months in their Irish language equivalent.

    Plugin Author Joe Dolson

    (@joedolson)

    That’s trickier. Getting the date to show in a different language than the rest of the site will require some customization. You can use the ‘date_i18n’ filter to customize those dates:

    https://developer.ww.wp.xz.cn/reference/hooks/date_i18n/

    This isn’t part of My Calendar; this is a tweak you’d be making to how WordPress behaves.

    Thread Starter macsuibhne

    (@macsuibhne)

    Thanks, I’ll look into it.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Translation’ is closed to new replies.