Make WordPress Core

Opened 10 months ago

Closed 10 months ago

Last modified 10 months ago

#59948 closed enhancement (duplicate)

Inconsistent translator comment for datetime strings

Reported by: nekojonez's profile NekoJonez Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: I18N Keywords:
Focuses: Cc:

Description

If we look at the strings where translators can show a datetime: https://translate.wordpress.org/projects/wp/dev/nl-be/default/?filters%5Bterm%5D=F+j&filters%5Bterm_scope%5D=scope_originals&filters%5Bstatus%5D=current&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=translation_date_modified&sort%5Bhow%5D=desc

and then look at the translator comment, we notice something strange.
Only in a few, translators get the link to the manual to craft a good datetime: https://www.php.net/manual/datetime.format.php

In this string: https://translate.wordpress.org/projects/wp/dev/nl-be/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=58765&filters%5Btranslation_id%5D=54236555
We see almost the same issue as in #59947.

Yet, unlike for the actual time... For the date we a lot more strings while it's for times more in one.

Change History (4)

#1 follow-up: @swissspidy
10 months ago

  • Component changed from Date/Time to I18N
  • Focuses ui docs removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Severity changed from normal to minor
  • Status changed from new to closed

Let's merge this with #59947 as it's basically the same issue.

#2 in reply to: ↑ 1 @NekoJonez
10 months ago

Replying to swissspidy:

Let's merge this with #59947 as it's basically the same issue.

Yes and no. The difference here is that some datetime strings don't have a link to the manual causing potential confusion or not the correct datetime use.

#3 @swissspidy
10 months ago

We can fix that there too, no problem.

This ticket was mentioned in Slack in #polyglots by nekojonez. View the logs.


10 months ago

Note: See TracTickets for help on using tickets.