Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#59948 closed enhancement (duplicate)

Inconsistent translator comment for datetime strings

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

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
3 years ago

  • Component Date/Time → I18N
  • Focuses ui docs removed
  • Milestone Awaiting Review
  • Resolution → duplicate
  • Severity normal → minor
  • Status new → closed

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

#2 in reply to: ↑ 1 @NekoJonez
3 years 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
3 years ago

We can fix that there too, no problem.

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


3 years ago

Note: See TracTickets for help on using tickets.