Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Untranslated dates in New Sales Record notice #8419

Closed
Aljullu opened this issue Mar 7, 2022 · 1 comment · Fixed by #8426
Closed

Untranslated dates in New Sales Record notice #8419

Aljullu opened this issue Mar 7, 2022 · 1 comment · Fixed by #8426
Assignees
Labels
focus: i18n The issue/PR is related to internationalization. type: bug The issue is a confirmed bug.

Comments

@Aljullu
Copy link
Contributor

Aljullu commented Mar 7, 2022

I was setting up a Woo store for a non-profit, and noticed that in the New Sales Record notice, dates are not translated (notice a day, March 5th and March 3rd):

I think the related code can be found here:

$formatted_yesterday = gmdate( 'F jS', strtotime( $yesterday ) );
$formatted_total = html_entity_decode( wp_strip_all_tags( wc_price( $total ) ) );
$formatted_record_date = gmdate( 'F jS', strtotime( $record_date ) );

@Aljullu Aljullu added the focus: i18n The issue/PR is related to internationalization. label Mar 7, 2022
@moon0326
Copy link
Contributor

moon0326 commented Mar 8, 2022

Thank you @Aljullu for taking the time to report the issue. I was able to reproduce it locally. We'll work on a fix as soon as possible.

@moon0326 moon0326 added the type: bug The issue is a confirmed bug. label Mar 8, 2022
@moon0326 moon0326 self-assigned this Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
focus: i18n The issue/PR is related to internationalization. type: bug The issue is a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants