|
1 | 1 | # SOME DESCRIPTIVE TITLE. |
2 | | -# Copyright (C) 2001-2020, Python Software Foundation |
| 2 | +# Copyright (C) 2001 Python Software Foundation |
3 | 3 | # This file is distributed under the same license as the Python package. |
4 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
5 | | -# |
| 5 | +# |
6 | 6 | # Translators: |
7 | 7 | # Elmo Allistair, 2021 |
8 | | -# |
| 8 | +# oon arfiandwi <oon.arfiandwi@gmail.com>, 2023 |
| 9 | +# |
| 10 | +#, fuzzy |
9 | 11 | msgid "" |
10 | 12 | msgstr "" |
11 | | -"Project-Id-Version: Python 3.9\n" |
| 13 | +"Project-Id-Version: Python 3.14\n" |
12 | 14 | "Report-Msgid-Bugs-To: \n" |
13 | | -"POT-Creation-Date: 2020-10-21 04:23+0000\n" |
14 | | -"PO-Revision-Date: 2021-04-02 20:35+0700\n" |
15 | | -"Last-Translator: Elmo Allistair, 2021\n" |
16 | | -"Language-Team: Indonesian (https://www.transifex.com/python-doc/teams/5390/id/)\n" |
| 15 | +"POT-Creation-Date: 2025-05-09 14:19+0000\n" |
| 16 | +"PO-Revision-Date: 2021-06-28 00:48+0000\n" |
| 17 | +"Last-Translator: oon arfiandwi <oon.arfiandwi@gmail.com>, 2023\n" |
| 18 | +"Language-Team: Indonesian (https://app.transifex.com/python-doc/teams/5390/id/)\n" |
17 | 19 | "MIME-Version: 1.0\n" |
18 | 20 | "Content-Type: text/plain; charset=UTF-8\n" |
19 | 21 | "Content-Transfer-Encoding: 8bit\n" |
20 | 22 | "Language: id\n" |
21 | 23 | "Plural-Forms: nplurals=1; plural=0;\n" |
22 | | -"Last-Translator: \n" |
23 | | -"X-Generator: Poedit 2.2\n" |
24 | 24 |
|
25 | 25 | #: ../../c-api/file.rst:6 |
26 | 26 | msgid "File Objects" |
27 | | -msgstr "Objek File" |
| 27 | +msgstr "" |
28 | 28 |
|
29 | 29 | #: ../../c-api/file.rst:10 |
30 | 30 | msgid "" |
31 | 31 | "These APIs are a minimal emulation of the Python 2 C API for built-in file " |
32 | | -"objects, which used to rely on the buffered I/O (:c:type:`FILE*`) support " |
33 | | -"from the C standard library. In Python 3, files and streams use the new :" |
34 | | -"mod:`io` module, which defines several layers over the low-level unbuffered " |
35 | | -"I/O of the operating system. The functions described below are convenience " |
36 | | -"C wrappers over these new APIs, and meant mostly for internal error " |
37 | | -"reporting in the interpreter; third-party code is advised to access the :" |
38 | | -"mod:`io` APIs instead." |
39 | | -msgstr "" |
40 | | -"API ini adalah emulasi minimal Python 2 C API untuk objek file bawaan, yang " |
41 | | -"biasanya mengandalkan dukungan I/O (:c:type:`FILE*`) yang di-buffer dari " |
42 | | -"pustaka standar C. Dalam Python 3, file dan aliran menggunakan modul baru :" |
43 | | -"mod:`io`, yang mendefinisikan beberapa lapisan di atas I/O tanpa buffer " |
44 | | -"dari sistem operasi tingkat rendah . Fungsi yang dijelaskan di bawah ini " |
45 | | -"adalah pembungkus kenyamanan C atas API baru ini, dan sebagian besar " |
46 | | -"dimaksudkan untuk pelaporan kesalahan internal di interpreter; kode pihak " |
47 | | -"ketiga disarankan untuk mengakses :mod:`io` APIs sebagai gantinya." |
| 32 | +"objects, which used to rely on the buffered I/O (:c:expr:`FILE*`) support " |
| 33 | +"from the C standard library. In Python 3, files and streams use the new " |
| 34 | +":mod:`io` module, which defines several layers over the low-level unbuffered" |
| 35 | +" I/O of the operating system. The functions described below are convenience" |
| 36 | +" C wrappers over these new APIs, and meant mostly for internal error " |
| 37 | +"reporting in the interpreter; third-party code is advised to access the " |
| 38 | +":mod:`io` APIs instead." |
| 39 | +msgstr "" |
48 | 40 |
|
49 | 41 | #: ../../c-api/file.rst:22 |
50 | 42 | msgid "" |
51 | 43 | "Create a Python file object from the file descriptor of an already opened " |
52 | 44 | "file *fd*. The arguments *name*, *encoding*, *errors* and *newline* can be " |
53 | 45 | "``NULL`` to use the defaults; *buffering* can be *-1* to use the default. " |
54 | 46 | "*name* is ignored and kept for backward compatibility. Return ``NULL`` on " |
55 | | -"failure. For a more comprehensive description of the arguments, please " |
56 | | -"refer to the :func:`io.open` function documentation." |
| 47 | +"failure. For a more comprehensive description of the arguments, please refer" |
| 48 | +" to the :func:`io.open` function documentation." |
57 | 49 | msgstr "" |
58 | | -"Membuat objek file Python dari deskriptor file dari file yang sudah dibuka " |
59 | | -"*fd*. Argumen *name*, *encoding*, *errors* dan * newline* bisa ``NULL`` " |
60 | | -"untuk menggunakan nilai default; *buffering* bisa *-1* untuk menggunakan " |
61 | | -"default. *name* diabaikan dan disimpan untuk kompatibilitas ke belakang. " |
62 | | -"Mengembalikan ``NULL`` jika gagal. Untuk penjelasan yang lebih lengkap " |
63 | | -"tentang argumen, silakan merujuk ke dokumentasi fungsi :func:`io.open`." |
64 | 50 |
|
65 | 51 | #: ../../c-api/file.rst:31 |
66 | 52 | msgid "" |
67 | 53 | "Since Python streams have their own buffering layer, mixing them with OS-" |
68 | 54 | "level file descriptors can produce various issues (such as unexpected " |
69 | 55 | "ordering of data)." |
70 | 56 | msgstr "" |
71 | | -"Karena aliran Python memiliki lapisan penyangga sendiri, mencampurnya " |
72 | | -"dengan deskriptor file tingkat OS dapat menghasilkan berbagai masalah " |
73 | | -"(seperti pengurutan data yang tidak terduga)." |
74 | 57 |
|
75 | 58 | #: ../../c-api/file.rst:35 |
76 | 59 | msgid "Ignore *name* attribute." |
77 | | -msgstr "Abaikan atribut *name*." |
| 60 | +msgstr "" |
78 | 61 |
|
79 | 62 | #: ../../c-api/file.rst:41 |
80 | 63 | msgid "" |
81 | | -"Return the file descriptor associated with *p* as an :c:type:`int`. If the " |
82 | | -"object is an integer, its value is returned. If not, the object's :meth:" |
83 | | -"`~io.IOBase.fileno` method is called if it exists; the method must return " |
84 | | -"an integer, which is returned as the file descriptor value. Sets an " |
| 64 | +"Return the file descriptor associated with *p* as an :c:expr:`int`. If the " |
| 65 | +"object is an integer, its value is returned. If not, the object's " |
| 66 | +":meth:`~io.IOBase.fileno` method is called if it exists; the method must " |
| 67 | +"return an integer, which is returned as the file descriptor value. Sets an " |
85 | 68 | "exception and returns ``-1`` on failure." |
86 | 69 | msgstr "" |
87 | | -"Mengembalikan deskriptor file yang terkait dengan *p* sebagai :c:type:" |
88 | | -"`int`. Jika objek adalah bilangan bulat, nilainya dikembalikan. Jika tidak, " |
89 | | -"metode objek :meth:`~io.IOBase.fileno` akan dipanggil jika ada; metode " |
90 | | -"harus mengembalikan bilangan bulat, yang dikembalikan sebagai nilai " |
91 | | -"deskriptor file. Menetapkan pengecualian dan mengembalikan ``-1`` jika " |
92 | | -"gagal." |
93 | 70 |
|
94 | 71 | #: ../../c-api/file.rst:52 |
95 | 72 | msgid "" |
96 | 73 | "Equivalent to ``p.readline([n])``, this function reads one line from the " |
97 | | -"object *p*. *p* may be a file object or any object with a :meth:`~io." |
98 | | -"IOBase.readline` method. If *n* is ``0``, exactly one line is read, " |
99 | | -"regardless of the length of the line. If *n* is greater than ``0``, no " |
100 | | -"more than *n* bytes will be read from the file; a partial line can be " |
101 | | -"returned. In both cases, an empty string is returned if the end of the " |
102 | | -"file is reached immediately. If *n* is less than ``0``, however, one line " |
103 | | -"is read regardless of length, but :exc:`EOFError` is raised if the end of " |
104 | | -"the file is reached immediately." |
105 | | -msgstr "" |
106 | | -"Setara dengan ``p.readline([n])``, fungsi ini membaca satu baris dari objek " |
107 | | -"*p*. *p* dapat berupa objek file atau objek apa pun dengan metode :meth:" |
108 | | -"`~io.IOBase.readline`. Jika *n* adalah ``0``, tepat satu baris terbaca, " |
109 | | -"berapa pun panjang barisnya. Jika *n* lebih besar dari ``0``, tidak lebih " |
110 | | -"dari *n* byte yang akan dibaca dari file; garis parsial dapat dikembalikan. " |
111 | | -"Dalam kedua kasus, string kosong dikembalikan jika akhir file dicapai " |
112 | | -"dengan segera. Jika *n* lebih kecil dari ``0``, bagaimanapun, satu baris " |
113 | | -"dibaca berapa pun panjangnya, tapi :exc:`EOFError` dimunculkan jika akhir " |
114 | | -"file dicapai dengan segera." |
| 74 | +"object *p*. *p* may be a file object or any object with a " |
| 75 | +":meth:`~io.IOBase.readline` method. If *n* is ``0``, exactly one line is " |
| 76 | +"read, regardless of the length of the line. If *n* is greater than ``0``, " |
| 77 | +"no more than *n* bytes will be read from the file; a partial line can be " |
| 78 | +"returned. In both cases, an empty string is returned if the end of the file" |
| 79 | +" is reached immediately. If *n* is less than ``0``, however, one line is " |
| 80 | +"read regardless of length, but :exc:`EOFError` is raised if the end of the " |
| 81 | +"file is reached immediately." |
| 82 | +msgstr "" |
115 | 83 |
|
116 | 84 | #: ../../c-api/file.rst:65 |
117 | 85 | msgid "" |
118 | 86 | "Overrides the normal behavior of :func:`io.open_code` to pass its parameter " |
119 | 87 | "through the provided handler." |
120 | 88 | msgstr "" |
121 | | -"Mengganti perilaku normal :func:`io.open_code` untuk meneruskan " |
122 | | -"parameternya melalui penangan yang disediakan." |
123 | 89 |
|
124 | 90 | #: ../../c-api/file.rst:68 |
| 91 | +msgid "The *handler* is a function of type:" |
| 92 | +msgstr "" |
| 93 | + |
| 94 | +#: ../../c-api/file.rst:73 |
125 | 95 | msgid "" |
126 | | -"The handler is a function of type :c:type:`PyObject *(\\*)(PyObject *path, " |
127 | | -"void *userData)`, where *path* is guaranteed to be :c:type:" |
128 | | -"`PyUnicodeObject`." |
| 96 | +"Equivalent of :c:expr:`PyObject *(\\*)(PyObject *path, void *userData)`, " |
| 97 | +"where *path* is guaranteed to be :c:type:`PyUnicodeObject`." |
129 | 98 | msgstr "" |
130 | | -"Handler adalah fungsi dari tipe :c:type:`PyObject *(\\*)(PyObject *path, " |
131 | | -"void *userData)`, di mana *path* dijamin menjadi :c:type:`PyUnicodeObject`." |
132 | 99 |
|
133 | | -#: ../../c-api/file.rst:71 |
| 100 | +#: ../../c-api/file.rst:77 |
134 | 101 | msgid "" |
135 | 102 | "The *userData* pointer is passed into the hook function. Since hook " |
136 | 103 | "functions may be called from different runtimes, this pointer should not " |
137 | 104 | "refer directly to Python state." |
138 | 105 | msgstr "" |
139 | | -"Pointer *userData* diteruskan ke fungsi hook. Karena fungsi hook dapat " |
140 | | -"dipanggil dari runtime yang berbeda, pointer ini tidak boleh merujuk " |
141 | | -"langsung ke status Python." |
142 | 106 |
|
143 | | -#: ../../c-api/file.rst:75 |
| 107 | +#: ../../c-api/file.rst:81 |
144 | 108 | msgid "" |
145 | 109 | "As this hook is intentionally used during import, avoid importing new " |
146 | | -"modules during its execution unless they are known to be frozen or " |
147 | | -"available in ``sys.modules``." |
| 110 | +"modules during its execution unless they are known to be frozen or available" |
| 111 | +" in ``sys.modules``." |
148 | 112 | msgstr "" |
149 | | -"Karena hook ini sengaja digunakan selama impor, hindari mengimpor modul " |
150 | | -"baru selama eksekusinya kecuali jika mereka diketahui telah dibekukan atau " |
151 | | -"tersedia di ``sys.modules``." |
152 | 113 |
|
153 | | -#: ../../c-api/file.rst:79 |
| 114 | +#: ../../c-api/file.rst:85 |
154 | 115 | msgid "" |
155 | 116 | "Once a hook has been set, it cannot be removed or replaced, and later calls " |
156 | 117 | "to :c:func:`PyFile_SetOpenCodeHook` will fail. On failure, the function " |
157 | 118 | "returns -1 and sets an exception if the interpreter has been initialized." |
158 | 119 | msgstr "" |
159 | | -"Setelah hook diatur, hook tidak dapat dilepas atau diganti, dan panggilan " |
160 | | -"ke :c:func:`PyFile_SetOpenCodeHook` akan gagal. Jika gagal, fungsi " |
161 | | -"mengembalikan -1 dan mengatur pengecualian jika interpreter telah " |
162 | | -"diinisialisasi." |
163 | 120 |
|
164 | | -#: ../../c-api/file.rst:83 |
| 121 | +#: ../../c-api/file.rst:89 |
165 | 122 | msgid "This function is safe to call before :c:func:`Py_Initialize`." |
166 | | -msgstr "Fungsi ini aman untuk dipanggil sebelum :c:func:`Py_Initialize`." |
| 123 | +msgstr "" |
167 | 124 |
|
168 | | -#: ../../c-api/file.rst:86 |
| 125 | +#: ../../c-api/file.rst:91 |
169 | 126 | msgid "" |
170 | 127 | "Raises an :ref:`auditing event <auditing>` ``setopencodehook`` with no " |
171 | 128 | "arguments." |
172 | 129 | msgstr "" |
173 | 130 |
|
174 | | -#: ../../c-api/file.rst:95 |
| 131 | +#: ../../c-api/file.rst:101 |
175 | 132 | msgid "" |
176 | 133 | "Write object *obj* to file object *p*. The only supported flag for *flags* " |
177 | | -"is :const:`Py_PRINT_RAW`; if given, the :func:`str` of the object is " |
| 134 | +"is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is " |
178 | 135 | "written instead of the :func:`repr`. Return ``0`` on success or ``-1`` on " |
179 | 136 | "failure; the appropriate exception will be set." |
180 | 137 | msgstr "" |
181 | | -"Menulis objek *obj* ke file objek *p*. Satu-satunya tanda yang didukung " |
182 | | -"untuk *flags* adalah :const:`Py_PRINT_RAW`; jika diberikan, fungsi :func:" |
183 | | -"`str` dari objek akan dituliskan sebagai pengganti :func:`repr`. " |
184 | | -"Mengembalikan ``0`` saat sukses atau ``-1`` saat gagal; pengecualian yang " |
185 | | -"sesuai akan ditetapkan." |
186 | 138 |
|
187 | | -#: ../../c-api/file.rst:103 |
| 139 | +#: ../../c-api/file.rst:109 |
188 | 140 | msgid "" |
189 | 141 | "Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on " |
190 | 142 | "failure; the appropriate exception will be set." |
191 | 143 | msgstr "" |
192 | | -"Menulis string *s* ke file objek *p*. Mengembalikan ``0`` saat sukses atau " |
193 | | -"``-1`` saat gagal; pengecualian yang sesuai akan ditetapkan." |
| 144 | + |
| 145 | +#: ../../c-api/file.rst:8 |
| 146 | +msgid "object" |
| 147 | +msgstr "objek" |
| 148 | + |
| 149 | +#: ../../c-api/file.rst:8 |
| 150 | +msgid "file" |
| 151 | +msgstr "" |
| 152 | + |
| 153 | +#: ../../c-api/file.rst:50 |
| 154 | +msgid "EOFError (built-in exception)" |
| 155 | +msgstr "" |
| 156 | + |
| 157 | +#: ../../c-api/file.rst:99 |
| 158 | +msgid "Py_PRINT_RAW (C macro)" |
| 159 | +msgstr "" |
0 commit comments