Make WordPress Core

Opened 8 months ago

Last modified 8 months ago

#59498 new defect (bug)

I18N issue in site editor

Reported by: jdy68's profile jdy68 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.3.1
Component: Editor Keywords:
Focuses: Cc:



In the site editor, when a template or a template part, or even a modified, the following message is displayed: "Last modified a few seconds ago".

This string corresponds to:
and as it's a variable we can't translate it.

In french, for example, the message is "Dernière modification il y a a few seconds".
In spanish, the message is "Última modificación hace a few seconds"

We have a break in I18N here, due to this variable.

Thanks for the modification.

Attachments (1)

message-not-completly-translating.png (1.7 KB) - added by jdy68 8 months ago.
Screenshot of the message not completly translating

Download all attachments as: .zip

Change History (2)

8 months ago

Screenshot of the message not completly translating

#1 @swissspidy
8 months ago

  • Component changed from I18N to Editor
  • Keywords changes-requested removed

This is coming from the SidebarNavigationScreenDetailsFooter component in the edit-site package.

From what I can see, the way this is intended is not as a single "Last modified xyz ago" string, but as a label / title. Like "Last modified: a few seconds ago".

The label is translated here:

The second part is indeed not translated, see

I think this is supposed to be fixed in WP 6.4 though via r56496, so this ticket seems to be a duplicate of #59219

Note: See TracTickets for help on using tickets.