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:

Description

Hi,

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

This string corresponds to: https://translate.wordpress.org/projects/wp/dev/fr/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=135&filters%5Btranslation_id%5D=131480
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)

@jdy68
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: https://translate.wordpress.org/projects/wp/dev/fr/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=16087589&filters%5Btranslation_id%5D=106841329

The second part is indeed not translated, see https://i.imgur.com/NMaWyez.png

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.