-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Translations update from Hosted Weblate #914
Conversation
Currently translated at 100.0% (117 of 117 strings) Translation: Spook/Integration Translate-URL: https://hosted.weblate.org/projects/spook/integration/sv/
📝 WalkthroughWalkthroughThe pull request updates the Swedish translation file for the spook component. The changes involve reorganizing and expanding the translation keys within the issues section. Multiple new entries have been added for different error messages related to automation, group, integration, lovelace, proximity, restart confirmation, and utility meter issues. These modifications provide clearer, localized guidance for users encountering various configuration errors. Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
custom_components/spook/translations/sv.json
(1 hunks)
🔇 Additional comments (22)
custom_components/spook/translations/sv.json (22)
2-17
: ** Translation strings in the "config" section appear clear.**
The new translations for abort messages and step prompts are well structured. Please double-check that the tone and punctuation are consistent with other language files if applicable.
19-22
: ** Entity label translations validated.**
The entries under the "entity" key (for buttons, events, etc.) are clear and consistent with expected UI labels.
224-227
: ** "automation_unknown_area_references" entry is well defined.**
Both the description and title clearly instruct the user to resolve unknown area references.
232-235
: ** "automation_unknown_entity_references" entry is consistent.**
Both the description and title correctly reference unknown entities.
236-239
: ** "automation_unknown_floor_references" text is clear.**
The descriptions and title correctly address unknown floor references.
240-243
: ** "automation_unknown_label_references" entry is well articulated.**
The message clearly instructs steps to correct unknown label references in automations.
248-251
: ** "group_unknown_members" entry is appropriately defined.**
The description and title clearly instruct the user regarding unknown group members.
252-255
: ** "integration_unknown_source" entry is clear.**
The message instructs corrective action for helper source issues in integrations.
256-259
: ** "lovelace_unknown_entity_references" entry is consistent.**
The translation provides clear guidance for resolving unknown entity references in dashboards.
260-263
: ** "proximity_unknown_ignored_zones" entry is well written.**
The description gives a clear message about ignored zone issues.
264-267
: ** "proximity_unknown_tracked_entities" entry is clear and consistent.**
The message accurately explains the issue with tracking unknown entities in proximity configurations.
268-271
: ** "proximity_unknown_zone" entry is clear.**
The description and title effectively instruct the user to resolve an unknown zone error in proximity configurations.
272-282
: ** "restart_required" entry is well articulated.**
The translations correctly prompt a restart when required, including step confirmation.
283-286
: ** "scene_unknown_entity_references" entry looks good.**
The text clearly instructs on the necessary actions for unresolved entities in scenes.
287-290
: ** "script_unknown_area_references" entry is clear.**
The message provides precise directions for addressing unknown area references in scripts.
291-293
: ** "script_unknown_device_references" entry is properly defined.**
The translation instructs the user to correct unknown device references in scripts.
294-297
: ** "script_unknown_entity_references" entry is consistent.**
Both the description and title correctly address unknown entity issues in scripts.
298-301
: ** "script_unknown_floor_references" entry is well defined.**
The text correctly explains how to address unknown floor references in scripts.
303-306
: ** "script_unknown_label_references" entry is clear.**
The instructions for correcting unknown label references in scripts are consistent.
307-310
: ** "switch_as_x_unknown_source" entry is clear and consistent.**
The message provides proper instructions regarding an unknown source in switch helpers.
311-314
: ** "trend_unknown_source" entry is well formulated.**
The description accurately describes the unknown source issue in helpers.
315-325
: ** "user_issue" entry is correctly parameterized.**
The use of placeholders and the layout of the fix flow are appropriate.
"automation_unknown_service_references": { | ||
"description": "Spook har hittat ett fel i dina automatiseringar 👻\n\nMedan det svävade runt, så hittade Spook följande automatisering:\n\n[{automation}]({edit}) (`{entity_id}`)\n\nDenna automatisering refererar till följande områden, som är okända för Home Assistant:\n\n{services}\n\n\n\nFör att åtgärda detta fel, [redigera automatiseringen]({edit}) och ta bort användningen av dessa icke-existerande områden.\n\nSpook 👻 Din polare.", | ||
"title": "Okända händelser används i: {automation}" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
** Inconsistency in service reference terminology.**
The title states "Okända händelser" while the description erroneously mentions "områden". Please clarify whether the intent is to reference service calls, events, or otherwise, and update the description to match the title.
Suggested diff (if the intent is to refer to events):
- "Denna automatisering refererar till följande områden, som är okända för Home Assistant:
+ "Denna automatisering refererar till följande händelser, som är okända för Home Assistant:
Review and adjust accordingly if a different term (t.ex. "tjänster") is more appropriate.
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
"automation_unknown_service_references": { | |
"description": "Spook har hittat ett fel i dina automatiseringar 👻\n\nMedan det svävade runt, så hittade Spook följande automatisering:\n\n[{automation}]({edit}) (`{entity_id}`)\n\nDenna automatisering refererar till följande områden, som är okända för Home Assistant:\n\n{services}\n\n\n\nFör att åtgärda detta fel, [redigera automatiseringen]({edit}) och ta bort användningen av dessa icke-existerande områden.\n\nSpook 👻 Din polare.", | |
"title": "Okända händelser används i: {automation}" | |
}, | |
"automation_unknown_service_references": { | |
"description": "Spook har hittat ett fel i dina automatiseringar 👻\n\nMedan det svävade runt, så hittade Spook följande automatisering:\n\n[{automation}]({edit}) (`{entity_id}`)\n\nDenna automatisering refererar till följande händelser, som är okända för Home Assistant:\n\n{services}\n\n\n\nFör att åtgärda detta fel, [redigera automatiseringen]({edit}) och ta bort användningen av dessa icke-existerande områden.\n\nSpook 👻 Din polare.", | |
"title": "Okända händelser används i: {automation}" | |
}, |
"automation_unknown_device_references": { | ||
"description": "Spook har hittat ett fel i dina automatiseringar 👻\n\nMedans det svävade runt, så hittade Spook följande automatisering:\n\n[{automation}]({edit}) (`{entity_id}`)\n\nDenna automatisering refererar till följande områden, som är okända för Home Assistant:\n\n{devices}\n\n\n\nFör att åtgärda detta fel, [redigera automatiseringen]({edit}) och ta bort användningen av dessa icke-existerande områden.\n\nSpook 👻 Din polare.", | ||
"title": "Okända enheter används i: {automation}" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
** Mismatch in terminology for device references.**
The title indicates "Okända enheter" (unknown devices) but the description refers to "områden" instead of devices. Please update the description so that it consistently refers to devices.
Suggested diff:
- "Denna automatisering refererar till följande områden, som är okända för Home Assistant:
-
- [redigera automatiseringen]({edit}) och ta bort användningen av dessa icke-existerande områden.
+ "Denna automatisering refererar till följande enheter, som är okända för Home Assistant:
+
+ [redigera automatiseringen]({edit}) och ta bort användningen av dessa icke-existerande enheter.
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
"automation_unknown_device_references": { | |
"description": "Spook har hittat ett fel i dina automatiseringar 👻\n\nMedans det svävade runt, så hittade Spook följande automatisering:\n\n[{automation}]({edit}) (`{entity_id}`)\n\nDenna automatisering refererar till följande områden, som är okända för Home Assistant:\n\n{devices}\n\n\n\nFör att åtgärda detta fel, [redigera automatiseringen]({edit}) och ta bort användningen av dessa icke-existerande områden.\n\nSpook 👻 Din polare.", | |
"title": "Okända enheter används i: {automation}" | |
}, | |
"automation_unknown_device_references": { | |
"description": "Spook har hittat ett fel i dina automatiseringar 👻\n\nMedans det svävade runt, så hittade Spook följande automatisering:\n\n[{automation}]({edit}) (`{entity_id}`)\n\nDenna automatisering refererar till följande enheter, som är okända för Home Assistant:\n\n{devices}\n\n\n\nFör att åtgärda detta fel, [redigera automatiseringen]({edit}) och ta bort användningen av dessa icke-existerande enheter.\n\nSpook 👻 Din polare.", | |
"title": "Okända enheter används i: {automation}" | |
}, |
"utility_meter_unknown_source": { | ||
"description": "Spook har hittat ett spöke i dina helpers för utility meters👻\n\nMedan den svävade runt hittade Sppok följande helper:\n\nhelper} (`{entity_id}`)\n\nDenna helper har källor som är okända för Home Assistant:\n\n`{source}`\n\n\nFör att åtgärda detta fel behöver du editera denna helper och plcoka bort kpsterna eller hela helpern och starta om Home Assistant.\n\nSpook 👻 din polare.", | ||
"title": "Okänd källa: {helper}" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
** Typos and placeholder issues in "utility_meter_unknown_source".**
The description has several issues:
- "Sppok" appears instead of "Spook".
- The placeholder for helper is shown as helper} instead of, for example, [{helper}].
- Terms like "editera" might be better replaced with "redigera" for consistency, and "plcoka bort kpsterna" appears to be a typo (likely intended as "plocka bort källorna" or a similar correction).
Please review and update the translation so it matches the style and accuracy of the other entries.
Suggested diff:
-"description": "Spook har hittat ett spöke i dina helpers för utility meters👻\n\nMedan den svävade runt hittade Sppok följande helper:\n\nhelper} (`{entity_id}`)\n\nDenna helper har källor som är okända för Home Assistant:\n\n`{source}`\n\n\nFör att åtgärda detta fel behöver du editera denna helper och plcoka bort kpsterna eller hela helpern och starta om Home Assistant.\n\nSpook 👻 din polare.",
+"description": "Spook har hittat ett spöke i dina helpers för utility meters👻\n\nMedan den svävade runt hittade Spook följande helper:\n\n[{helper}] (`{entity_id}`)\n\nDen här helpern hänvisar till källor som är okända för Home Assistant:\n\n`{source}`\n\nFör att åtgärda felet, redigera helpern och plocka bort de felaktiga källorna – eller ta bort hela helpern – och starta om Home Assistant.\n\nSpook 👻 din polare.",
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
"utility_meter_unknown_source": { | |
"description": "Spook har hittat ett spöke i dina helpers för utility meters👻\n\nMedan den svävade runt hittade Sppok följande helper:\n\nhelper} (`{entity_id}`)\n\nDenna helper har källor som är okända för Home Assistant:\n\n`{source}`\n\n\nFör att åtgärda detta fel behöver du editera denna helper och plcoka bort kpsterna eller hela helpern och starta om Home Assistant.\n\nSpook 👻 din polare.", | |
"title": "Okänd källa: {helper}" | |
} | |
"utility_meter_unknown_source": { | |
"description": "Spook har hittat ett spöke i dina helpers för utility meters👻\n\nMedan den svävade runt hittade Spook följande helper:\n\n[{helper}] (`{entity_id}`)\n\nDen här helpern hänvisar till källor som är okända för Home Assistant:\n\n`{source}`\n\nFör att åtgärda felet, redigera helpern och plocka bort de felaktiga källorna – eller ta bort hela helpern – och starta om Home Assistant.\n\nSpook 👻 din polare.", | |
"title": "Okänd källa: {helper}" | |
} |
Translations update from Hosted Weblate for Spook/Integration.
Current translation status: