Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa5e82c

Browse files
Update translations
1 parent acabf95 commit fa5e82c

File tree

4 files changed

+60
-15
lines changed

4 files changed

+60
-15
lines changed

faq/extending.po

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ msgid ""
249249
"How do I catch the output from PyErr_Print() (or anything that prints to "
250250
"stdout/stderr)?"
251251
msgstr ""
252+
"Como posso capturar a saída da função PyErr_Print() (ou qualquer outra coisa "
253+
"que escreva para stdout/stderr)?"
252254

253255
#: ../../faq/extending.rst:144
254256
msgid ""
@@ -257,22 +259,28 @@ msgid ""
257259
"print_error, or just allow the standard traceback mechanism to work. Then, "
258260
"the output will go wherever your ``write()`` method sends it."
259261
msgstr ""
262+
"Com código Python, defina um objeto que suporte o método ``write()``. "
263+
"Atribua esse objeto a :data:`sys.stdout` e :data:`sys.stderr`. Chame "
264+
"print_error, or simplesmente deixe o mecanismo padrão de traceback "
265+
"acontecer. Assim, a saída irá para onde quer que o seu método ``write()`` a "
266+
"envie."
260267

261268
#: ../../faq/extending.rst:149
262269
msgid "The easiest way to do this is to use the :class:`io.StringIO` class:"
263-
msgstr ""
270+
msgstr "O jeito mais fácil de fazer isso é usar a classe :class:`io.StringIO`:"
264271

265272
#: ../../faq/extending.rst:161
266273
msgid "A custom object to do the same would look like this:"
267274
msgstr "Um objeto personalizado para fazer a mesma coisa seria esse:"
268275

269276
#: ../../faq/extending.rst:182
270277
msgid "How do I access a module written in Python from C?"
271-
msgstr ""
278+
msgstr "Como faço para acessar a partir do C um módulo escrito em Python?"
272279

273280
#: ../../faq/extending.rst:184
274281
msgid "You can get a pointer to the module object as follows::"
275282
msgstr ""
283+
"Você pode obter um pointeiro para o objeto de módulo da seguinte maneira::"
276284

277285
#: ../../faq/extending.rst:188
278286
msgid ""
@@ -282,22 +290,31 @@ msgid ""
282290
"module into any namespace -- it only ensures it has been initialized and is "
283291
"stored in :data:`sys.modules`."
284292
msgstr ""
293+
"Se o módulo ainda não foi importado (isto é, ainda não aparece no :data:`sys."
294+
"modules`), essa função vai inicializar o módulo; caso contrário, ela vai "
295+
"simplesmente retornar o valor de ``sys.modules[\"<modulename>\"]``. Note "
296+
"que ela não adiciona o módulo a nenhum espaço de nomes -- ela simplesmente "
297+
"garante que ele foi inicializado e colocado no :data:`sys.modules`."
285298

286299
#: ../../faq/extending.rst:194
287300
msgid ""
288301
"You can then access the module's attributes (i.e. any name defined in the "
289302
"module) as follows::"
290303
msgstr ""
304+
"Você pode então acessar os atributos do módulo (isto é, qualquer nome "
305+
"definido no módulo) assim::"
291306

292307
#: ../../faq/extending.rst:199
293308
msgid ""
294309
"Calling :c:func:`PyObject_SetAttrString` to assign to variables in the "
295310
"module also works."
296311
msgstr ""
312+
"Chamar :c:func:`PyObject_SetAttrString` para definir variáveis no módulo "
313+
"também funciona."
297314

298315
#: ../../faq/extending.rst:204
299316
msgid "How do I interface to C++ objects from Python?"
300-
msgstr ""
317+
msgstr "Como posso interagir com objetos C++ a partir do Python?"
301318

302319
#: ../../faq/extending.rst:206
303320
msgid ""
@@ -308,45 +325,60 @@ msgid ""
308325
"building a new Python type around a C structure (pointer) type will also "
309326
"work for C++ objects."
310327
msgstr ""
328+
"Dependendo das suas necessidades, há diversas abordagens. Para fazer isso "
329+
"manualmente, comece lendo :ref:`o documento \"Estendendo e Incorporando\" "
330+
"<extending-index>`. Note que, para o sistema Python em tempo de execução, "
331+
"não há muita diferença entre C e C++ -- de forma que a estratégia de "
332+
"construir um novo tipo Python ao redor de uma estrutura C (ou ponteiro para "
333+
"uma) também funciona para objetos C++."
311334

312335
#: ../../faq/extending.rst:212
313336
msgid "For C++ libraries, see :ref:`c-wrapper-software`."
314-
msgstr ""
337+
msgstr "Para bibliotecas C++, veja :ref:`c-wrapper-software`."
315338

316339
#: ../../faq/extending.rst:216
317340
msgid "I added a module using the Setup file and the make fails; why?"
318-
msgstr ""
341+
msgstr "Adicionei um módulo usando o arquivo de Setup e o make falha; por quê?"
319342

320343
#: ../../faq/extending.rst:218
321344
msgid ""
322345
"Setup must end in a newline, if there is no newline there, the build process "
323346
"fails. (Fixing this requires some ugly shell script hackery, and this bug "
324347
"is so minor that it doesn't seem worth the effort.)"
325348
msgstr ""
349+
"O Setup deve terminar com uma quebra de linha; se não houver uma quebra de "
350+
"linha no final, o processo de compilação falha. (Consertar isso requer umas "
351+
"gambiarras feias em shell script, e esse bug é tão pequeno que o esforço não "
352+
"parece valer a pena.)"
326353

327354
#: ../../faq/extending.rst:224
328355
msgid "How do I debug an extension?"
329-
msgstr ""
356+
msgstr "Como eu depuro uma extensão?"
330357

331358
#: ../../faq/extending.rst:226
332359
msgid ""
333360
"When using GDB with dynamically loaded extensions, you can't set a "
334361
"breakpoint in your extension until your extension is loaded."
335362
msgstr ""
363+
"Ao usar o GDB com extensões carregadas dinamicamente, você não consegue "
364+
"definir um ponto de interrupção antes da sua extensão ser carregada."
336365

337366
#: ../../faq/extending.rst:229
338367
msgid "In your ``.gdbinit`` file (or interactively), add the command:"
339368
msgstr ""
369+
"No seu arquivo ``.gdbinit`` (ou então interativamente), adicione o comando:"
340370

341371
#: ../../faq/extending.rst:235
342372
msgid "Then, when you run GDB:"
343-
msgstr ""
373+
msgstr "Então, ao executar o GDB:"
344374

345375
#: ../../faq/extending.rst:247
346376
msgid ""
347377
"I want to compile a Python module on my Linux system, but some files are "
348378
"missing. Why?"
349379
msgstr ""
380+
"Quero compilar um módulo Python no meu sistema Linux, mas alguns arquivos "
381+
"estão faltando. Por quê?"
350382

351383
#: ../../faq/extending.rst:249
352384
msgid ""
@@ -365,7 +397,7 @@ msgstr ""
365397

366398
#: ../../faq/extending.rst:259
367399
msgid "How do I tell \"incomplete input\" from \"invalid input\"?"
368-
msgstr ""
400+
msgstr "Como posso distinguir \"entrada incompleta\" de \"entrada inválida\"?"
369401

370402
#: ../../faq/extending.rst:261
371403
msgid ""

library/timeit.po

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@
99
# i17obot <[email protected]>, 2020
1010
# Leandro Cavalcante Damascena <[email protected]>, 2024
1111
# Rafael Fontenelle <[email protected]>, 2024
12+
# elielmartinsbr <[email protected]>, 2024
1213
#
1314
#, fuzzy
1415
msgid ""
1516
msgstr ""
1617
"Project-Id-Version: Python 3.8\n"
1718
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2024-08-31 13:50+0000\n"
19+
"POT-Creation-Date: 2024-10-04 17:06+0000\n"
1920
"PO-Revision-Date: 2020-05-30 12:12+0000\n"
20-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
21+
"Last-Translator: elielmartinsbr <elielmartinsbr@gmail.com>, 2024\n"
2122
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
2223
"teams/5390/pt_BR/)\n"
2324
"MIME-Version: 1.0\n"
@@ -108,6 +109,10 @@ msgid ""
108109
"count and *number* executions. The optional *globals* argument specifies a "
109110
"namespace in which to execute the code."
110111
msgstr ""
112+
"Crie uma instância :class:`Timer` com a instrução fornecida, o código "
113+
"*setup* e a função *timer* e execute seu método :meth:`.repeat` com a "
114+
"contagem *repeat* e o *número* de execuções fornecidos. O argumento opcional "
115+
"*globals* especifica um namespace no qual executar o código."
111116

112117
#: ../../library/timeit.rst:86 ../../library/timeit.rst:181
113118
msgid "Default value of *repeat* changed from 3 to 5."
@@ -137,6 +142,14 @@ msgid ""
137142
"will by default be executed within timeit's namespace; this behavior can be "
138143
"controlled by passing a namespace to *globals*."
139144
msgstr ""
145+
"O construtor recebe uma instrução a ser cronometrada, uma instrução "
146+
"adicional usada para configuração e uma função de timer. Ambas as instruções "
147+
"são padronizadas como ``'pass'``; a função de timer é dependente da "
148+
"plataforma (veja a string do documento do módulo). *stmt* e *setup* também "
149+
"podem conter múltiplas instruções separadas por ``;`` ou novas linhas, desde "
150+
"que não contenham literais de string multilinhas. A instrução será, por "
151+
"padrão, executada dentro do namespace do timeit; esse comportamento pode ser "
152+
"controlado passando um namespace para *globals*."
140153

141154
#: ../../library/timeit.rst:109
142155
msgid ""

potodo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
- newtypes_tutorial.po 28 / 123 ( 22.0% translated).
4141

4242

43-
# faq (78.58% done)
43+
# faq (81.33% done)
4444

4545
- design.po 119 / 139 ( 85.0% translated).
46-
- extending.po 24 / 60 ( 40.0% translated).
46+
- extending.po 43 / 60 ( 71.0% translated).
4747
- library.po 131 / 142 ( 92.0% translated).
4848
- programming.po 269 / 350 ( 76.0% translated).
4949

@@ -70,7 +70,7 @@
7070
- index.po 173 / 225 ( 76.0% translated).
7171

7272

73-
# library (42.80% done)
73+
# library (42.81% done)
7474

7575
- argparse.po 181 / 277 ( 65.0% translated).
7676
- array.po 82 / 83 ( 98.0% translated).
@@ -221,7 +221,7 @@
221221
- test.po 94 / 251 ( 37.0% translated).
222222
- textwrap.po 40 / 46 ( 86.0% translated).
223223
- threading.po 30 / 198 ( 15.0% translated).
224-
- timeit.po 40 / 52 ( 76.0% translated).
224+
- timeit.po 42 / 52 ( 80.0% translated).
225225
- tkinter.po 267 / 268 ( 99.0% translated).
226226
- tkinter.tix.po 4 / 71 ( 5.0% translated).
227227
- tkinter.ttk.po 116 / 408 ( 28.0% translated).

stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "58.82%", "total": 47814, "updated_at": "2024-10-25T00:39:45+00:00Z"}
1+
{"translation": "58.86%", "total": 47814, "updated_at": "2024-10-28T00:40:57+00:00Z"}

0 commit comments

Comments
 (0)