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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Οδηγός συνεισφοράς στο πρότζεκτ Python-Doc-Gr της κοινότητας PyGreece
# Οδηγός συνεισφοράς στο πρότζεκτ Python-Docs-Gr της κοινότητας PyGreece

Eυχαριστούμε πολύ για το ενδιαφέρον σας να συμμετέχετε στη μετάφραση των επίσημων εγγράφων της Python στα Ελληνικά!

Expand Down
24 changes: 12 additions & 12 deletions scripts/check_spelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ def check_spell(po_files=None):
)

# Write merged dictionary file
output_filename = tempfile.mktemp(suffix="_merged_dict.txt")
with open(output_filename, "w") as f:
for e in entries:
f.write(f"{e}\n")

# Run pospell either against all files or the file given on the command line
if not po_files:
po_files = Path(".").glob("*/*.po")

detected_errors = pospell.spell_check(
po_files, personal_dict=output_filename, language="el_EL"
)
with tempfile.NamedTemporaryFile(suffix="_merged_dict.txt") as output_filename:
with open(output_filename, "w") as f:
for e in entries:
f.write(f"{e}\n")

# Run pospell either against all files or the file given on the command line
if not po_files:
po_files = Path(".").glob("*/*.po")

detected_errors = pospell.spell_check(
po_files, personal_dict=output_filename, language="el_EL"
)
return detected_errors


Expand Down