Skip to content

Commit 15043a3

Browse files
committed
Track core resources completion
1 parent 8b3ff2e commit 15043a3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.en.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ 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))
78
total_words, total_strings = progress_from_resources(stats)
89
910
print(
1011
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)
1113
[![Total Translation of Documentation](https://img.shields.io/badge/total_words-{total_words:.2f}%25-0.svg)](https://python-docs-translations.github.io/dashboard/)
1214
[![Total Translation of Documentation](https://img.shields.io/badge/total_strings-{total_strings:.2f}%25-0.svg)](https://python-docs-translations.github.io/dashboard/)''')
1315
]]] -->

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
Polskie tłumaczenie dokumentacji Pythona
22
========================================
33
<!-- [[[cog
4-
from manage_translation import get_resource_language_stats, progress_from_resources
4+
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))
78
total_words, total_strings = progress_from_resources(stats)
89
910
print(
1011
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)
1113
[![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/)
1214
[![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/)''')
1315
]]] -->

0 commit comments

Comments
 (0)