10000 Minor fixes to CONTRIBUTING.md and spell check script by lysnikolaou · Pull Request #12 · python/python-docs-el · GitHub
[go: up one dir, main page]

Skip to content

Minor fixes to CONTRIBUTING.md and spell check script #12

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Link to CONTRIBUTING.md from README & minor fixes to spell check script
  • Loading branch information
lysnikolaou committed Mar 27, 2024
commit f858a7ab7ab56bb987f7520f9e29fda218c024d7
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
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# python-docs-gr
Greek Translation of the Python Documentation

Μετάφραση στα Ελληνικά του οδηγού χρήσης της Python

### Πώς μπορώ να συνεισφέρω;

Για περισσότερες πληροφορίες για το πώς μπορείτε να συνεισφέρετε στην μετάφραση στα Ελληνικά,
δείτε το αρχείο [CONTRIBUTING.md](./CONTRIBUTING.md).

### Συμφωνητικό Συνεισφοράς στην Μετάφραση των Εγγράφων

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
0