Status report counter is not correctly rendered on Japanese website because the class names are rendered in Japanese in the source code.
This is because of text variable usage on below line in /templates/admin/status-report-counter.html.twig which gets printed in Japanese in case of a Japanese website. Check attachment.

<div class="card-content"><span class="card-title report-counter-amount  {{ text|lower }}-color">{{ amount }}</span><p>{{ text }}</p></div> 

As the css is written with English alphabets, using the translatable text variable would probably break this in case where the content does not adhere to errors, warnings text.

Proposed solution is to use *severity* variable which generates correct class names and displays data correctly with the current code.

Comments

aniki47 created an issue. See original summary.

aniketto’s picture

Created a patch as per the proposed solution and this solves the problem as correct class names are rendered.

aniketto’s picture

Status: Active » Needs review
aniketto’s picture

Assigned: aniketto » Unassigned
tanmaykadam’s picture

Assigned: Unassigned » tanmaykadam
tanmaykadam’s picture

I have tested the patch and looks good to be merged.

tanmaykadam’s picture

Status: Needs review » Reviewed & tested by the community
tanmaykadam’s picture

Assigned: tanmaykadam » Unassigned
e0ipso’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the patch. This looks good. Committing.

  • e0ipso committed df8633d on 2.x authored by aniki47
    Issue #3090669 by aniki47, tanmaykadam, e0ipso: Status Report counter's...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.