[wp-trac] [WordPress Trac] #64148: Add time additions to Activity widget
WordPress Trac
noreply at wordpress.org
Sat Oct 25 00:19:50 UTC 2025
#64148: Add time additions to Activity widget
-------------------------+------------------------------
Reporter: timse201 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: | Focuses: administration
-------------------------+------------------------------
Changes (by sabernhardt):
* focuses: => administration
* component: Widgets => I18N
* version: trunk =>
Comment:
The dashboard Activity widget has its own context in the
[https://github.com/WordPress/wordpress-
develop/blob/8dd04fbc29832215d536a6ed66225204f02a6591/src/wp-
admin/includes/dashboard.php#L1035-L1036 translatable string]
([https://translate.wordpress.org/projects/wp/dev/admin/de/formal/?filters%5Bterm%5D=%251%24s%2C+%252%24s&filters%5Bwith_context%5D=yes
'%1$s, %2$s']).
If I understand correctly, German locales could set that to something like
`%1$s, %2$s Uhr` or
`%1$s um %2$s Uhr`.
However, `get_the_time()` uses the site's time setting for format, which
might not fit with 'Uhr' if the site has multiple languages. Maybe the
widget could set the format to the localized time:
`get_the_time( __( 'g:i a' ) )`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64148#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list