Skip to content

bugfix: Update Czech translations for automation errors#1207

Open
3dg1luk43 wants to merge 1 commit intofrenck:mainfrom
3dg1luk43:patch-1
Open

bugfix: Update Czech translations for automation errors#1207
3dg1luk43 wants to merge 1 commit intofrenck:mainfrom
3dg1luk43:patch-1

Conversation

@3dg1luk43
Copy link
Copy Markdown

Fix incorrect Czech translation placeholders for service reference issue

Description

This PR fixes invalid placeholder names in the Czech translation for Spook issue:

  • component.spook.issues.automation_unknown_service_references.description
  • component.spook.issues.automation_unknown_service_references.title

The placeholders were incorrectly translated to Czech names ({automatizace}, {upravit}, {služby}), which breaks Home Assistant placeholder validation.

They are now corrected to the required canonical placeholders:

  • {automation}
  • {edit}
  • {services}

Also adjusted the Czech title wording to match singular service reference wording.

Motivation and Context

Home Assistant validates placeholders in localized strings against the source translation keys. Because the Czech placeholders were renamed, HA logged warnings similar to:

  • Validation of translation placeholders ... failed

This change removes those validation errors and ensures translations render correctly without runtime warnings.

How has this been tested?

  1. Updated custom_components/spook/translations/cs.json.
  2. Validated JSON syntax:
python3 -m json.tool /root/ha_config/custom_components/spook/translations/cs.json >/dev/null
  1. Restarted Home Assistant and verified that placeholder validation warnings for
    automation_unknown_service_references no longer appear.

Environment:

  • Home Assistant: 2026.3.1
  • Language: Czech (cs)

Screenshots (if appropriate):

N/A (translation placeholder fix only)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Fixed incorect translated placeholders for {automation}, {edit} and {services}
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 12, 2026

📝 Walkthrough

Walkthrough

This pull request updates Czech translation strings in the Spook custom component. Specifically, it modifies the "automation_unknown_service_references" localization entry by replacing Czech placeholders with English ones ({automatizace} → {automation}, {upravit} → {edit}, {služby} → {services}) and adjusts the title text content.

Changes

Cohort / File(s) Summary
Czech Localization Update
custom_components/spook/translations/cs.json
Updated "automation_unknown_service_references" entry: replaced Czech placeholders with English equivalents in description and title, and adjusted Spook emoji spacing formatting.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Possibly related PRs

Suggested labels

bugfix

Suggested reviewers

  • frenck

Poem

🐰 A translation hop through Czech lands so fine,
Where {automation} now dances in line,
Placeholders aligned, from east to west,
Clarity blooms—another Spook quest! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The description is well-detailed and directly related to the changeset, explaining the placeholder validation issue, the fix applied, and testing performed.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title accurately summarizes the main change: updating Czech translations for automation errors, which is the primary objective of the pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan for PR comments
  • Generate coding plan

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

@3dg1luk43 3dg1luk43 changed the title Update Czech translations for automation errors bugfix: Update Czech translations for automation errors Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant