Skip to content

Commit bb357c6

Browse files
committed
Fix tracking core resources completion, add a link
1 parent 76758ea commit bb357c6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.en.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ Polish Translation of Python Documentation
44
from manage_translation import get_resource_language_stats, progress_from_resources, language_switcher
55
66
stats = get_resource_language_stats()
7-
core = progress_from_resources(filter(language_switcher, stats))
7+
core_words, _ = progress_from_resources(list(filter(language_switcher, stats)))
88
total_words, total_strings = progress_from_resources(stats)
99
1010
print(
1111
f'''[![build](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg)](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml)
12-
![{core:.2f}% core](https://img.shields.io/badge/core-{core:.2f}%25-0.svg)
12+
[![core {core_words:.2f}%](https://img.shields.io/badge/core-{core_words:.2f}%25-0.svg)](https://python-docs-translations.github.io/dashboard/)
1313
[![Total Translation of Documentation](https://img.shields.io/badge/total_words-{total_words:.2f}%25-0.svg)](https://python-docs-translations.github.io/dashboard/)
1414
[![Total Translation of Documentation](https://img.shields.io/badge/total_strings-{total_strings:.2f}%25-0.svg)](https://python-docs-translations.github.io/dashboard/)''')
1515
]]] -->
1616
[![build](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg)](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml)
17+
[![core 99.00%](https://img.shields.io/badge/core-99.00%25-0.svg)](https://python-docs-translations.github.io/dashboard/)
1718
[![Total Translation of Documentation](https://img.shields.io/badge/total_words-5.44%25-0.svg)](https://python-docs-translations.github.io/dashboard/)
1819
[![Total Translation of Documentation](https://img.shields.io/badge/total_strings-12.50%25-0.svg)](https://python-docs-translations.github.io/dashboard/)
1920
<!-- [[[end]]] -->

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ Polskie tłumaczenie dokumentacji Pythona
44
from manage_translation import get_resource_language_stats, progress_from_resources, language_switcher
55
66
stats = get_resource_language_stats()
7-
core = progress_from_resources(filter(language_switcher, stats))
7+
core_words, _ = progress_from_resources(list(filter(language_switcher, stats)))
88
total_words, total_strings = progress_from_resources(stats)
99
1010
print(
1111
f'''[![build](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg)](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml)
12-
![{core:.2f}% core](https://img.shields.io/badge/podstawowe_artykuły-{core:.2f}%25-0.svg)
12+
[![podstawowe artykuły {core_words:.2f}%](https://img.shields.io/badge/podstawowe_artykuły-{core_words:.2f}%25-0.svg)](https://python-docs-translations.github.io/dashboard/)
1313
[![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość_słów-{total_words:.2f}%25-0.svg)](https://python-docs-translations.github.io/dashboard/)
1414
[![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość_napisów-{total_strings:.2f}%25-0.svg)](https://python-docs-translations.github.io/dashboard/)''')
1515
]]] -->
1616
[![build](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg)](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml)
17+
[![podstawowe artykuły 99.00%](https://img.shields.io/badge/podstawowe_artykuły-99.00%25-0.svg)](https://python-docs-translations.github.io/dashboard/)
1718
[![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość_słów-5.44%25-0.svg)](https://python-docs-translations.github.io/dashboard/)
1819
[![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość_napisów-12.50%25-0.svg)](https://python-docs-translations.github.io/dashboard/)
1920
<!-- [[[end]]] -->

0 commit comments

Comments
 (0)