🌐 AI搜索 & 代理 主页
Skip to content

Commit fe0415a

Browse files
Update translation
Co-Authored-By: Marcos Moraes
1 parent 50f8916 commit fe0415a

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

library/ctypes.po

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,10 @@ msgid ""
692692
"exception. ``WinError`` takes an optional error code parameter, if no one is "
693693
"used, it calls :func:`GetLastError` to retrieve it."
694694
msgstr ""
695+
"``WinError`` é uma função que chamará a API ``FormatMessage()`` do Windows "
696+
"para obter a representação em string de um código de erro, e *retorna* uma "
697+
"exceção. ``WinError`` aceita um parâmetro de código de erro opcional, se "
698+
"nenhum for usado, ela chama :func:`GetLastError` para recuperá-lo."
695699

696700
#: ../../library/ctypes.rst:532
697701
msgid ""
@@ -710,6 +714,10 @@ msgid ""
710714
"large to be passed by value. This is also known as *passing parameters by "
711715
"reference*."
712716
msgstr ""
717+
"Às vezes, uma função da API C espera um *ponteiro* para um tipo de dado como "
718+
"parâmetro, provavelmente para escrever no local correspondente, ou se os "
719+
"dados forem muito grandes para serem passados por valor. Isso também é "
720+
"conhecido como *passar parâmetros por referência*."
713721

714722
#: ../../library/ctypes.rst:545
715723
msgid ""
@@ -719,6 +727,11 @@ msgid ""
719727
"constructs a real pointer object, so it is faster to use :func:`byref` if "
720728
"you don't need the pointer object in Python itself::"
721729
msgstr ""
730+
"O :mod:`ctypes` exporta a função :func:`byref` que é usada para passar "
731+
"parâmetros por referência. O mesmo efeito pode ser alcançado com a função :"
732+
"func:`pointer`, embora :func:`pointer` faça muito mais trabalho, já que ela "
733+
"constrói um objeto ponteiro real, então é mais rápido usar :func:`byref` se "
734+
"você não precisar do objeto ponteiro no próprio Python::"
722735

723736
#: ../../library/ctypes.rst:567
724737
msgid "Structures and unions"
@@ -737,25 +750,36 @@ msgid ""
737750
"The field type must be a :mod:`ctypes` type like :class:`c_int`, or any "
738751
"other derived :mod:`ctypes` type: structure, union, array, pointer."
739752
msgstr ""
753+
"O tipo do campo deve ser um tipo :mod:`ctypes` como :class:`c_int`, ou "
754+
"qualquer outro tipo :mod:`ctypes` derivado: estrutura, união, vetor, "
755+
"ponteiro."
740756

741757
#: ../../library/ctypes.rst:577
742758
msgid ""
743759
"Here is a simple example of a POINT structure, which contains two integers "
744760
"named *x* and *y*, and also shows how to initialize a structure in the "
745761
"constructor::"
746762
msgstr ""
763+
"Aqui está um exemplo simples de uma estrutura POINT, que contém dois "
764+
"inteiros nomeados *x* e *y*, e também mostra como inicializar uma estrutura "
765+
"no construtor::"
747766

748767
#: ../../library/ctypes.rst:597
749768
msgid ""
750769
"You can, however, build much more complicated structures. A structure can "
751770
"itself contain other structures by using a structure as a field type."
752771
msgstr ""
772+
"Você pode, no entanto, construir estruturas muito mais complicadas. Uma "
773+
"estrutura pode conter outras estruturas, usando uma estrutura como um tipo "
774+
"de campo."
753775

754776
#: ../../library/ctypes.rst:600
755777
msgid ""
756778
"Here is a RECT structure which contains two POINTs named *upperleft* and "
757779
"*lowerright*::"
758780
msgstr ""
781+
"Aqui está uma estrutura RECT que contém dois POINTs nomeados *upperleft* e "
782+
"*lowerright*::"
759783

760784
#: ../../library/ctypes.rst:614
761785
msgid ""

potodo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
1 directory 59.52% done
2-
└── 3.10/ 59.52% done
1+
1 directory 59.54% done
2+
└── 3.10/ 59.54% done
33
├── distutils/ 25.78% done
44
│ ├── apiref.po 88 / 417 ( 21.0% translated)
55
│ ├── builtdist.po 52 / 131 ( 39.0% translated)
@@ -24,7 +24,7 @@
2424
│ ├── expressions.po 303 / 332 ( 91.0% translated)
2525
│ ├── import.po 165 / 184 ( 89.0% translated)
2626
│ └── lexical_analysis.po 185 / 195 ( 94.0% translated)
27-
├── library/ 54.02% done
27+
├── library/ 54.06% done
2828
│ ├── _thread.po 39 / 41 ( 95.0% translated)
2929
│ ├── argparse.po 256 / 290 ( 88.0% translated)
3030
│ ├── array.po 81 / 82 ( 98.0% translated)
@@ -62,7 +62,7 @@
6262
│ ├── contextlib.po 39 / 125 ( 31.0% translated)
6363
│ ├── copyreg.po 8 / 9 ( 88.0% translated)
6464
│ ├── crypt.po 3 / 30 ( 10.0% translated)
65-
│ ├── ctypes.po 115 / 434 ( 26.0% translated)
65+
│ ├── ctypes.po 122 / 434 ( 28.0% translated)
6666
│ ├── curses.ascii.po 101 / 102 ( 99.0% translated)
6767
│ ├── curses.panel.po 22 / 23 ( 95.0% translated)
6868
│ ├── curses.po 231 / 639 ( 36.0% translated)

stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion": "59.52%", "translated": 34300, "entries": 51677, "updated_at": "2025-11-06T00:28:17+00:00Z"}
1+
{"completion": "59.54%", "translated": 34307, "entries": 51677, "updated_at": "2025-11-07T00:29:31+00:00Z"}

0 commit comments

Comments
 (0)