Skip to content

Commit

Permalink
Add Czech translation
Browse files Browse the repository at this point in the history
  • Loading branch information
bastgau authored Mar 2, 2025
2 parents 69cf725 + 0e099f3 commit c20c5ce
Show file tree
Hide file tree
Showing 10 changed files with 117 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"[python]": {
"_editor.defaultFormatter": "ms-python.black-formatter"
},
"python.formatting.provider": "none"
}
"python.formatting.provider": "none",
"files.insertFinalNewline": true
}
1 change: 0 additions & 1 deletion custom_components/pi_hole_v6/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class PiHoleV6BinarySensor(PiHoleV6Entity, BinarySensorEntity):
"""Representation of a Pi-hole V6 binary sensor."""

entity_description: PiHoleV6BinarySensorEntityDescription
_attr_has_entity_name = True

def __init__(
self,
Expand Down
2 changes: 2 additions & 0 deletions custom_components/pi_hole_v6/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
class PiHoleV6Entity(CoordinatorEntity[DataUpdateCoordinator[None]]):
"""Representation of a Pi-hole V6 entity."""

_attr_has_entity_name = True

def __init__(
self,
api: PiholeAPI,
Expand Down
1 change: 0 additions & 1 deletion custom_components/pi_hole_v6/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ class PiHoleV6Sensor(PiHoleV6Entity, SensorEntity):
"""Representation of a Pi-hole V6 sensor."""

entity_description: SensorEntityDescription
_attr_has_entity_name = True

def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/pi_hole_v6/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@
"description": "Enable configured Pi-hole(s)."
}
}
}
}
2 changes: 2 additions & 0 deletions custom_components/pi_hole_v6/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class PiHoleV6Switch(PiHoleV6Entity, SwitchEntity):
"""Representation of a Pi-hole V6 switch."""

_attr_icon = "mdi:pi-hole"
_attr_has_entity_name = False

@property
def name(self) -> str:
Expand Down Expand Up @@ -172,6 +173,7 @@ class PiHoleV6Group(PiHoleV6Entity, SwitchEntity):
entity_description: SwitchEntityDescription
_attr_has_entity_name = True
_attr_icon = "mdi:account-multiple"
_attr_translation_key = "group"

def __init__(
self,
Expand Down
107 changes: 107 additions & 0 deletions custom_components/pi_hole_v6/translations/cs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"config": {
"abort": {
"reauth_successful": "Opětovné ověření bylo úspěšné."
},
"error": {
"cannot_connect": "Nepodařilo se připojit k serveru. Ujistěte se, že adresa serveru a port jsou správné.",
"invalid_auth": "Nesprávné heslo. Ujistěte se, že vaše heslo je správné.",
"invalid_path": "Nesprávná URL adresa API. Ověřte, prosím, URL API."
},
"step": {
"user": {
"data": {
"name": "Jméno",
"password": "Heslo",
"url": "URL adresa API"
},
"data_description": {
"password": "Heslo pro přihlášení",
"url": "URL adresa vašeho Pi-hole (ie: https://pi.hole:443/api)"
},
"description": "Tato integrace umožňuje získávat statistiky a interagovat s Pi-hole V6.",
"title": "Pi-hole V6"
}
}
},
"entity": {
"binary_sensor": {
"status": {
"name": "Stav"
}
},
"sensor": {
"ads_blocked_today": {
"name": "Dnes blokované reklamy",
"unit_of_measurement": "reklam"
},
"ads_percentage_today": {
"name": "Poměr dnes blokovaných reklam"
},
"clients_ever_seen": {
"name": "Vidění klienti",
"unit_of_measurement": "klientů"
},
"dns_queries_today": {
"name": "Dnes DNS dotazů",
"unit_of_measurement": "dotazů"
},
"domains_being_blocked": {
"name": "Blokované domény",
"unit_of_measurement": "domén"
},
"queries_cached": {
"name": "Kešované DNS dotazy",
"unit_of_measurement": "dotazů"
},
"queries_forwarded": {
"name": "Přeposlané DNS dotazy",
"unit_of_measurement": "dotazů"
},
"unique_clients": {
"name": "Unikátní DNS klienti",
"unit_of_measurement": "klientů"
},
"unique_domains": {
"name": "Unikátní DNS domény",
"unit_of_measurement": "domén"
},
"timer": {
"name": "Zbývající čas do blokování",
"unit_of_measurement": "sekund"
}
},
"switch": {
"group": {
"name": "Skupina {groupName}"
}
},
"update": {
"core_update_available": {
"name": "Aktualizace Core"
},
"ftl_update_available": {
"name": "Aktualizace FTP"
},
"web_update_available": {
"name": "Aktualizace Web"
}
}
},
"services": {
"disable": {
"name": "Zakázat",
"description": "Zakáze Pi-hole na určitou dobu.",
"fields": {
"duration": {
"description": "Doba, po kterou má být Pi-hole zakázán.",
"name": "Doba"
}
}
},
"enable": {
"name": "Povolit",
"description": "Povolí Pi-hole."
}
}
}
2 changes: 1 addition & 1 deletion custom_components/pi_hole_v6/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@
"description": "Enables configured Pi-hole."
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/pi_hole_v6/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@
"description": "Active le service Pi-hole configuré."
}
}
}
}
1 change: 0 additions & 1 deletion custom_components/pi_hole_v6/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ class PiHoleV6UpdateEntity(PiHoleV6Entity, UpdateEntity):
"""Representation of a Pi-hole update entity."""

entity_description: PiHoleV6UpdateEntityDescription
_attr_has_entity_name = True

def __init__(
self,
Expand Down

0 comments on commit c20c5ce

Please sign in to comment.