Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#65255 new defect (bug)

Clear needs context

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

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.


4 months 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.