X Tutup
Skip to content

Commit 927c027

Browse files
committed
tx pull
1 parent 5db4579 commit 927c027

File tree

126 files changed

+11431
-9523
lines changed

Some content is hidden

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

126 files changed

+11431
-9523
lines changed

.tx/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,3 +2330,4 @@ type = PO
23302330
source_lang = en
23312331
trans.pt_BR = c-api/descriptor.po
23322332
type = PO
2333+

c-api/buffer.po

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.7\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
17+
"POT-Creation-Date: 2019-07-18 02:57+0000\n"
1818
"PO-Revision-Date: 2017-02-16 17:33+0000\n"
1919
"Last-Translator: felipe caridade <caridade500@gmail.com>, 2019\n"
2020
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/"
@@ -686,24 +686,18 @@ msgid ""
686686
"dimensional array as follows:"
687687
msgstr ""
688688

689-
#: ../../c-api/buffer.rst:358
690-
msgid ""
691-
"``ptr = (char *)buf + indices[0] * strides[0] + ... + indices[n-1] * "
692-
"strides[n-1]`` ``item = *((typeof(item) *)ptr);``"
693-
msgstr ""
694-
695-
#: ../../c-api/buffer.rst:362
689+
#: ../../c-api/buffer.rst:364
696690
msgid ""
697691
"As noted above, :c:member:`~Py_buffer.buf` can point to any location within "
698692
"the actual memory block. An exporter can check the validity of a buffer with "
699693
"this function:"
700694
msgstr ""
701695

702-
#: ../../c-api/buffer.rst:396
696+
#: ../../c-api/buffer.rst:398
703697
msgid "PIL-style: shape, strides and suboffsets"
704698
msgstr ""
705699

706-
#: ../../c-api/buffer.rst:398
700+
#: ../../c-api/buffer.rst:400
707701
msgid ""
708702
"In addition to the regular items, PIL-style arrays can contain pointers that "
709703
"must be followed in order to get to the next element in a dimension. For "
@@ -714,33 +708,33 @@ msgid ""
714708
"x[2][3]`` arrays that can be located anywhere in memory."
715709
msgstr ""
716710

717-
#: ../../c-api/buffer.rst:407
711+
#: ../../c-api/buffer.rst:409
718712
msgid ""
719713
"Here is a function that returns a pointer to the element in an N-D array "
720714
"pointed to by an N-dimensional index when there are both non-NULL strides "
721715
"and suboffsets::"
722716
msgstr ""
723717

724-
#: ../../c-api/buffer.rst:426
718+
#: ../../c-api/buffer.rst:428
725719
msgid "Buffer-related functions"
726720
msgstr ""
727721

728-
#: ../../c-api/buffer.rst:430
722+
#: ../../c-api/buffer.rst:432
729723
msgid ""
730724
"Return ``1`` if *obj* supports the buffer interface otherwise ``0``. When "
731725
"``1`` is returned, it doesn't guarantee that :c:func:`PyObject_GetBuffer` "
732726
"will succeed. This function always succeeds."
733727
msgstr ""
734728

735-
#: ../../c-api/buffer.rst:437
729+
#: ../../c-api/buffer.rst:439
736730
msgid ""
737731
"Send a request to *exporter* to fill in *view* as specified by *flags*. If "
738732
"the exporter cannot provide a buffer of the exact type, it MUST raise :c:"
739733
"data:`PyExc_BufferError`, set :c:member:`view->obj` to *NULL* and return "
740734
"``-1``."
741735
msgstr ""
742736

743-
#: ../../c-api/buffer.rst:442
737+
#: ../../c-api/buffer.rst:444
744738
msgid ""
745739
"On success, fill in *view*, set :c:member:`view->obj` to a new reference to "
746740
"*exporter* and return 0. In the case of chained buffer providers that "
@@ -749,81 +743,81 @@ msgid ""
749743
"<buffer-structs>`)."
750744
msgstr ""
751745

752-
#: ../../c-api/buffer.rst:447
746+
#: ../../c-api/buffer.rst:449
753747
msgid ""
754748
"Successful calls to :c:func:`PyObject_GetBuffer` must be paired with calls "
755749
"to :c:func:`PyBuffer_Release`, similar to :c:func:`malloc` and :c:func:"
756750
"`free`. Thus, after the consumer is done with the buffer, :c:func:"
757751
"`PyBuffer_Release` must be called exactly once."
758752
msgstr ""
759753

760-
#: ../../c-api/buffer.rst:455
754+
#: ../../c-api/buffer.rst:457
761755
msgid ""
762756
"Release the buffer *view* and decrement the reference count for :c:member:"
763757
"`view->obj`. This function MUST be called when the buffer is no longer being "
764758
"used, otherwise reference leaks may occur."
765759
msgstr ""
766760

767-
#: ../../c-api/buffer.rst:459
761+
#: ../../c-api/buffer.rst:461
768762
msgid ""
769763
"It is an error to call this function on a buffer that was not obtained via :"
770764
"c:func:`PyObject_GetBuffer`."
771765
msgstr ""
772766

773-
#: ../../c-api/buffer.rst:465
767+
#: ../../c-api/buffer.rst:467
774768
msgid ""
775769
"Return the implied :c:data:`~Py_buffer.itemsize` from :c:data:`~Py_buffer."
776770
"format`. This function is not yet implemented."
777771
msgstr ""
778772

779-
#: ../../c-api/buffer.rst:471
773+
#: ../../c-api/buffer.rst:473
780774
msgid ""
781775
"Return ``1`` if the memory defined by the *view* is C-style (*order* is "
782776
"``'C'``) or Fortran-style (*order* is ``'F'``) :term:`contiguous` or either "
783777
"one (*order* is ``'A'``). Return ``0`` otherwise. This function always "
784778
"succeeds."
785779
msgstr ""
786780

787-
#: ../../c-api/buffer.rst:478
781+
#: ../../c-api/buffer.rst:480
788782
msgid ""
789783
"Copy *len* bytes from *src* to its contiguous representation in *buf*. "
790784
"*order* can be ``'C'`` or ``'F'`` (for C-style or Fortran-style ordering). "
791785
"``0`` is returned on success, ``-1`` on error."
792786
msgstr ""
793787

794-
#: ../../c-api/buffer.rst:482
788+
#: ../../c-api/buffer.rst:484
795789
msgid "This function fails if *len* != *src->len*."
796790
msgstr ""
797791

798-
#: ../../c-api/buffer.rst:487
792+
#: ../../c-api/buffer.rst:489
799793
msgid ""
800794
"Fill the *strides* array with byte-strides of a :term:`contiguous` (C-style "
801795
"if *order* is ``'C'`` or Fortran-style if *order* is ``'F'``) array of the "
802796
"given shape with the given number of bytes per element."
803797
msgstr ""
804798

805-
#: ../../c-api/buffer.rst:494
799+
#: ../../c-api/buffer.rst:496
806800
msgid ""
807801
"Handle buffer requests for an exporter that wants to expose *buf* of size "
808802
"*len* with writability set according to *readonly*. *buf* is interpreted as "
809803
"a sequence of unsigned bytes."
810804
msgstr ""
811805

812-
#: ../../c-api/buffer.rst:498
806+
#: ../../c-api/buffer.rst:500
813807
msgid ""
814808
"The *flags* argument indicates the request type. This function always fills "
815809
"in *view* as specified by flags, unless *buf* has been designated as read-"
816810
"only and :c:macro:`PyBUF_WRITABLE` is set in *flags*."
817811
msgstr ""
818812

819-
#: ../../c-api/buffer.rst:502
813+
#: ../../c-api/buffer.rst:504
820814
msgid ""
821815
"On success, set :c:member:`view->obj` to a new reference to *exporter* and "
822816
"return 0. Otherwise, raise :c:data:`PyExc_BufferError`, set :c:member:`view-"
823817
">obj` to *NULL* and return ``-1``;"
824818
msgstr ""
825819

826-
#: ../../c-api/buffer.rst:506
820+
#: ../../c-api/buffer.rst:508
827821
msgid ""
828822
"If this function is used as part of a :ref:`getbufferproc <buffer-structs>`, "
829823
"*exporter* MUST be set to the exporting object and *flags* must be passed "

c-api/codec.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# Tiago Henrique <tiagohrm@gmail.com>, 2018
8+
# Rafael Fontenelle <rffontenelle@gmail.com>, 2019
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
1516
"PO-Revision-Date: 2017-02-16 17:34+0000\n"
16-
"Last-Translator: Tiago Henrique <tiagohrm@gmail.com>, 2018\n"
17+
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2019\n"
1718
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/"
1819
"teams/5390/pt_BR/)\n"
1920
"MIME-Version: 1.0\n"
@@ -44,6 +45,8 @@ msgid ""
4445
"Return ``1`` or ``0`` depending on whether there is a registered codec for "
4546
"the given *encoding*. This function always succeeds."
4647
msgstr ""
48+
"Retorna ``1`` ou ``0`` dependendo se há um codec registrado para a dada "
49+
"codificação *encoding*. Essa função sempre é bem-sucedida."
4750

4851
#: ../../c-api/codec.rst:20
4952
msgid "Generic codec based encoding API."

c-api/list.po

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.7\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
15+
"POT-Creation-Date: 2019-07-07 11:52+0900\n"
1616
"PO-Revision-Date: 2017-02-16 17:36+0000\n"
1717
"Last-Translator: Livia Cavalcanti <livia.juliao@ccc.ufcg.edu.br>, 2017\n"
1818
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/"
@@ -76,13 +76,10 @@ msgstr ""
7676
#: ../../c-api/list.rst:61
7777
msgid ""
7878
"Return the object at position *index* in the list pointed to by *list*. The "
79-
"position must be positive, indexing from the end of the list is not "
80-
"supported. If *index* is out of bounds, return *NULL* and set an :exc:"
81-
"`IndexError` exception."
79+
"position must be non-negative; indexing from the end of the list is not "
80+
"supported. If *index* is out of bounds (<0 or >=len(list)), return *NULL* "
81+
"and set an :exc:`IndexError` exception."
8282
msgstr ""
83-
"Retorna o objeto na posição *index* na lista apontada por *list*. A posição "
84-
"deve ser positiva, indexar do final da lista não é suportado. Se *index* "
85-
"está fora do limite, retorna-se *NULL* e uma exceção :exc:`IndexError`."
8683

8784
#: ../../c-api/list.rst:69
8885
msgid "Macro form of :c:func:`PyList_GetItem` without error checking."

c-api/long.po

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.7\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
14+
"POT-Creation-Date: 2019-06-08 11:36+0900\n"
1515
"PO-Revision-Date: 2017-02-16 17:36+0000\n"
1616
"Last-Translator: Raphael Mendonça, 2017\n"
1717
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/"
@@ -165,8 +165,7 @@ msgid ""
165165
msgstr ""
166166

167167
#: ../../c-api/long.rst:140 ../../c-api/long.rst:154 ../../c-api/long.rst:169
168-
#: ../../c-api/long.rst:183 ../../c-api/long.rst:200 ../../c-api/long.rst:262
169-
#: ../../c-api/long.rst:274
168+
#: ../../c-api/long.rst:183 ../../c-api/long.rst:200
170169
msgid "Returns ``-1`` on error. Use :c:func:`PyErr_Occurred` to disambiguate."
171170
msgstr ""
172171

@@ -277,44 +276,56 @@ msgid ""
277276
"the reduction of that value modulo ``ULONG_MAX + 1``."
278277
msgstr ""
279278

280-
#: ../../c-api/long.rst:267
279+
#: ../../c-api/long.rst:262
280+
msgid ""
281+
"Returns ``(unsigned long)-1`` on error. Use :c:func:`PyErr_Occurred` to "
282+
"disambiguate."
283+
msgstr ""
284+
285+
#: ../../c-api/long.rst:268
281286
msgid ""
282287
"Return a C :c:type:`unsigned long long` representation of *obj*. If *obj* "
283288
"is not an instance of :c:type:`PyLongObject`, first call its :meth:`__int__` "
284289
"method (if present) to convert it to a :c:type:`PyLongObject`."
285290
msgstr ""
286291

287-
#: ../../c-api/long.rst:271
292+
#: ../../c-api/long.rst:272
288293
msgid ""
289294
"If the value of *obj* is out of range for an :c:type:`unsigned long long`, "
290295
"return the reduction of that value modulo ``PY_ULLONG_MAX + 1``."
291296
msgstr ""
292297

293-
#: ../../c-api/long.rst:279
298+
#: ../../c-api/long.rst:275
299+
msgid ""
300+
"Returns ``(unsigned long long)-1`` on error. Use :c:func:`PyErr_Occurred` "
301+
"to disambiguate."
302+
msgstr ""
303+
304+
#: ../../c-api/long.rst:281
294305
msgid ""
295306
"Return a C :c:type:`double` representation of *pylong*. *pylong* must be an "
296307
"instance of :c:type:`PyLongObject`."
297308
msgstr ""
298309

299-
#: ../../c-api/long.rst:282
310+
#: ../../c-api/long.rst:284
300311
msgid ""
301312
"Raise :exc:`OverflowError` if the value of *pylong* is out of range for a :c:"
302313
"type:`double`."
303314
msgstr ""
304315

305-
#: ../../c-api/long.rst:285
316+
#: ../../c-api/long.rst:287
306317
msgid ""
307318
"Returns ``-1.0`` on error. Use :c:func:`PyErr_Occurred` to disambiguate."
308319
msgstr ""
309320

310-
#: ../../c-api/long.rst:290
321+
#: ../../c-api/long.rst:292
311322
msgid ""
312323
"Convert a Python integer *pylong* to a C :c:type:`void` pointer. If *pylong* "
313324
"cannot be converted, an :exc:`OverflowError` will be raised. This is only "
314325
"assured to produce a usable :c:type:`void` pointer for values created with :"
315326
"c:func:`PyLong_FromVoidPtr`."
316327
msgstr ""
317328

318-
#: ../../c-api/long.rst:295
329+
#: ../../c-api/long.rst:297
319330
msgid "Returns *NULL* on error. Use :c:func:`PyErr_Occurred` to disambiguate."
320331
msgstr ""

c-api/memory.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.7\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2019-04-12 11:10+0900\n"
17+
"POT-Creation-Date: 2019-07-06 21:56+0900\n"
1818
"PO-Revision-Date: 2017-02-16 17:37+0000\n"
1919
"Last-Translator: Marco Rougeth <marco@rougeth.com>, 2019\n"
2020
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/python-doc/"
@@ -82,7 +82,7 @@ msgstr ""
8282
msgid ""
8383
"In this example, the memory request for the I/O buffer is handled by the C "
8484
"library allocator. The Python memory manager is involved only in the "
85-
"allocation of the string object returned as a result."
85+
"allocation of the bytes object returned as a result."
8686
msgstr ""
8787

8888
#: ../../c-api/memory.rst:72

0 commit comments

Comments
 (0)
X Tutup