Skip to content

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

Merged
merged 67 commits into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
b421de6
Translated using Weblate (Estonian)
indkilech Aug 8, 2024
6008f48
Translated using Weblate (Korean)
Aug 12, 2024
e1a0747
Translated using Weblate (Korean)
Aug 12, 2024
159b3af
Added translation using Weblate (Finnish)
Aug 17, 2024
b05cab8
Translated using Weblate (Finnish)
Teemu-Kostamo Aug 17, 2024
4269691
Translated using Weblate (Catalan)
ribera96 Aug 27, 2024
42f418a
Translated using Weblate (Indonesian)
rezaalmanda Sep 16, 2024
a055ba4
Added translation using Weblate (Afrikaans)
RafikiHome Sep 20, 2024
dc25fe5
Translated using Weblate (Afrikaans)
RafikiHome Sep 20, 2024
2807342
Translated using Weblate (Chinese (Simplified Han script))
Sep 22, 2024
1d7d80c
Translated using Weblate (Chinese (Simplified Han script))
Sep 22, 2024
6dce3cb
Translated using Weblate (Chinese (Traditional Han script))
Sep 22, 2024
260f2be
Translated using Weblate (Norwegian Bokmål)
ef1970 Nov 11, 2024
d2dda60
Translated using Weblate (Portuguese)
CaCoZA Nov 17, 2024
0a1f80d
Translated using Weblate (Finnish)
Ricky-Tigg Dec 12, 2024
a50e54f
Translated using Weblate (Swedish)
metsa24 Dec 13, 2024
7b925e9
Added translation using Weblate (Maltese)
beta-j Dec 19, 2024
387a9fa
Translated using Weblate (Maltese)
beta-j Dec 19, 2024
44d485b
Translated using Weblate (Afrikaans)
RafikiHome Jan 6, 2025
fa9a278
Translated using Weblate (Afrikaans)
RafikiHome Jan 10, 2025
bc89528
Translated using Weblate (Greek)
Thunderstrike116 Aug 7, 2024
0ed6ade
Translated using Weblate (Polish)
Aug 8, 2024
55c48d8
Translated using Weblate (Greek)
Thunderstrike116 Aug 8, 2024
e16f41b
Translated using Weblate (Polish)
Auroray Aug 9, 2024
8dd82ea
Translated using Weblate (Korean)
Aug 12, 2024
9aa1546
Translated using Weblate (Polish)
Aug 14, 2024
232789c
Added translation using Weblate (Finnish)
Teemu-Kostamo Aug 17, 2024
d4fb0f4
Translated using Weblate (Finnish)
Aug 17, 2024
b869120
Translated using Weblate (Finnish)
Teemu-Kostamo Aug 17, 2024
c2fd8e3
Translated using Weblate (Dutch)
Zijdelinck Aug 18, 2024
a21a291
Translated using Weblate (Swedish)
NCC-1031 Aug 22, 2024
ee6addb
Translated using Weblate (Italian)
cri98li Aug 27, 2024
2a0a460
Translated using Weblate (Indonesian)
rezaalmanda Sep 16, 2024
57b439d
Added translation using Weblate (Afrikaans)
Sep 20, 2024
60a90e7
Translated using Weblate (Afrikaans)
Sep 20, 2024
66de0a3
Translated using Weblate (Afrikaans)
RafikiHome Sep 20, 2024
ff4da0a
Translated using Weblate (Chinese (Simplified Han script))
Sep 21, 2024
f62f66a
Translated using Weblate (Chinese (Simplified Han script))
Sep 22, 2024
8f02ba4
Translated using Weblate (Chinese (Traditional Han script))
Sep 22, 2024
3efdea1
Translated using Weblate (Slovak)
Sep 24, 2024
bd1c24e
Translated using Weblate (Korean)
Oct 13, 2024
3b32033
Translated using Weblate (Dutch)
marcselis Oct 21, 2024
054dd34
Translated using Weblate (Slovak)
Nov 1, 2024
e9a5e6d
Translated using Weblate (Swedish)
Tobbe82 Nov 10, 2024
09d1682
Translated using Weblate (Swedish)
westlund Nov 10, 2024
bdb0861
Translated using Weblate (Swedish)
Tobbe82 Nov 10, 2024
8f6c5d6
Translated using Weblate (Swedish)
Tobbe82 Nov 10, 2024
aedcad2
Translated using Weblate (Norwegian Bokmål)
ef1970 Nov 11, 2024
f66e863
Translated using Weblate (German)
kevinholtkamp Dec 2, 2024
2fb890e
Translated using Weblate (Finnish)
Ricky-Tigg Dec 3, 2024
220b369
Translated using Weblate (French)
Dec 8, 2024
343fbfe
Translated using Weblate (Finnish)
Ricky-Tigg Dec 12, 2024
4af21c7
Translated using Weblate (Swedish)
metsa24 Dec 13, 2024
a080acc
Added translation using Weblate (Maltese)
Dec 19, 2024
c2ccc07
Translated using Weblate (Maltese)
Dec 19, 2024
9af3651
Translated using Weblate (Maltese)
beta-j Dec 23, 2024
64f50d2
Translated using Weblate (Czech)
warkurre86 Dec 27, 2024
4b02790
Translated using Weblate (Hungarian)
banalac Dec 31, 2024
e097563
Translated using Weblate (French)
dim6003 Jan 6, 2025
d8615bb
Translated using Weblate (Swedish)
Jan 9, 2025
6c5307d
Translated using Weblate (Swedish)
westlund Jan 10, 2025
fdece4c
Translated using Weblate (Swedish)
westlund Jan 10, 2025
e1b279e
Translated using Weblate (Swedish)
westlund Jan 10, 2025
bce8a5f
Translated using Weblate (Portuguese (Brazil))
Jhonattan-Souza Jan 13, 2025
225b724
Translated using Weblate (Portuguese)
Jhonattan-Souza Jan 13, 2025
909372b
Translated using Weblate (Czech)
Jan 21, 2025
17116c5
Translated using Weblate (Swedish)
Ziron Feb 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
Copy link

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:

  • In custom_components/spook/integrations/spook_inverse/translations/ca.json, "name" is consistently translated as "Nom"
  • However, in custom_components/spook/translations/ca.json, "name" fields contain direct entity/feature names in Catalan without using the standard "Nom" translation

This 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:

#!/bin/bash
# Description: Check consistency of "Nom" translation across Catalan files
# Expected: All Catalan translation files should use "Nom" for name fields

# Find all Catalan translation files and check for "name" translations
fd -e json -x sh -c 'if grep -l "ca\.json$" <<< "{}" >/dev/null; then echo "=== {}:"; jq -r ".. | .name? // empty" "{}"; fi'

Length of output: 3734


Script:

#!/bin/bash
# Let's try a simpler approach to find and check Catalan translation files
# First find all ca.json files
fd "ca.json$" 

# Then let's examine their content specifically looking for name translations
fd "ca.json$" -x grep -H "\"name\":" {}

Length of output: 5854

},
"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
Copy link

Choose a reason for hiding this comment

The 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.

  • custom_components/spook/integrations/spook_inverse/translations/et.json: Add missing 'switch' option section to match other translation files
🔗 Analysis chain

Verify 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 executed

The 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
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix inconsistent translation of switch title

There's an inconsistency in the switch titles between the config and options sections:

  • Config section uses: "Inverse 👻"
  • Options section uses: "Kebalikannya 👻"

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 👻"
             }

Committable suggestion skipped: line range outside the PR's diff.

}
},
"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
Copy link

Choose a reason for hiding this comment

The 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:

  • options.step.binary_sensor.title - Missing title for binary sensor options
  • options.step.switch.data.entity_id - Missing entity ID field in switch options
  • options.step.switch.data.hide_source - Missing hide source field in switch options
  • options.step.switch.data.name - Missing name field in switch options
  • options.step.switch.title - Missing title for switch options
  • title - Missing root-level title
🔗 Analysis chain

Verify 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 executed

The 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

Loading
Loading