This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 1887b041934 Add PL translations 2025.10.18 (#56825)
1887b041934 is described below
commit 1887b041934eee38ce568e447355862ecf81d7bc
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Oct 19 22:16:18 2025 +0200
Add PL translations 2025.10.18 (#56825)
This includes fix to translation complentess script to generate
properly plural forms of keys - for both nested and top-level keys.
---
.../airflow/ui/public/i18n/locales/pl/components.json | 17 ++++++++---------
.../src/airflow/ui/public/i18n/locales/pl/dags.json | 3 +--
.../src/airflow/ui/public/i18n/locales/pl/hitl.json | 3 +++
dev/i18n/check_translations_completeness.py | 11 +++--------
4 files changed, 15 insertions(+), 19 deletions(-)
diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/pl/components.json
b/airflow-core/src/airflow/ui/public/i18n/locales/pl/components.json
index 4dbb12e7a6c..932d7d87bf7 100644
--- a/airflow-core/src/airflow/ui/public/i18n/locales/pl/components.json
+++ b/airflow-core/src/airflow/ui/public/i18n/locales/pl/components.json
@@ -1,8 +1,4 @@
{
- "allTags_few": "Wszystkie tagi ({{count}})",
- "allTags_many": "Wszystkie tagi ({{count}})",
- "allTags_one": "Wszystkie tagi ({{count}})",
- "allTags_other": "Wszystkie tagi ({{count}})",
"backfill": {
"affected_few": "{{count}} wykonania zostaną uruchomione.",
"affected_many": "{{count}} wykonań zostanie uruchomionych.",
@@ -107,19 +103,22 @@
},
"limitedList": "+{{count}} więcej",
"limitedList.allItems": "Wszystkie {{count}} elementy:",
+ "limitedList.allTags_few": "Wszystkie tagi ({{count}})",
+ "limitedList.allTags_many": "Wszystkie tagi ({{count}})",
+ "limitedList.allTags_one": "Wszystkie tagi (1)",
+ "limitedList.allTags_other": "Wszystkie tagi ({{count}})",
"limitedList.clickToInteract": "Kliknij etykietę, aby przefiltrować Dagi",
"limitedList.clickToOpenFull": "Kliknij \"+{{count}} więcej\", aby zobaczyć
pełną listę",
"limitedList.copyPasteText": "Możesz skopiować i wkleić powyższy tekst",
- "limitedList.showingItems": "Wyświetlanie {{count}} elementów",
+ "limitedList.showingItems_few": "Wyświetlanie {{count}} elementów",
+ "limitedList.showingItems_many": "Wyświetlanie {{count}} elementów",
+ "limitedList.showingItems_one": "Wyświetlanie 1 elementu",
+ "limitedList.showingItems_other": "Wyświetlanie {{count}} elementów",
"logs": {
"file": "Plik",
"location": "linia {{line}} w {{name}}"
},
"reparseDag": "Ponowne przetworznie Daga",
- "showingItems_few": "Wyświetlanie {{count}} elementy",
- "showingItems_many": "Wyświetlanie {{count}} elementów",
- "showingItems_one": "Wyświetlanie {{count}} elementu",
- "showingItems_other": "Wyświetlanie {{count}} elementów",
"sortedAscending": "posortowane rosnąco",
"sortedDescending": "posortowane malejąco",
"sortedUnsorted": "nieposortowane",
diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/pl/dags.json
b/airflow-core/src/airflow/ui/public/i18n/locales/pl/dags.json
index 9ca67b21a5b..61b1f1fe712 100644
--- a/airflow-core/src/airflow/ui/public/i18n/locales/pl/dags.json
+++ b/airflow-core/src/airflow/ui/public/i18n/locales/pl/dags.json
@@ -20,8 +20,7 @@
"all": "Wszystkie",
"paused": "Wstrzymane"
},
- "runIdPatternFilter": "Szukaj Wykonań Dagów",
- "triggeringUserNameFilter": "Szukaj według użytkownika wywołującego"
+ "runIdPatternFilter": "Szukaj Wykonań Dagów"
},
"ownerLink": "Link do właściciela {{owner}}",
"runAndTaskActions": {
diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/pl/hitl.json
b/airflow-core/src/airflow/ui/public/i18n/locales/pl/hitl.json
index 428f1313ce1..c5023a8ad12 100644
--- a/airflow-core/src/airflow/ui/public/i18n/locales/pl/hitl.json
+++ b/airflow-core/src/airflow/ui/public/i18n/locales/pl/hitl.json
@@ -1,5 +1,8 @@
{
"filters": {
+ "body": "Treść",
+ "createdAtFrom": "Utworzono od",
+ "createdAtTo": "Utworzono do",
"response": {
"all": "Wszystkie",
"pending": "Oczekujące",
diff --git a/dev/i18n/check_translations_completeness.py
b/dev/i18n/check_translations_completeness.py
index c7685f4545d..0cff4c97e86 100755
--- a/dev/i18n/check_translations_completeness.py
+++ b/dev/i18n/check_translations_completeness.py
@@ -560,21 +560,16 @@ def add_missing_translations(language: str, summary:
dict[str, LocaleSummary], c
full_key = f"{prefix}.{k}" if prefix else k
base = get_plural_base(full_key, suffixes)
if base and any(full_key == base + s for s in suffixes):
- # Add all plural forms at the current level (not nested)
for suffix in suffixes:
plural_key = base + suffix
+ key_name = plural_key.split(".")[-1]
if plural_key in missing_keys:
- key_name = k # This preserves the original
structure
- if isinstance(v, dict):
- dst[key_name] = {}
- add_keys(v, dst[key_name], plural_key)
- else:
- dst[key_name] = f"TODO: translate: {v}"
+ dst[key_name] = f"TODO: translate: {v}"
continue
if full_key in missing_keys:
if isinstance(v, dict):
dst[k] = {}
- add_keys(v, dst[k], k)
+ add_keys(v, dst[k], full_key)
else:
dst[k] = f"TODO: translate: {v}"
else: