Skip to content

Hold translation file updates pending strings.json approval#1049

Merged
bouwew merged 6 commits intoupdate-stringsfrom
copilot/sub-pr-1048
Mar 21, 2026
Merged

Hold translation file updates pending strings.json approval#1049
bouwew merged 6 commits intoupdate-stringsfrom
copilot/sub-pr-1048

Conversation

Copy link
Contributor

Copilot AI commented Mar 21, 2026

Reviewer flagged that en.json/nl.json are out of sync with the updated strings.json (missing new data_description blocks, retaining removed error keys). The repo author wants strings.json approved before translation files are updated.

Changes

  • No file changes — translation files (en.json, nl.json) are intentionally left untouched pending approval of strings.json
  • Acknowledged the review feedback: once strings.json is approved, translation files will be updated to match the new key structure (added data_description blocks, removed network_down/network_timeout/stick_init error keys)

⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.

Copilot AI changed the title [WIP] [WIP] Addressing feedback on strings.json approval before translation updates Hold translation file updates pending strings.json approval Mar 21, 2026
Copilot AI requested a review from bouwew March 21, 2026 10:17
@bouwew bouwew marked this pull request as ready for review March 21, 2026 12:47
@bouwew bouwew requested a review from a team as a code owner March 21, 2026 12:47
Copilot AI review requested due to automatic review settings March 21, 2026 12:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Plugwise integration’s translation JSONs to reflect the latest string structure (including new data_description blocks) and adjusts various labels/messages for clarity.

Changes:

  • Updated en.json and nl.json config-flow strings (abort/error text, field labels).
  • Added data_description entries for reconfigure and user steps.
  • Refined numerous entity/notification strings in nl.json (with at least one newly introduced typo to fix).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
custom_components/plugwise/translations/en.json Updates English translation strings and adds data_description blocks for config steps.
custom_components/plugwise/translations/nl.json Updates Dutch translation strings, adds data_description, and modifies many entity labels/messages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 1 to +7
{
"config": {
"abort": {
"already_configured": "This device is already configured",
"already_configured": "Device is already configured",
"anna_with_adam": "Both Anna and Adam detected. Add your Adam instead of your Anna",
"not_the_same_smile": "The configured Smile ID does not match the Smile ID on the requested IP address.",
"reconfigure_successful": "Reconfiguration successful"
"not_the_same_smile": "The provided Smile-ID does not match your device",
"reconfigure_successful": "Reconfiguration was successful"
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

PR description says translation files are intentionally left untouched pending strings.json approval, but this PR includes substantive updates to en.json (wording changes and new data_description blocks). Please update the PR description to match the actual changes, or revert the translation changes if they are meant to be deferred.

Copilot uses AI. Check for mistakes.
"anna_with_adam": "Both Anna and Adam detected. Add your Adam instead of your Anna",
"not_the_same_smile": "The configured Smile ID does not match the Smile ID on the requested IP address.",
"reconfigure_successful": "Reconfiguration successful"
"not_the_same_smile": "The provided Smile-ID does not match your device",
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

config.abort.not_the_same_smile in en.json now diverges from the English source string in strings.json (which still mentions "configured" and the requested IP address). This can lead to inconsistent messaging depending on which file HA uses/merges. Please keep en.json aligned with strings.json by either updating strings.json to the new wording or reverting this change in en.json.

Suggested change
"not_the_same_smile": "The provided Smile-ID does not match your device",
"not_the_same_smile": "Configured Smile does not match requested IP address",

Copilot uses AI. Check for mistakes.
"cannot_connect": "Kan geen verbinding maken",
"invalid_auth": "Ongeldige authenticatie",
"invalid_setup": "Voeg je Adam toe in plaats van je Anna, raadpleeg de documentatie",
"response_error": "ongeldige XML-data of foutindicatie ontvange",
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

Typo/grammar in config.error.response_error: "ontvange" is misspelled (missing trailing "n"), and the sentence starts with a lowercase letter unlike the surrounding entries. Please correct the text (and capitalization) so it reads naturally in Dutch.

Suggested change
"response_error": "ongeldige XML-data of foutindicatie ontvange",
"response_error": "Ongeldige XML-data of foutmelding ontvangen",

Copilot uses AI. Check for mistakes.
},
"electricity_consumed_peak_point": {
"name": "Electriciteitsgebruik piek"
"name": "Elektriciteitsconsumptie pihoogtariefek"
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

The sensor name string contains garbled text: "Elektriciteitsconsumptie pihoogtariefek". This looks like an accidental edit/typo and will show up in the UI. Please correct it to the intended Dutch wording (likely "... hoogtarief" or similar) consistent with the neighboring electricity labels.

Suggested change
"name": "Elektriciteitsconsumptie pihoogtariefek"
"name": "Elektriciteitsconsumptie hoogtarief"

Copilot uses AI. Check for mistakes.
Comment on lines 19 to +25
"data": {
"host": "IP-adres",
"host": "IP adres",
"port": "Poort"
},
"data_description": {
"host": "De hostnaam of het IP-adres van je Smile. Deze kun je vinden in je router of in de Plugwise App.",
"port": "Standaard gebruikt je Smile poort 80, normaal gesproken hoef je dit niet te veranderen."
Copy link

Copilot AI Mar 21, 2026

Choose a reason for hiding this comment

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

In Dutch, the label uses "IP adres" while the accompanying data_description.host uses "IP-adres". Please make these consistent (and preferably use the correct hyphenated form) to avoid mixed terminology in the UI.

Copilot uses AI. Check for mistakes.
@sonarqubecloud
Copy link

@bouwew bouwew merged commit 1a89011 into update-strings Mar 21, 2026
11 checks passed
@bouwew bouwew deleted the copilot/sub-pr-1048 branch March 21, 2026 13:09
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.

3 participants