[wp-trac] [WordPress Trac] #53381: Events and News Widget: Multi-day event placeholders are not replaced with dates in some languages
WordPress Trac
noreply at wordpress.org
Fri Jun 11 02:12:29 UTC 2021
#53381: Events and News Widget: Multi-day event placeholders are not replaced with
dates in some languages
--------------------------+-----------------------------
Reporter: Nao | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When the user profile language is set to Korean or Japanese, the multi-
event WordCamp dates are not correctly displayed in the dashboard widget.
This only reproducible only in a certain environment (see how to reproduce
section below):
The placeholders are not replaced with numbers and the exact translation
is shown, such as `%4$d年%1$s月%2$d日〜%3$d日` (Japanese) and `%4$d년 %1$s
%2$d일–%3$d일` (Korean).
The strings in question:
[https://translate.wordpress.org/projects/wp/dev/admin/ja/default/?filters%5Bterm%5D=%251%24s+%252%24d%E2%80%93%253%24d%2C+%254%24d&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc
Japanese] /
[https://translate.wordpress.org/projects/wp/dev/admin/ko/default/?filters%5Bterm%5D=%251%24s+%252%24d%E2%80%93%253%24d%2C+%254%24d&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=priority&sort%5Bhow%5D=desc
Korean]
How to reproduce:
If you have access to any WordCamp site's dashboard, go to Users > Profile
and set your language to 日本語 (Under "Italiano"). Go to /wp-admin/ and
check the Events and News widget.
Depending on the server the site is on, there are at least 3 variations:
garbled date, correct translation, or incorrect word order (for all dates,
not just multi-day events).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53381>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list