Skip to content

Commit 1887b04

Browse files
authored
Add PL translations 2025.10.18 (apache#56825)
This includes fix to translation complentess script to generate properly plural forms of keys - for both nested and top-level keys.
1 parent 59089cd commit 1887b04

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

airflow-core/src/airflow/ui/public/i18n/locales/pl/components.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
2-
"allTags_few": "Wszystkie tagi ({{count}})",
3-
"allTags_many": "Wszystkie tagi ({{count}})",
4-
"allTags_one": "Wszystkie tagi ({{count}})",
5-
"allTags_other": "Wszystkie tagi ({{count}})",
62
"backfill": {
73
"affected_few": "{{count}} wykonania zostaną uruchomione.",
84
"affected_many": "{{count}} wykonań zostanie uruchomionych.",
@@ -107,19 +103,22 @@
107103
},
108104
"limitedList": "+{{count}} więcej",
109105
"limitedList.allItems": "Wszystkie {{count}} elementy:",
106+
"limitedList.allTags_few": "Wszystkie tagi ({{count}})",
107+
"limitedList.allTags_many": "Wszystkie tagi ({{count}})",
108+
"limitedList.allTags_one": "Wszystkie tagi (1)",
109+
"limitedList.allTags_other": "Wszystkie tagi ({{count}})",
110110
"limitedList.clickToInteract": "Kliknij etykietę, aby przefiltrować Dagi",
111111
"limitedList.clickToOpenFull": "Kliknij \"+{{count}} więcej\", aby zobaczyć pełną listę",
112112
"limitedList.copyPasteText": "Możesz skopiować i wkleić powyższy tekst",
113-
"limitedList.showingItems": "Wyświetlanie {{count}} elementów",
113+
"limitedList.showingItems_few": "Wyświetlanie {{count}} elementów",
114+
"limitedList.showingItems_many": "Wyświetlanie {{count}} elementów",
115+
"limitedList.showingItems_one": "Wyświetlanie 1 elementu",
116+
"limitedList.showingItems_other": "Wyświetlanie {{count}} elementów",
114117
"logs": {
115118
"file": "Plik",
116119
"location": "linia {{line}} w {{name}}"
117120
},
118121
"reparseDag": "Ponowne przetworznie Daga",
119-
"showingItems_few": "Wyświetlanie {{count}} elementy",
120-
"showingItems_many": "Wyświetlanie {{count}} elementów",
121-
"showingItems_one": "Wyświetlanie {{count}} elementu",
122-
"showingItems_other": "Wyświetlanie {{count}} elementów",
123122
"sortedAscending": "posortowane rosnąco",
124123
"sortedDescending": "posortowane malejąco",
125124
"sortedUnsorted": "nieposortowane",

airflow-core/src/airflow/ui/public/i18n/locales/pl/dags.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"all": "Wszystkie",
2121
"paused": "Wstrzymane"
2222
},
23-
"runIdPatternFilter": "Szukaj Wykonań Dagów",
24-
"triggeringUserNameFilter": "Szukaj według użytkownika wywołującego"
23+
"runIdPatternFilter": "Szukaj Wykonań Dagów"
2524
},
2625
"ownerLink": "Link do właściciela {{owner}}",
2726
"runAndTaskActions": {

airflow-core/src/airflow/ui/public/i18n/locales/pl/hitl.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"filters": {
3+
"body": "Treść",
4+
"createdAtFrom": "Utworzono od",
5+
"createdAtTo": "Utworzono do",
36
"response": {
47
"all": "Wszystkie",
58
"pending": "Oczekujące",

dev/i18n/check_translations_completeness.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -560,21 +560,16 @@ def add_keys(src, dst, prefix=""):
560560
full_key = f"{prefix}.{k}" if prefix else k
561561
base = get_plural_base(full_key, suffixes)
562562
if base and any(full_key == base + s for s in suffixes):
563-
# Add all plural forms at the current level (not nested)
564563
for suffix in suffixes:
565564
plural_key = base + suffix
565+
key_name = plural_key.split(".")[-1]
566566
if plural_key in missing_keys:
567-
key_name = k # This preserves the original structure
568-
if isinstance(v, dict):
569-
dst[key_name] = {}
570-
add_keys(v, dst[key_name], plural_key)
571-
else:
572-
dst[key_name] = f"TODO: translate: {v}"
567+
dst[key_name] = f"TODO: translate: {v}"
573568
continue
574569
if full_key in missing_keys:
575570
if isinstance(v, dict):
576571
dst[k] = {}
577-
add_keys(v, dst[k], k)
572+
add_keys(v, dst[k], full_key)
578573
else:
579574
dst[k] = f"TODO: translate: {v}"
580575
else:

0 commit comments

Comments
 (0)