Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ f'''![build](https://github.com/python/python-docs-pl/actions/workflows/update-l
![Total Translation of Documentation](https://img.shields.io/badge/Total-{total:.3f}%25-0.svg)
![{translators} Translators](https://img.shields.io/badge/Translators-{translators}-0.svg)''')
]]] -->
Stan Ulbrych and Stanislaw Ulbrych are similar (0.828). Deduplicating.
![build](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg)
![Total Translation of Documentation](https://img.shields.io/badge/Total-4.725%25-0.svg)
![24 Translators](https://img.shields.io/badge/Translators-24-0.svg)
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ f'''![build](https://github.com/python/python-docs-pl/actions/workflows/update-l
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-{total:.3f}%25-0.svg)
![{translators} tłumaczy](https://img.shields.io/badge/tłumaczy-{translators}-0.svg)''')
]]] -->
Stan Ulbrych and Stanislaw Ulbrych are similar (0.828). Deduplicating.
![build](https://github.com/python/python-docs-pl/actions/workflows/update-lint-and-build.yml/badge.svg)
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-4.725%25-0.svg)
![24 tłumaczy](https://img.shields.io/badge/tłumaczy-24-0.svg)
Expand Down
5 changes: 2 additions & 3 deletions manage_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from contextlib import chdir
from dataclasses import dataclass
from difflib import SequenceMatcher
from logging import info
from pathlib import Path
from subprocess import call
import sys
Expand Down Expand Up @@ -174,9 +175,7 @@ def _eliminate_aliases(translators: set[str]) -> set[str]:
for name in translators:
for match in unique:
if (ratio := SequenceMatcher(lambda x: x in '<>@', name, match).ratio()) > 0.64:
print(
f"{name} and {match} are similar ({ratio:.3f}). Deduplicating."
)
info(f"{name} and {match} are similar ({ratio:.3f}). Deduplicating.")
break
else:
unique.add(name)
Expand Down