8000 Merge branch '3.12' into translate-library-numeric · python/python-docs-el@3c7df4c · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c7df4c

Browse files
authored
Merge branch '3.12' into translate-library-numeric
2 parents bbf39b4 + 83bec33 commit 3c7df4c

File tree

509 files changed

+103692
-28803
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

509 files changed

+103692
-28803
lines changed

.devcontainer/devcontainer.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "Python Translation Devcontainer",
3+
"image": "python:3.12-slim",
4+
"customizations": {
5+
"vscode": {
6+
"extensions": [
7+
"eamodio.gitlens",
8+
"github.vscode-pull-request-github",
9+
"github.vscode-github-actions",
10+
"redhat.vscode-yaml",
11+
"gettext.gettext",
12+
"restructuredtext.restructuredtext"
13+
],
14+
"settings": {
15+
"[python]": {
16+
"editor.formatOnSave": true,
17+
"editor.codeActionsOnSave": {
18+
"source.organizeImports": "always"
19+
}
20+
},
21+
"python.defaultInterpreterPath": "/usr/local/bin/python3",
22+
"terminal.integrated.defaultProfile.linux": "zsh",
23+
"terminal.integrated.profiles.linux": {
24+
"zsh": {
25+
"path": "/bin/zsh"
26+
}
27+
},
28+
"terminal.integrated.env.linux": {
29+
"ZSH": "/bin/zsh"
30+
}
31+
}
32+
}
33+
},
34+
"features": {
35+
"ghcr.io/devcontainers/features/git:1": {
36+
"version": "latest"
37+
},
38+
"ghcr.io/devcontainers/features/common-utils:2": {}
39+
},
40+
"workspaceFolder": "/python-docs-gr",
41+
"workspaceMount": "source=${localWorkspaceFolder},target=/python-docs-gr,type=bind,consistency=cached",
42+
"postCreateCommand": "sudo apt-get update && sudo apt-get install -y hunspell hunspell-el && pip install -r ./requirements.txt",
43+
"mounts": [
44+
"source=pip-cache,target=/home/translator/.cache/pip,type=volume"
45+
],
46+
"remoteUser": "translator"
47+
}

CONTRIBUTING.md

Lines changed: 93 additions & 81 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# from which we generated our po files. We use it here so when we
2222
# test build, we're building with the .rst files that generated our
2323
# .po files.
24-
CPYTHON_CURRENT_COMMIT := 9cbde7c6ce6f7b93301a37f03dfa0c0d45e00a39
24+
CPYTHON_CURRENT_COMMIT := 0274115585db8e26d9d1c0218fe65e5041c70f2c
2525

2626
CPYTHON_PATH := ./cpython
2727

@@ -69,8 +69,10 @@ all: ensure_prerequisites
6969
-D latex_elements.inputenc= \
7070
-D latex_elements.fontenc=' \
7171
$(MODE)
72-
@echo "Build success, open file://$(abspath $(CPYTHON_PATH))/Doc/build/html/index.html or run 'make serve' to see them."
73-
72+
@echo "Build successful! 🎉"
73+
@echo "You can now open the documentation in your browser:"
74+
@echo " file://$(abspath $(CPYTHON_PATH))/Doc/build/html/index.html"
75+
@echo "Or, run 'make serve' to start a local web server for the docs."
7476

7577
.PHONY: ensure_prerequisites
7678
ensure_prerequisites:
@@ -99,15 +101,27 @@ ensure_prerequisites:
99101

100102
.PHONY: serve
101103
serve:
102-
$(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('cpython/Doc/build/html/index.html'))"
104+
@echo "Starting local server at http://localhost:8000..."
105+
$(PYTHON) -m http.server -d cpython/Doc/build/html/
103106

107+
.PHONY: preview
108+
preview:
109+
make all && make serve
104110

105111
.PHONY: progress
106112
progress:
107113
@$(PYTHON) -c 'import sys; print("{:.1%}".format(int(sys.argv[1]) / int(sys.argv[2])))' \
108114
$(shell msgcat *.po */*.po | msgattrib --translated | grep -c '^msgid') \
109115
$(shell msgcat *.po */*.po | grep -c '^msgid')
110116

117+
.PHONY: spellcheck
118+
spellcheck:
119+
$(PYTHON) scripts/check_spelling.py $(filter-out $@, $(MAKECMDGOALS))
120+
121+
.PHONY: lint
122+
lint:
123+
powrap *.po **/*.po && \
124+
make spellcheck
111125

112126
.PHONY: todo
113127
todo: ensure_prerequisites

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# python-docs-gr
44
Η ελληνική μετάφραση των επίσημων εγγράφων της Python.
55

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

88
ΣΗΜΕΙΩΣΗ ΓΙΑ ΤΗΝ ΑΔΕΙΑ ΧΡΗΣΗΣ ΤΩΝ ΜΕΤΑΦΡΑΣΕΩΝ
99

@@ -25,9 +25,9 @@
2525
Υποβάλλοντας την εργασία σας στο PSF για να συμπεριληφθεί στον οδηγό χρήσης της Python,
2626
συμφωνείτε με αυτό το έγγραφο.
2727

28-
Το πρωτότυπο κείμενο του παραπάνου συμφωνητικού στα Αγγλικά βρίσκεται στο
28+
Το πρωτότυπο κείμενο του παραπάνω συμφωνητικού στα Αγγλικά βρίσκεται στο
2929
[PEP545](https://peps.python.org/pep-0545/#setup-the-documentation-contribution-agreement).
3030

31-
## Πως μπορώ να βοηθήσω στην μετάφραση;
31+
## Πως μπορώ να βοηθήσω στη μετάφραση;
3232

33-
Το έργο της μετάφρασης είναι εθελοντικό και στηρίζεται στους φίλους και στα μέλη της κοινότητας της Python! Κάθε συνεισφορά στην μετάφραση είναι σημαντική! Για περισότερες πληροφορίες για το πως μπορείτε να συνεισφέρετε δείτε [εδώ](./CONTRIBUTING.md).
33+
Το έργο της μετάφρασης είναι εθελοντικό και στηρίζεται στους φίλους και στα μέλη της κοινότητας της Python! Κάθε συνεισφορά στη μετάφραση είναι σημαντική! Για περισσότερες πληροφορίες για το πως μπορείτε να συνεισφέρετε δείτε [εδώ](./CONTRIBUTING.md).

about.po

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,32 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-03-14 12:51+0000\n"
11+
"POT-Creation-Date: 2025-02-17 21:03+0100\n"
1212
"PO-Revision-Date: 2024-03-31 19:50+0000\n"
1313
"Last-Translator: Theofanis Petkos <thepetk@gmail.com>\n"
1414
"Language-Team: PyGreece <pygreece@gmail.com>\n"
15+
"Language: \n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"
1819

1920
#: about.rst:3
20-
msgid "About these documents"
21+
#, fuzzy
22+
msgid "About this documentation"
2123
msgstr "Σχετικά με τα έγγραφα"
2224

2325
#: about.rst:6
26+
#, fuzzy
2427
msgid ""
25-
"These documents are generated from `reStructuredText`_ sources by `Sphinx`_, "
26-
"a document processor specifically written for the Python documentation."
28+
"Python's documentation is generated from `reStructuredText`_ sources using "
29+
"`Sphinx`_, a documentation generator originally created for Python and now "
30+
"maintained as an independent project."
2731
msgstr ""
2832
"Αυτά τα έγραφα έχουν δημιουργηθεί από τα `reStructuredText`_ sources του "
2933
"`Sphinx`_, έναν επεξεργαστή εγγράφων που έχει δημιουργηθεί ειδικά για τα "
3034
"έγγραφα της Python."
3135

32-
#: about.rst:15
36+
#: about.rst:16
3337
msgid ""
3438
"Development of the documentation and its toolchain is an entirely volunteer "
3539
"effort, just like Python itself. If you want to contribute, please take a "
@@ -41,39 +45,41 @@ msgstr ""
4145
"ρίξτε μια ματιά στη σελίδα :ref:`reporting-bugs` για πληροφορίες σχετικές με "
4246
"το πως να το κάνετε. Καινούριοι εθελοντές είναι πάντα ευπρόσδεκτοι!"
4347

44-
#: about.rst:20
48+
#: about.rst:21
4549
msgid "Many thanks go to:"
4650
msgstr "Πολλές ευχαριστίες πηγαίνουν στους:"
4751

48-
#: about.rst:22
52+
#: about.rst:23
53+
#, fuzzy
4954
msgid ""
5055
"Fred L. Drake, Jr., the creator of the original Python documentation toolset "
51-
"and writer of much of the content;"
56+
"and author of much of the content;"
5257
msgstr ""
5358
"Fred L. Drake, Jr., τον δημιουργό των αρχικών εργαλείων των εγγράφων της "
5459
"Python και συντάκτη αρκετού περιεχομένου'"
5560

56-
#: about.rst:24
61+
#: about.rst:25
5762
msgid ""
5863
"the `Docutils <https://docutils.sourceforge.io/>`_ project for creating "
5964
"reStructuredText and the Docutils suite;"
6065
msgstr ""
6166
"το `Docutils <https://docutils.sourceforge.io/>`_ πρότζεκτ για την "
6267
"δημιουργία των εφαρμογών reStructuredText και Docutils'"
6368

64-
#: about.rst:26
69+
#: about.rst:27
6570
msgid ""
6671
"Fredrik Lundh for his Alternative Python Reference project from which Sphinx "
6772
"got many good ideas."
6873
msgstr ""
6974
"Fredrik Lundh για το δικό του Alternative Python Reference πρότζεκτ από το "
7075
"οποίο το Sphinx πήρε πολύ καλές ιδέες."
7176

72-
#: about.rst:31
73-
msgid "Contributors to the Python Documentation"
77+
#: about.rst:32
78+
#, fuzzy
79+
msgid "Contributors to the Python documentation"
7480
msgstr "Συντελεστές στα έγγραφα της Python"
7581

76-
#: about.rst:33
82+
#: about.rst:34
7783
msgid ""
7884
"Many people have contributed to the Python language, the Python standard "
7985
"library, and the Python documentation. See :source:`Misc/ACKS` in the "
@@ -83,7 +89,7 @@ msgstr ""
8389
"Python, και τα έγγραφα της Python. Δείτε :source:`Misc/ACKS` στις πηγές "
8490
"διανομής της Python για μια λίστα των συντελεστών."
8591

86-
#: about.rst:37
92+
#: about.rst:38
8793
msgid ""
8894
"It is only with the input and contributions of the Python community that "
8995
"Python has such wonderful documentation -- Thank You!"

0 commit comments

Comments
 (0)
0