Skip to content

Menerjemahkan c-api #19

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 3 commits into from
Apr 2, 2021
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
126 changes: 92 additions & 34 deletions c-api/file.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,117 +2,168 @@
# Copyright (C) 2001-2020, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
#
# Translators:
# Elmo Allistair, 2021
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.9\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-21 04:23+0000\n"
"PO-Revision-Date: 2017-02-16 17:35+0000\n"
"PO-Revision-Date: 2021-04-02 20:35+0700\n"
"Last-Translator: Elmo Allistair, 2021\n"
"Language-Team: Indonesian (https://www.transifex.com/python-doc/teams/5390/id/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: id\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Last-Translator: \n"
"X-Generator: Poedit 2.2\n"

#: ../../c-api/file.rst:6
msgid "File Objects"
msgstr ""
msgstr "Objek File"

#: ../../c-api/file.rst:10
msgid ""
"These APIs are a minimal emulation of the Python 2 C API for built-in file "
"objects, which used to rely on the buffered I/O (:c:type:`FILE*`) support "
"from the C standard library. In Python 3, files and streams use the new "
":mod:`io` module, which defines several layers over the low-level unbuffered"
" I/O of the operating system. The functions described below are convenience"
" C wrappers over these new APIs, and meant mostly for internal error "
"reporting in the interpreter; third-party code is advised to access the "
":mod:`io` APIs instead."
msgstr ""
"from the C standard library. In Python 3, files and streams use the new :"
"mod:`io` module, which defines several layers over the low-level unbuffered "
"I/O of the operating system. The functions described below are convenience "
"C wrappers over these new APIs, and meant mostly for internal error "
"reporting in the interpreter; third-party code is advised to access the :"
"mod:`io` APIs instead."
msgstr ""
"API ini adalah emulasi minimal Python 2 C API untuk objek file bawaan, yang "
"biasanya mengandalkan dukungan I/O (:c:type:`FILE*`) yang di-buffer dari "
"pustaka standar C. Dalam Python 3, file dan aliran menggunakan modul baru :"
"mod:`io`, yang mendefinisikan beberapa lapisan di atas I/O tanpa buffer "
"dari sistem operasi tingkat rendah . Fungsi yang dijelaskan di bawah ini "
"adalah pembungkus kenyamanan C atas API baru ini, dan sebagian besar "
"dimaksudkan untuk pelaporan kesalahan internal di interpreter; kode pihak "
"ketiga disarankan untuk mengakses :mod:`io` APIs sebagai gantinya."

#: ../../c-api/file.rst:22
msgid ""
"Create a Python file object from the file descriptor of an already opened "
"file *fd*. The arguments *name*, *encoding*, *errors* and *newline* can be "
"``NULL`` to use the defaults; *buffering* can be *-1* to use the default. "
"*name* is ignored and kept for backward compatibility. Return ``NULL`` on "
"failure. For a more comprehensive description of the arguments, please refer"
" to the :func:`io.open` function documentation."
"failure. For a more comprehensive description of the arguments, please "
"refer to the :func:`io.open` function documentation."
msgstr ""
"Membuat objek file Python dari deskriptor file dari file yang sudah dibuka "
"*fd*. Argumen *name*, *encoding*, *errors* dan * newline* bisa ``NULL`` "
"untuk menggunakan nilai default; *buffering* bisa *-1* untuk menggunakan "
"default. *name* diabaikan dan disimpan untuk kompatibilitas ke belakang. "
"Mengembalikan ``NULL`` jika gagal. Untuk penjelasan yang lebih lengkap "
"tentang argumen, silakan merujuk ke dokumentasi fungsi :func:`io.open`."

#: ../../c-api/file.rst:31
msgid ""
"Since Python streams have their own buffering layer, mixing them with OS-"
"level file descriptors can produce various issues (such as unexpected "
"ordering of data)."
msgstr ""
"Karena aliran Python memiliki lapisan penyangga sendiri, mencampurnya "
"dengan deskriptor file tingkat OS dapat menghasilkan berbagai masalah "
"(seperti pengurutan data yang tidak terduga)."

#: ../../c-api/file.rst:35
msgid "Ignore *name* attribute."
msgstr ""
msgstr "Abaikan atribut *name*."

#: ../../c-api/file.rst:41
msgid ""
"Return the file descriptor associated with *p* as an :c:type:`int`. If the "
"object is an integer, its value is returned. If not, the object's "
":meth:`~io.IOBase.fileno` method is called if it exists; the method must "
"return an integer, which is returned as the file descriptor value. Sets an "
"object is an integer, its value is returned. If not, the object's :meth:"
"`~io.IOBase.fileno` method is called if it exists; the method must return "
"an integer, which is returned as the file descriptor value. Sets an "
"exception and returns ``-1`` on failure."
msgstr ""
"Mengembalikan deskriptor file yang terkait dengan *p* sebagai :c:type:"
"`int`. Jika objek adalah bilangan bulat, nilainya dikembalikan. Jika tidak, "
"metode objek :meth:`~io.IOBase.fileno` akan dipanggil jika ada; metode "
"harus mengembalikan bilangan bulat, yang dikembalikan sebagai nilai "
"deskriptor file. Menetapkan pengecualian dan mengembalikan ``-1`` jika "
"gagal."

#: ../../c-api/file.rst:52
msgid ""
"Equivalent to ``p.readline([n])``, this function reads one line from the "
"object *p*. *p* may be a file object or any object with a "
":meth:`~io.IOBase.readline` method. If *n* is ``0``, exactly one line is "
"read, regardless of the length of the line. If *n* is greater than ``0``, "
"no more than *n* bytes will be read from the file; a partial line can be "
"returned. In both cases, an empty string is returned if the end of the file"
" is reached immediately. If *n* is less than ``0``, however, one line is "
"read regardless of length, but :exc:`EOFError` is raised if the end of the "
"file is reached immediately."
msgstr ""
"object *p*. *p* may be a file object or any object with a :meth:`~io."
"IOBase.readline` method. If *n* is ``0``, exactly one line is read, "
"regardless of the length of the line. If *n* is greater than ``0``, no "
"more than *n* bytes will be read from the file; a partial line can be "
"returned. In both cases, an empty string is returned if the end of the "
"file is reached immediately. If *n* is less than ``0``, however, one line "
"is read regardless of length, but :exc:`EOFError` is raised if the end of "
"the file is reached immediately."
msgstr ""
"Setara dengan ``p.readline([n])``, fungsi ini membaca satu baris dari objek "
"*p*. *p* dapat berupa objek file atau objek apa pun dengan metode :meth:"
"`~io.IOBase.readline`. Jika *n* adalah ``0``, tepat satu baris terbaca, "
"berapa pun panjang barisnya. Jika *n* lebih besar dari ``0``, tidak lebih "
"dari *n* byte yang akan dibaca dari file; garis parsial dapat dikembalikan. "
"Dalam kedua kasus, string kosong dikembalikan jika akhir file dicapai "
"dengan segera. Jika *n* lebih kecil dari ``0``, bagaimanapun, satu baris "
"dibaca berapa pun panjangnya, tapi :exc:`EOFError` dimunculkan jika akhir "
"file dicapai dengan segera."

#: ../../c-api/file.rst:65
msgid ""
"Overrides the normal behavior of :func:`io.open_code` to pass its parameter "
"through the provided handler."
msgstr ""
"Mengganti perilaku normal :func:`io.open_code` untuk meneruskan "
"parameternya melalui penangan yang disediakan."

#: ../../c-api/file.rst:68
msgid ""
"The handler is a function of type :c:type:`PyObject *(\\*)(PyObject *path, "
"void *userData)`, where *path* is guaranteed to be "
":c:type:`PyUnicodeObject`."
"void *userData)`, where *path* is guaranteed to be :c:type:"
"`PyUnicodeObject`."
msgstr ""
"Handler adalah fungsi dari tipe :c:type:`PyObject *(\\*)(PyObject *path, "
"void *userData)`, di mana *path* dijamin menjadi :c:type:`PyUnicodeObject`."

#: ../../c-api/file.rst:71
msgid ""
"The *userData* pointer is passed into the hook function. Since hook "
"functions may be called from different runtimes, this pointer should not "
"refer directly to Python state."
msgstr ""
"Pointer *userData* diteruskan ke fungsi hook. Karena fungsi hook dapat "
"dipanggil dari runtime yang berbeda, pointer ini tidak boleh merujuk "
"langsung ke status Python."

#: ../../c-api/file.rst:75
msgid ""
"As this hook is intentionally used during import, avoid importing new "
"modules during its execution unless they are known to be frozen or available"
" in ``sys.modules``."
"modules during its execution unless they are known to be frozen or "
"available in ``sys.modules``."
msgstr ""
"Karena hook ini sengaja digunakan selama impor, hindari mengimpor modul "
"baru selama eksekusinya kecuali jika mereka diketahui telah dibekukan atau "
"tersedia di ``sys.modules``."

#: ../../c-api/file.rst:79
msgid ""
"Once a hook has been set, it cannot be removed or replaced, and later calls "
"to :c:func:`PyFile_SetOpenCodeHook` will fail. On failure, the function "
"returns -1 and sets an exception if the interpreter has been initialized."
msgstr ""
"Setelah hook diatur, hook tidak dapat dilepas atau diganti, dan panggilan "
"ke :c:func:`PyFile_SetOpenCodeHook` akan gagal. Jika gagal, fungsi "
"mengembalikan -1 dan mengatur pengecualian jika interpreter telah "
"diinisialisasi."

#: ../../c-api/file.rst:83
msgid "This function is safe to call before :c:func:`Py_Initialize`."
msgstr ""
msgstr "Fungsi ini aman untuk dipanggil sebelum :c:func:`Py_Initialize`."

#: ../../c-api/file.rst:86
msgid ""
Expand All @@ -123,13 +174,20 @@ msgstr ""
#: ../../c-api/file.rst:95
msgid ""
"Write object *obj* to file object *p*. The only supported flag for *flags* "
"is :const:`Py_PRINT_RAW`; if given, the :func:`str` of the object is written"
" instead of the :func:`repr`. Return ``0`` on success or ``-1`` on failure;"
" the appropriate exception will be set."
"is :const:`Py_PRINT_RAW`; if given, the :func:`str` of the object is "
"written instead of the :func:`repr`. Return ``0`` on success or ``-1`` on "
"failure; the appropriate exception will be set."
msgstr ""
"Menulis objek *obj* ke file objek *p*. Satu-satunya tanda yang didukung "
"untuk *flags* adalah :const:`Py_PRINT_RAW`; jika diberikan, fungsi :func:"
"`str` dari objek akan dituliskan sebagai pengganti :func:`repr`. "
"Mengembalikan ``0`` saat sukses atau ``-1`` saat gagal; pengecualian yang "
"sesuai akan ditetapkan."

#: ../../c-api/file.rst:103
msgid ""
"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
"failure; the appropriate exception will be set."
msgstr ""
"Menulis string *s* ke file objek *p*. Mengembalikan ``0`` saat sukses atau "
"``-1`` saat gagal; pengecualian yang sesuai akan ditetapkan."
74 changes: 52 additions & 22 deletions c-api/float.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,95 +2,125 @@
# Copyright (C) 2001-2021, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
#
# Translators:
# Elmo Allistair, 2021
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.9\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-07 05:06+0000\n"
"PO-Revision-Date: 2017-02-16 17:35+0000\n"
"PO-Revision-Date: 2021-04-02 20:30+0700\n"
"Last-Translator: Elmo Allistair, 2021\n"
"Language-Team: Indonesian (https://www.transifex.com/python-doc/teams/5390/id/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: id\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Last-Translator: \n"
"X-Generator: Poedit 2.2\n"

#: ../../c-api/float.rst:6
msgid "Floating Point Objects"
msgstr ""
msgstr "Objek Pecahan"

#: ../../c-api/float.rst:13
msgid ""
"This subtype of :c:type:`PyObject` represents a Python floating point "
"object."
msgstr ""
msgstr "Subtipe dari :c:type:`PyObject` ini mewakili objek pecahan Python."

#: ../../c-api/float.rst:18
msgid ""
"This instance of :c:type:`PyTypeObject` represents the Python floating point"
" type. This is the same object as :class:`float` in the Python layer."
"This instance of :c:type:`PyTypeObject` represents the Python floating "
"point type. This is the same object as :class:`float` in the Python layer."
msgstr ""
"Instance dari :c:type:`PyTypeObject` ini mewakili tipe pecahan Python. Ini "
"adalah objek yang sama dengan :class:`float` di lapisan Python."

#: ../../c-api/float.rst:24
msgid ""
"Return true if its argument is a :c:type:`PyFloatObject` or a subtype of "
":c:type:`PyFloatObject`. This function always succeeds."
msgstr ""
"Mengambalikan nilai true jika argumennya adalah :c:type:`PyFloatObject` "
"atau subtipe dari :c:type:`PyFloatObject`. Fungsi ini selalu sukses."

#: ../../c-api/float.rst:30
msgid ""
"Return true if its argument is a :c:type:`PyFloatObject`, but not a subtype "
"of :c:type:`PyFloatObject`. This function always succeeds."
msgstr ""
"Mengambalikan nilai true jika argumennya adalah :c:type:`PyFloatObject`, "
"tetapi bukan subtipe dari :c:type:`PyFloatObject`."

#: ../../c-api/float.rst:36
msgid ""
"Create a :c:type:`PyFloatObject` object based on the string value in *str*, "
"or ``NULL`` on failure."
msgstr ""
"Membuat objek :c:type:`PyFloatObject` berdasarkan nilai string di *str*, "
"atau ``NULL`` jika gagal."

#: ../../c-api/float.rst:42
msgid ""
"Create a :c:type:`PyFloatObject` object from *v*, or ``NULL`` on failure."
msgstr ""
"Membuat objek :c:type:`PyFloatObject` dari *v*, atau ``NULL`` jika gagal."

#: ../../c-api/float.rst:47
msgid ""
"Return a C :c:type:`double` representation of the contents of *pyfloat*. If"
" *pyfloat* is not a Python floating point object but has a :meth:`__float__`"
" method, this method will first be called to convert *pyfloat* into a float."
" If ``__float__()`` is not defined then it falls back to :meth:`__index__`. "
"This method returns ``-1.0`` upon failure, so one should call "
":c:func:`PyErr_Occurred` to check for errors."
"Return a C :c:type:`double` representation of the contents of *pyfloat*. "
"If *pyfloat* is not a Python floating point object but has a :meth:"
"`__float__` method, this method will first be called to convert *pyfloat* "
"into a float. If ``__float__()`` is not defined then it falls back to :meth:"
"`__index__`. This method returns ``-1.0`` upon failure, so one should call :"
"c:func:`PyErr_Occurred` to check for errors."
msgstr ""
"Mengembalikan representasi C :c:type:`double` dari konten *pyfloat*. Jika "
"*pyfloat* bukan objek pecahan Python tetapi memiliki metode :meth:"
"`__float__`, metode ini pertama-tama akan dipanggil untuk mengubah "
"*pyfloat* menjadi float. Jika ``__float__ ()`` tidak ditentukan maka "
"kembali ke :meth:`__index__`. Metode ini mengembalikan ``-1.0`` setelah "
"gagal, jadi seseorang harus memanggil :c:func:`PyErr_Occurred` untuk "
"memeriksa kesalahan."

#: ../../c-api/float.rst:54
msgid "Use :meth:`__index__` if available."
msgstr ""
msgstr "Gunakan :meth:`__index__` jika tersedia."

#: ../../c-api/float.rst:60
msgid ""
"Return a C :c:type:`double` representation of the contents of *pyfloat*, but"
" without error checking."
"Return a C :c:type:`double` representation of the contents of *pyfloat*, "
"but without error checking."
msgstr ""
"Mengembalikan representasi C :c:type:`double` dari konten *pyfloat*, tetapi "
"tanpa pemeriksaan error."

#: ../../c-api/float.rst:66
msgid ""
"Return a structseq instance which contains information about the precision, "
"minimum and maximum values of a float. It's a thin wrapper around the header"
" file :file:`float.h`."
"minimum and maximum values of a float. It's a thin wrapper around the "
"header file :file:`float.h`."
msgstr ""
"Mengembalikan instance structseq yang berisi informasi tentang presisi, "
"nilai minimum dan maksimum float. Ini adalah pembungkus tipis di sekitar "
"file header :file:`float.h`."

#: ../../c-api/float.rst:73
msgid ""
"Return the maximum representable finite float *DBL_MAX* as C "
":c:type:`double`."
"Return the maximum representable finite float *DBL_MAX* as C :c:type:"
"`double`."
msgstr ""
"Mengembalikan float maksimum yang dapat direpresentasikan *DBL_MAX* sebagai "
"C :c:type:`double`."

#: ../../c-api/float.rst:78
msgid ""
"Return the minimum normalized positive float *DBL_MIN* as C "
":c:type:`double`."
"Return the minimum normalized positive float *DBL_MIN* as C :c:type:"
"`double`."
msgstr ""
"Mengembalikan float positif minimum yang dinormalisasi *DBL_MIN* sebagai C :"
"c:type:`double`."
Loading