Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork16
translate-extending-building#1090
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
5 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
NextNext commit
translate-extending-building
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit0010f2d084bf8ff45a2ceaae363da3c9d6ed5ca9
There are no files selected for viewing
37 changes: 31 additions & 6 deletionsextending/building.po
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -9,23 +9,25 @@ msgstr "" | ||
"Project-Id-Version: Python 3.12\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2025-05-10 10:19+0300\n" | ||
"PO-Revision-Date:2025-05-21 21:57+0300\n" | ||
"Last-Translator:ALEXANDROS TZIORAS alextzioras23@gmail.com\n" | ||
"Language-Team:Language-Team: PyGreece <pygreece@gmail.com>\n" | ||
alextzioras marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
#: extending/building.rst:7 | ||
msgid "Building C and C++ Extensions" | ||
msgstr "Κατασκευή Επεκτάσεων C και C++" | ||
#: extending/building.rst:9 | ||
msgid "" | ||
"A C extension for CPython is a shared library (e.g. a ``.so`` file on Linux, " | ||
"``.pyd`` on Windows), which exports an *initialization function*." | ||
msgstr "" | ||
"Μια επέκταση C για τη CPython είναι μια κοινόχρηστη βιβλιοθήκη (π.χ. ένα αρχείο ``.so`` στο Linux, " | ||
"ή ``.pyd`` στα Windows), η οποία εξάγει μια *συνάρτηση αρχικοποίησης*." | ||
#: extending/building.rst:12 | ||
msgid "" | ||
@@ -34,16 +36,21 @@ msgid "" | ||
"extension. When using setuptools, the correct filename is generated " | ||
"automatically." | ||
msgstr "" | ||
"Για να μπορεί να γίνει η εισαγωγή της, η κοινόχρηστη βιβλιοθήκη πρέπει να είναι διαθέσιμη στo :envvar:`PYTHONPATH` " | ||
"και να έχει όνομα ίδιο με αυτό του module, με τη σωστή επέκταση αρχείου. Όταν χρησιμοποιείται το setuptools, το " | ||
"σωστό όνομα αρχείου δημιουργείται αυτόματα." | ||
#: extending/building.rst:16 | ||
msgid "The initialization function has the signature:" | ||
msgstr "Η συνάρτηση αρχικοποίησης έχει την εξής υπογραφή:" | ||
#: extending/building.rst:20 | ||
msgid "" | ||
"It returns either a fully initialized module, or a :c:type:`PyModuleDef` " | ||
"instance. See :ref:`initializing-modules` for details." | ||
msgstr "" | ||
"Επιστρέφει είτε ένα πλήρως αρχικοποιημένο module, είτε ένα στιγμιότυπο :c:type:`PyModuleDef`. " | ||
"Δείτε τo :ref:`initializing-modules` για περισσότερες λεπτομέρειες." | ||
#: extending/building.rst:25 | ||
msgid "" | ||
@@ -54,6 +61,11 @@ msgid "" | ||
"``PyInitU_<modulename>``, with ``<modulename>`` encoded using Python's " | ||
"*punycode* encoding with hyphens replaced by underscores. In Python::" | ||
msgstr "" | ||
"Για modules με ονόματα μόνο σε ASCII χαρακτήρες, η συνάρτηση πρέπει να ονομάζεται " | ||
"``PyInit_<modulename>``, όπου το ``<modulename>`` αντικαθίσταται με το όνομα του module. " | ||
"Όταν χρησιμοποιείται :ref:`multi-phase-initialization`, επιτρέπονται ονόματα module με μη ASCII χαρακτήρες. " | ||
"Σε αυτή την περίπτωση, η συνάρτηση αρχικοποίησης ονομάζεται ``PyInitU_<modulename>``, με το ``<modulename>`` " | ||
"να κωδικοποιείται με το *punycode* του Python, αντικαθιστώντας τις παύλες με κάτω παύλες. Στην Python::" | ||
#: extending/building.rst:32 | ||
msgid "" | ||
@@ -64,6 +76,12 @@ msgid "" | ||
" suffix = b'U_' + name.encode('punycode').replace(b'-', b'_')\n" | ||
" return b'PyInit' + suffix" | ||
msgstr "" | ||
"def initfunc_name(name):\n" | ||
" try:\n" | ||
" suffix = b'_' + name.encode('ascii')\n" | ||
" except UnicodeEncodeError:\n" | ||
" suffix = b'U_' + name.encode('punycode').replace(b'-', b'_')\n" | ||
" return b'PyInit' + suffix" | ||
#: extending/building.rst:39 | ||
msgid "" | ||
@@ -73,10 +91,14 @@ msgid "" | ||
"function corresponding to the filename is found. See the *\"Multiple modules " | ||
"in one library\"* section in :pep:`489` for details." | ||
msgstr "" | ||
"Είναι δυνατόν να εξαχθούν πολλά modules από μία κοινόχρηστη βιβλιοθήκη, ορίζοντας πολλαπλές συναρτήσεις αρχικοποίησης. " | ||
"Ωστόσο, για την εισαγωγή τους απαιτείται η χρήση συμβολικών συνδέσμων ή προσαρμοσμένου import μηχανισμού, " | ||
"καθώς από προεπιλογή βρίσκονται μόνο οι συναρτήσεις που αντιστοιχούν στο όνομα του αρχείου. " | ||
"Δείτε τo *\"Multiple modules in one library\"* στο :pep:`489` για λεπτομέρειες." | ||
#: extending/building.rst:52 | ||
msgid "Building C and C++ Extensions with setuptools" | ||
msgstr "Κατασκευή Επεκτάσεων C και C++ με το setuptools" | ||
#: extending/building.rst:54 | ||
msgid "" | ||
@@ -85,3 +107,6 @@ msgid "" | ||
"setuptools.html to learn more about how build and distribute C/C++ " | ||
"extensions with setuptools." | ||
msgstr "" | ||
"Από την έκδοση Python 3.12 και μετά, το distutils δεν περιλαμβάνεται πλέον. Παρακαλούμε ανατρέξτε " | ||
"στην τεκμηρίωση του ``setuptools`` στη διεύθυνση https://setuptools.readthedocs.io/en/latest/setuptools.html " | ||
"για να μάθετε περισσότερα σχετικά με την κατασκευή και διανομή επεκτάσεων C/C++ με το setuptools." |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.