month name translation

Use date_i18n():

date_i18n( 'Y. F j.',  strtotime( get_the_time( "Y-m-d" ) ) );

From the function’s description:

Retrieve the date in localized format, based on timestamp.

If the locale specifies the locale month and weekday, then the locale will
take over the format for the date. If it isn’t, then the date format string
will be used instead.

A timestamp is a UNIX timestamp, a single number, for example 1366784091.

Leave a Comment