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

Add translations for the developer tools statistic issues #18646

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

silamon
Copy link
Contributor

@silamon silamon commented Nov 13, 2023

Proposed change

Include translations for the statistical issues in the developer tools. Occasionally, links are embedded within sentences. To simplify translations and avoid unnecessary complexity, the entire sentence is now treated as a link.

I have also activated the previously disabled lit rules in these files and updated the terminology to use 'delete' instead of 'remove.'

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

"no_statistics_found": "No statistics found for this period.",
"info_text_1": "Sometimes the statistics end up being incorrect for a specific point in time. This can mess up your beautiful graphs! Select a time below to find the bad moment and adjust the data.",
"pick_a_time": "Pick a time",
"statistic": "Statistic:",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the column out of the translation and in the template, or (prefer) make the statistic id a variable:

Statistic: {statistic}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's being placed in bold like this:

Statistic: statistic_id

Therefore I had to split it.
I can go ahead and take the bold out as well?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see we have this a lot in our translation files, so am gonna merge.

@bramkragten bramkragten merged commit fb95de1 into home-assistant:dev Nov 16, 2023
12 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants