-
-
Notifications
You must be signed in to change notification settings - Fork 47
Translations update from Hosted Weblate #811
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
Changes from all commits
b421de6
6008f48
e1a0747
159b3af
b05cab8
4269691
42f418a
a055ba4
dc25fe5
2807342
1d7d80c
6dce3cb
260f2be
d2dda60
0a1f80d
a50e54f
7b925e9
387a9fa
44d485b
fa9a278
bc89528
0ed6ade
55c48d8
e16f41b
8dd82ea
9aa1546
232789c
d4fb0f4
b869120
c2fd8e3
a21a291
ee6addb
2a0a460
57b439d
60a90e7
66de0a3
ff4da0a
f62f66a
8f02ba4
3efdea1
bd1c24e
3b32033
054dd34
e9a5e6d
09d1682
bdb0861
8f6c5d6
aedcad2
f66e863
2fb890e
220b369
343fbfe
4af21c7
a080acc
c2ccc07
9af3651
64f50d2
4b02790
e097563
d8615bb
6c5307d
fdece4c
e1b279e
bce8a5f
225b724
909372b
17116c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"config": { | ||
"step": { | ||
"switch": { | ||
"data": { | ||
"name": "Naam", | ||
"hide_source": "Maak bron entiteit onsigbaar", | ||
"entity_id": "Bron entiteit" | ||
}, | ||
"title": "Omkeer" | ||
}, | ||
"binary_sensor": { | ||
"title": "Omkeer", | ||
"data": { | ||
"name": "Naam", | ||
"entity_id": "Bron entiteit", | ||
"hide_source": "Maak bron entiteit onsigbaar" | ||
} | ||
}, | ||
"user": { | ||
"description": "Hierdie helper laat jou toe om die gedrag van 'n entiteit om te skakel. Byvoorbeeld, verander oop/toe of aan/af van 'n binêre sensor of skakelaar.", | ||
"menu_options": { | ||
"binary_sensor": "Keer 'n binere sensor om", | ||
"switch": "Keer skakelaar om" | ||
}, | ||
"title": "Omkeer" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"hide_source": "Maak bron entiteit onsigbaar", | ||
"name": "Naam", | ||
"entity_id": "Bron entiteit" | ||
}, | ||
"title": "Omkeer" | ||
}, | ||
"switch": { | ||
"data": { | ||
"entity_id": "Bron entiteit", | ||
"hide_source": "Maak bron eniteit onsigbaar", | ||
"name": "Naam" | ||
}, | ||
"title": "Omkeer" | ||
} | ||
} | ||
}, | ||
"title": "Omkeer" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,30 @@ | ||
{} | ||
{ | ||
"config": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"name": "Nom" | ||
} | ||
}, | ||
"switch": { | ||
"data": { | ||
"name": "Nom" | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"name": "Nom" | ||
} | ||
}, | ||
"switch": { | ||
"data": { | ||
"name": "Nom" | ||
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,40 @@ | ||
{} | ||
{ | ||
"config": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "Lähteolem", | ||
"hide_source": "Peida lähteolem", | ||
"name": "Nimi" | ||
}, | ||
"title": "Pööra ümber" | ||
}, | ||
"switch": { | ||
"data": { | ||
"hide_source": "Peida lähteolem", | ||
"name": "Nimi", | ||
"entity_id": "Lähteolem" | ||
}, | ||
"title": "Pööra ümber" | ||
}, | ||
"user": { | ||
"description": "See abimees võimaldab olemi käitumist ümber pöörata. Näiteks pöörake binaarandurite ja lülitite avatud/suletud või sisse/välja.", | ||
"title": "Pööra ümber", | ||
"menu_options": { | ||
"binary_sensor": "Binaaranduri ümberpööramine", | ||
"switch": "Lüliti ümberpööramine" | ||
} | ||
} | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "Lähteolem", | ||
"hide_source": "Peida lähteolem" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
Comment on lines
+30
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Missing 'switch' option in Estonian (et) translation file The Estonian translation file is missing the 'switch' option in its options section, while most other complete translation files include both 'binary_sensor' and 'switch' options. This inconsistency should be addressed.
🔗 Analysis chainVerify options section completeness across translations The options section only includes binary_sensor configuration while the config section includes both binary_sensor and switch. Let's verify this is consistent across other language files. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check if other language files have the same options structure
# Expected: All translation files should have consistent options structure
# Find all translation files in the same directory
find custom_components/spook/integrations/spook_inverse/translations -name "*.json" -exec sh -c '
echo "Checking $1:"
jq -r ".options.step | keys[]" "$1" 2>/dev/null || echo "No options.step found"
echo "---"
' sh {} \;
Length of output: 4536 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"config": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "Lähde entiteetti", | ||
"name": "Nimi", | ||
"hide_source": "Piilota lähde entiteetti" | ||
}, | ||
"title": "Käännä 👻" | ||
}, | ||
"user": { | ||
"description": "Tämän apuohjelman avulla voit kääntää entiteetin käyttäytymisen. Voit esimerkiksi kääntää binääriantureiden ja kytkimien auki/kiinni tai päälle/pois.", | ||
"menu_options": { | ||
"binary_sensor": "Käännä binäärisensori", | ||
"switch": "Käännä kytkin" | ||
}, | ||
"title": "Käännä 👻" | ||
}, | ||
"switch": { | ||
"data": { | ||
"entity_id": "Lähde entiteetti", | ||
"hide_source": "Piilota lähde entiteetti", | ||
"name": "Nimi" | ||
}, | ||
"title": "Käännä 👻" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"switch": { | ||
"data": { | ||
"hide_source": "Piilota lähde entiteetti", | ||
"name": "Nimi", | ||
"entity_id": "Lähde entiteetti" | ||
}, | ||
"title": "Käännä 👻" | ||
}, | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "Lähde entiteetti", | ||
"hide_source": "Piilota lähde entiteetti", | ||
"name": "Nimi" | ||
}, | ||
"title": "Käännä 👻" | ||
} | ||
} | ||
}, | ||
"title": "Käännä 👻" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,51 @@ | ||
{ | ||
"config": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "Entitas sumber", | ||
"hide_source": "Sembunyikan entitas sumber", | ||
"name": "Nama" | ||
}, | ||
"title": "Kebalikannya 👻" | ||
}, | ||
"switch": { | ||
"data": { | ||
"entity_id": "Entitas sumber", | ||
"hide_source": "Sembunyikan entitas sumber", | ||
"name": "Nama" | ||
}, | ||
"title": "Inverse 👻" | ||
}, | ||
"user": { | ||
"description": "Pembantu ini memungkinkan Anda untuk membalikkan perilaku suatu entitas. Misalnya, membalikkan buka/tutup atau hidup/mati sensor biner, dan sakelar.", | ||
"menu_options": { | ||
"binary_sensor": "Balikkan sensor biner", | ||
"switch": "Balikkan sakelar" | ||
}, | ||
"title": "Balikkan 👻" | ||
} | ||
} | ||
} | ||
"config": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "Entitas sumber", | ||
"hide_source": "Sembunyikan entitas sumber", | ||
"name": "Nama" | ||
}, | ||
"title": "Kebalikannya 👻" | ||
}, | ||
"switch": { | ||
"data": { | ||
"entity_id": "Entitas sumber", | ||
"hide_source": "Sembunyikan entitas sumber", | ||
"name": "Nama" | ||
}, | ||
"title": "Inverse 👻" | ||
}, | ||
"user": { | ||
"description": "Pembantu ini memungkinkan Anda untuk membalikkan perilaku suatu entitas. Misalnya, membalikkan buka/tutup atau hidup/mati sensor biner, dan sakelar.", | ||
"menu_options": { | ||
"binary_sensor": "Balikkan sensor biner", | ||
"switch": "Balikkan sakelar" | ||
}, | ||
"title": "Balikkan 👻" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "Entitas sumber", | ||
"hide_source": "Sembunyikan entitas sumber", | ||
"name": "Nama" | ||
}, | ||
"title": "Kebalikannya 👻" | ||
}, | ||
"switch": { | ||
"data": { | ||
"entity_id": "Entitas sumber", | ||
"hide_source": "Sembunyikan entitas sumber", | ||
"name": "Nama" | ||
}, | ||
"title": "Kebalikannya 👻" | ||
} | ||
Comment on lines
+40
to
+47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix inconsistent translation of switch title There's an inconsistency in the switch titles between the config and options sections:
For consistency, both sections should use the same translation. Apply this diff to fix the inconsistency: "switch": {
"data": {
"entity_id": "Entitas sumber",
"hide_source": "Sembunyikan entitas sumber",
"name": "Nama"
},
- "title": "Kebalikannya 👻"
+ "title": "Inverse 👻"
}
|
||
} | ||
}, | ||
"title": "Kebalikannya 👻" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,51 @@ | ||
{} | ||
{ | ||
"config": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "출처 구성요소", | ||
"hide_source": "출처 구성요소 숨김", | ||
"name": "이름" | ||
}, | ||
"title": "반전 👻" | ||
}, | ||
"switch": { | ||
"data": { | ||
"name": "이름", | ||
"entity_id": "출처 구성요소", | ||
"hide_source": "출처 구성요소 숨김" | ||
}, | ||
"title": "반전 👻" | ||
}, | ||
"user": { | ||
"description": "이 도우미는 구성요소의 동작을 반전시키는 데 도움이 됩니다. 예를 들어, 이진 센서 및 스위치의 열림/닫힘 또는 켜짐/꺼짐을 반전시킵니다.", | ||
"menu_options": { | ||
"switch": "스위치 반전", | ||
"binary_sensor": "이진 센서 반전" | ||
}, | ||
"title": "반전 👻" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"hide_source": "출처 구성요소 숨김", | ||
"entity_id": "출처 구성요소", | ||
"name": "이름" | ||
}, | ||
"title": "반전 👻" | ||
}, | ||
"switch": { | ||
"data": { | ||
"name": "이름", | ||
"entity_id": "출처 구성요소", | ||
"hide_source": "출처 구성요소 숨김" | ||
}, | ||
"title": "반전 👻" | ||
} | ||
} | ||
}, | ||
"title": "반전 👻" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"config": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"name": "Isem", | ||
"entity_id": "Entita' tal-oriġini", | ||
"hide_source": "Aħbi l-entita' tal-oriġini" | ||
}, | ||
"title": "Il-Maqlub 👻" | ||
}, | ||
"user": { | ||
"description": "Dan l-assistent iħallik taqleb l-imġieba ta' entita'. Per eżempju, taqleb il-propjetajiet ta' iftaħ/agħlaq jew mixgħul/mitfi ta' sensors binarji, u swiċċijiet.", | ||
"menu_options": { | ||
"binary_sensor": "Aqleb sensor binarju", | ||
"switch": "Aqleb swiċċ" | ||
}, | ||
"title": "Maqlub 👻" | ||
}, | ||
"switch": { | ||
"data": { | ||
"hide_source": "Aħbi l-entita' tal-oriġini", | ||
"entity_id": "Entita' tal-oriġini", | ||
"name": "Isem" | ||
}, | ||
"title": "Aqleb 👻" | ||
} | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"binary_sensor": { | ||
"data": { | ||
"entity_id": "Entita' tal-oriġini", | ||
"hide_source": "Aħbi l-entita' tal-oriġini", | ||
"name": "Isem" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
Comment on lines
+1
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Missing translations found in Maltese (mt.json) language file The following translations are missing in the Maltese language file compared to the English version:
🔗 Analysis chainVerify translation completeness against other language files While the structure looks good, let's verify that all necessary translations are present compared to other language files. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Compare translation keys with other language files to ensure completeness
# Get a list of all translation files
echo "Checking translation files..."
find custom_components/spook/integrations/spook_inverse/translations -name "*.json" -not -name "mt.json" -exec sh -c '
echo "\nComparing with $1:"
# Compare structure with other translation files using jq
diff <(jq -S "paths" "$1") <(jq -S "paths" "custom_components/spook/integrations/spook_inverse/translations/mt.json")
' sh {} \;
Length of output: 5433 Script: #!/bin/bash
# Let's try a different approach using jq to compare with en.json (primary language)
echo "Comparing mt.json with en.json structure:"
jq -r 'paths(scalars) | join(".")' custom_components/spook/integrations/spook_inverse/translations/en.json | sort > /tmp/en_paths
jq -r 'paths(scalars) | join(".")' custom_components/spook/integrations/spook_inverse/translations/mt.json | sort > /tmp/mt_paths
diff /tmp/en_paths /tmp/mt_paths
# Also show the actual content of en.json for reference
echo -e "\nContent of en.json for reference:"
cat custom_components/spook/integrations/spook_inverse/translations/en.json
Length of output: 1969 |
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.
💡 Codebase verification
Translation consistency needs attention in Catalan files
The verification reveals inconsistent translation patterns for "name" across Catalan files:
custom_components/spook/integrations/spook_inverse/translations/ca.json
, "name" is consistently translated as "Nom"custom_components/spook/translations/ca.json
, "name" fields contain direct entity/feature names in Catalan without using the standard "Nom" translationThis inconsistency should be addressed to maintain a uniform translation approach across the codebase.
🔗 Analysis chain
Verify translation consistency across Catalan files
The translation "Nom" for "Name" is correct in Catalan. Let's verify its consistent usage across other Catalan translation files in the project.
Also applies to: 11-11, 20-20, 25-25
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 3734
Script:
Length of output: 5854