diff --git a/README.en.md b/README.en.md index c65fc80adb..e380de6b15 100644 --- a/README.en.md +++ b/README.en.md @@ -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) diff --git a/README.md b/README.md index e00ddf4ad5..5094ed07a6 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/manage_translation.py b/manage_translation.py index f379183593..7a49d282ee 100755 --- a/manage_translation.py +++ b/manage_translation.py @@ -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 @@ -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)