Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+02:00)

This topic contains 3 replies, has 1 voice.

Last updated by Bigul 7 months, 4 weeks ago.

Assisted by: Bigul.

Author Posts
November 26, 2024 at 1:52 pm #16445180

judithJ-3

Background of the issue:
I am developing a site and have set a custom date format (j F Y) under Settings > General in WordPress. I am using get_the_date('') to display the date for custom post types on a page. The default language of the site is English. To debug, I printed the following code to check if the correct language is loaded on the page, and it seems fine:

Symptoms:
The month name is displayed correctly in English and Dutch but appears in English instead of the correct language for German, Polish, Italian, Spanish, Hungarian, and French.

Questions:
How can I ensure the month name is displayed in the correct language?

November 27, 2024 at 10:19 am #16448584

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

Enable the "Look for strings while pages are rendered" option in WPML > String Translation, visit the page where the string should appear, and then search for the string again in WPML > String Translation. Translate them

Let us know how it goes.

Regards,
Drazen

November 27, 2024 at 2:51 pm #16450678

judithJ-3

Hi Drazen,

Thank you for your suggestion. I have enabled the "Look for strings while pages are rendered" option and visited the relevant pages as instructed. However, I am unsure which strings I should now expect to see under WPML > String Translation.

It’s worth mentioning that the Dutch month names are displayed correctly, even though I haven’t translated them manually via String Translation. This seems to indicate that the translations for Dutch are handled automatically, which I would expect for other languages as well.

I had assumed that WPML would handle the translation of month names automatically, as these are native to WordPress and typically rely on the language settings.

Could you clarify if month names should appear as translatable strings in this section, or if there’s another configuration required to ensure that they display correctly for all languages?

Thank you for your assistance.

Kind regards,

November 27, 2024 at 5:14 pm #16451278

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. A couple of requests for tracking this issue.

1) Please fill in the private details fields after a full site backup. I would like to access the admin area of your site to check further. Refer to the following links for more details about our private information sharing policies.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

2) Also, please let us know the exact steps to reproduce the bug on your site. It would be great if you could share a couple of screenshots or a screencast for a better understanding.

--
Thanks!

Bigul

The topic ‘[Closed] Month name not translating correctly in custom date format’ is closed to new replies.