Make WordPress Core

Opened 3 weeks ago

Last modified 2 weeks ago

#65255 new defect (bug)

Clear needs context

Reported by: timse201's profile timse201 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: I18N Keywords: has-patch
Focuses: Cc:

Description

Right now, we have 2 strings for clear. One with context verb and one without. A better way would be to separate them with the context clear/reset that value and clear that field.
I did not dig into every string but it would be helpful.

https://translate.wordpress.org/projects/wp/dev/de/formal/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=47766&filters%5Btranslation_id%5D=3898356

https://translate.wordpress.org/projects/wp/dev/admin/de/formal/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=7906&filters%5Btranslation_id%5D=1657953

Change History (1)

This ticket was mentioned in PR #11890 on WordPress/wordpress-develop by @shreyasikhar26.


2 weeks ago
#1

  • Keywords has-patch added

This pull request updates the translation functions for the "Clear" button in several places to provide more context for translators. By switching to the contextual translation function (_x or esc_html_x) and supplying a descriptive context string, the changes help ensure accurate and meaningful translations in different scenarios.

Note: See TracTickets for help on using tickets.