Make WordPress Core

#58793 closed defect (bug) (reported-upstream)

Weird translation on "Change publishing date" toggle

Reported by: rvervuurt's profile Rvervuurt Owned by:
Milestone: Priority: normal
Severity: minor Version: 6.2.2
Component: I18N Keywords: has-screenshots
Focuses: ui Cc:

Description

When using WordPress in Danish, something weird is happening when editing a post or page:

  1. The "Publish" time shows the day of the week (both English and Dutch don't)
  2. There's a k in front of the weekday and a dot (so it basically says kmonday, ktuesday etc.).

Danish installation:
https://i.imgur.com/7aePCaj.png

English installation:
https://i.imgur.com/JUI05VD.png

It's in this area:
https://i.imgur.com/6HLNJT9.png

I've looked in the translation files, but couldn't find anything with "ktirsdag", so I have no idea where this is coming from.

It would make more sense if the Danish date was structured like this:
date. month time/year (notice the dot after date, it means th/nd in Danish).

Could be nice to get this fixed quickly, because it looks kinda weird when customers see the "Publish"-date and it says the weekday wrong.

Attachments (1)

Danish-post-date-time.png (5.0 KB) - added by sabernhardt 15 months ago.
editor post date with format 10. juli 2023 kl. 22.55 UTC+0

Download all attachments as: .zip

Change History (5)

#1 @sabernhardt
15 months ago

  • Keywords needs-patch removed

Hi and welcome to WordPress Core Trac!

Danish has two strings with a k in the date format, and you could recommend changes to both (expand each by clicking the Details link). Maybe those only need to remove the k, but it would help to verify that the rest follows the correct datetime format, too.

#2 @Presskopp
15 months ago

The 'k' comes from "kl." for "klokken", which was not correctly escaped, see:

https://translate.wordpress.org/projects/wp/dev/da/default/?filters%5Bstatus%5D=waiting

And before you ask, I don't speak a word danish.

#3 @culturemark
15 months ago

Hello

Thank you for the feedback @Rvervuurt

Looks like @Presskopp made the necessary changes to make it work.

post schedule date format without year

  1. F \k\l. G:i - gives the output - 14. juli kl. 12:20

post schedule full date format

  1. F Y \k\l. G:i - gives the output - 14. juli 2023 kl. 12:24

I'll approve the translation and see if it doesn't work nicely in wp-admin too.

@sabernhardt
15 months ago

editor post date with format 10. juli 2023 kl. 22.55 UTC+0

#4 @sabernhardt
15 months ago

  • Component changed from Date/Time to I18N
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

Thanks! I saw the new format in the editor as soon as I reinstalled 6.2.2 with the Danish version.

Note: See TracTickets for help on using tickets.