Skip to content

Commit 8b5d421

Browse files
committed
Remove bot from translators count
1 parent dcb0155 commit 8b5d421

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ f'''![build](https://github.com/python/python-docs-pl/workflows/.github/workflow
1717
![build](https://github.com/python/python-docs-pl/workflows/.github/workflows/update-and-build.yml/badge.svg)
1818
![49.64% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-49.64%25-0.svg)
1919
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-3.53%25-0.svg)
20-
![19 tłumaczy](https://img.shields.io/badge/tłumaczy-19-0.svg)
20+
![18 tłumaczy](https://img.shields.io/badge/tłumaczy-18-0.svg)
2121
<!-- [[[end]]] -->
2222

2323
Jeśli znalazłeś(-aś) błąd lub masz sugestię,

manage_translation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def progress_from_resources(resources: Iterable[ResourceLanguageStatistics]) ->
168168

169169
def get_number_of_translators():
170170
translators = set(_fetch_translators())
171+
_remove_bot(translators)
171172
_remove_aliases(translators)
172173
_check_for_new_aliases(translators)
173174
return len(translators)
@@ -181,6 +182,10 @@ def _fetch_translators() -> Generator[str, None, None]:
181182
yield translator
182183

183184

185+
def _remove_bot(translators: set[str]) -> None:
186+
translators.remove("Transifex Bot <>")
187+
188+
184189
def _remove_aliases(translators: set[str]) -> None:
185190
for alias, main in (("m_aciek <maciej.olko@gmail.com>", "Maciej Olko <maciej.olko@gmail.com>"),):
186191
translators.remove(alias)

0 commit comments

Comments
 (0)