Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Missing translation] "none" is not translatable - Follow up from #13018 #13021

Open
filipefurtad0 opened this issue Dec 9, 2024 · 2 comments
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. good first issue

Comments

@filipefurtad0
Copy link
Contributor

Description

A missing translation was introduced on issue #13018: when no Tax Category is attributed to a product, the string none is displayed -> it cannot be translated into other locales.

Expected Behavior

The string none on the All Products report is translatable.

Actual Behaviour

The string none on the All Products report is not translatable.

Steps to Reproduce

  1. As a hub admin, make sure you have a product without an attributed tax category
  2. Visit the All Products report
  3. Render the report and notice that none string is not translatable

Animated Gif/Screenshot

image

Workaround

Live with the English version of the string.

Severity

bug-s3: a feature is broken but there is a workaround

Your Environment

  • Version used: v5.0.8
  • Browser name and version: All
  • Operating System and version (desktop or mobile): All

Possible Fix

@chahmedejaz
Copy link
Collaborator

Hi @filipefurtad0, Thanks for raising this one. Yes, it would be great to have the translation for "none."
It's the case with every column with an empty value in all the reports. If the column doesn't have any value (nil) it renders a hard-coded English text "none".
Just to confirm, we will be addressing this issue for every report.

@chahmedejaz
Copy link
Collaborator

Note for dev:
I think we would be replacing the hard-coded "none" with the translation in the below lines. Thanks

def format_cell(value, column = nil)
return "none" if value.nil?

@github-project-automation github-project-automation bot moved this to All the things 💤 in OFN Delivery board Dec 10, 2024
@sigmundpetersen sigmundpetersen added the bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. good first issue
Projects
Status: All the things 💤
Status: To triage (By the maintainers)
Development

No branches or pull requests

3 participants