Skip to content

Commit 474fa07

Browse files
Update translations
1 parent eb3ce90 commit 474fa07

File tree

11 files changed

+73
-33
lines changed

11 files changed

+73
-33
lines changed

howto/isolating-extensions.po

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,27 @@ msgid ""
491491
" // ... rest of initialization\n"
492492
"}"
493493
msgstr ""
494+
"// Um sinalizador para todo o processo\n"
495+
"static int loaded = 0;\n"
496+
"\n"
497+
"// Mutex para fornecer segurança para a thread (só necessário para Python de "
498+
"threads livres)\n"
499+
"static PyMutex modinit_mutex = {0};\n"
500+
"\n"
501+
"static int\n"
502+
"exec_module(PyObject* module)\n"
503+
"{\n"
504+
" PyMutex_Lock(&modinit_mutex);\n"
505+
" if (loaded) {\n"
506+
" PyMutex_Unlock(&modinit_mutex);\n"
507+
" PyErr_SetString(PyExc_ImportError,\n"
508+
" \"cannot load module more than once per process\");\n"
509+
" return -1;\n"
510+
" }\n"
511+
" loaded = 1;\n"
512+
" PyMutex_Unlock(&modinit_mutex);\n"
513+
" // ... rest of initialization\n"
514+
"}"
494515

495516
#: ../../howto/isolating-extensions.rst:240
496517
msgid ""
@@ -500,6 +521,12 @@ msgid ""
500521
"but it will, for example, support being loaded after Python runtime shutdown "
501522
"(:c:func:`Py_FinalizeEx`) and re-initialization (:c:func:`Py_Initialize`)."
502523
msgstr ""
524+
"Se a função :c:member:`PyModuleDef.m_clear` do seu módulo for capaz de se "
525+
"preparar para reinicializações futuras, ela deverá limpar o sinalizador "
526+
"``loaded``. Nesse caso, seu módulo não suportará múltiplas instâncias "
527+
"existentes *simultaneamente*, mas suportará, por exemplo, o carregamento "
528+
"após o desligamento do tempo de execução do Python (:c:func:`Py_FinalizeEx`) "
529+
"e a reinicialização (:c:func:`Py_Initialize`)."
503530

504531
#: ../../howto/isolating-extensions.rst:249
505532
msgid "Module State Access from Functions"

howto/logging.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-01-03 14:16+0000\n"
14+
"POT-Creation-Date: 2025-05-23 14:55+0000\n"
1515
"PO-Revision-Date: 2025-05-08 05:09+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -505,7 +505,7 @@ msgstr ""
505505
"pacote logging pré-data novas opções de formatação como :meth:`str.format` "
506506
"e :class:`string.Template`. Estas novas opções de formatação são suportadas, "
507507
"mas explorá-las esta fora do escopo deste tutorial: veja :ref:`formatting-"
508-
"styles`  para mais informações."
508+
"styles` para mais informações."
509509

510510
#: ../../howto/logging.rst:234
511511
msgid "Changing the format of displayed messages"

howto/regex.po

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3211,14 +3211,22 @@ msgid ""
32113211
" \\s*$ # Trailing whitespace to end-of-line\n"
32123212
"\"\"\", re.VERBOSE)"
32133213
msgstr ""
3214+
"pat = re.compile(r\"\"\"\n"
3215+
" \\s* # Ignora espaços em branco no início\n"
3216+
" (?P<header>[^:]+) # Nome do cabeçalho\n"
3217+
" \\s* : # Espaço em branco e caractere de dois pontos\n"
3218+
" (?P<value>.*?) # O valor do cabeçalho -- *? costumava\n"
3219+
" # perder o seguinte espaço em branco ao final\n"
3220+
" \\s*$ # Espaço em branco no final até o fim da linha\n"
3221+
"\"\"\", re.VERBOSE)"
32143222

32153223
#: ../../howto/regex.rst:1375
32163224
msgid "This is far more readable than::"
32173225
msgstr "Isso é muito mais legível do que::"
32183226

32193227
#: ../../howto/regex.rst:1377
32203228
msgid "pat = re.compile(r\"\\s*(?P<header>[^:]+)\\s*:(?P<value>.*?)\\s*$\")"
3221-
msgstr ""
3229+
msgstr "pat = re.compile(r\"\\s*(?P<header>[^:]+)\\s*:(?P<value>.*?)\\s*$\")"
32223230

32233231
#: ../../howto/regex.rst:1381
32243232
msgid "Feedback"

library/array.po

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-01-03 14:16+0000\n"
14+
"POT-Creation-Date: 2025-05-23 14:55+0000\n"
1515
"PO-Revision-Date: 2025-05-08 05:09+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -520,6 +520,14 @@ msgid ""
520520
"must also be defined if it contains corresponding floating-point values. "
521521
"Examples::"
522522
msgstr ""
523+
"A representação em string de objetos vetor tem o formato ``array(typecode, "
524+
"initializer)``. O *initializer* é omitido se o vetor estiver vazio; caso "
525+
"contrário, é uma string Unicode se o *typecode* for ``'u'`` ou ``'w'``; caso "
526+
"contrário, é uma lista de números. A representação em string pode ser "
527+
"convertida novamente para um array com o mesmo tipo e valor usando :func:"
528+
"`eval`, desde que a classe :class:`~array.array` tenha sido importada usando "
529+
"``from array import array``. As variáveis ``inf`` e ``nan`` também devem ser "
530+
"definidas se contiverem valores de ponto flutuante correspondentes. Exemplos:"
523531

524532
#: ../../library/array.rst:269
525533
msgid ""
@@ -551,4 +559,4 @@ msgstr "O pacote NumPy define outro tipo de vetor."
551559

552560
#: ../../library/array.rst:7
553561
msgid "arrays"
554-
msgstr ""
562+
msgstr "vetores"

library/email.generator.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-01-03 14:16+0000\n"
14+
"POT-Creation-Date: 2025-05-23 14:55+0000\n"
1515
"PO-Revision-Date: 2025-05-08 05:09+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -388,9 +388,9 @@ msgid ""
388388
msgstr ""
389389
"O módulo :mod:`email.generator` também fornece uma classe derivada, :class:"
390390
"`DecodedGenerator`, que é como a classe base :class:`Generator`, exceto que "
391-
"as partes não- :mimetype:`text` não são serializadas, mas são representadas "
392-
"no fluxo de saída por uma string derivada de um modelo preenchido com "
393-
"informações sobre a parte."
391+
"as partes não-\\ :mimetype:`text` não são serializadas, mas são "
392+
"representadas no fluxo de saída por uma string derivada de um modelo "
393+
"preenchido com informações sobre a parte."
394394

395395
#: ../../library/email.generator.rst:244
396396
msgid ""

library/re.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2512,9 +2512,9 @@ msgid ""
25122512
"``\\g<name>``) are replaced by the contents of the corresponding group. The "
25132513
"backreference ``\\g<0>`` will be replaced by the entire match."
25142514
msgstr ""
2515-
"Retorna a string obtida fazendo a substituição da contrabarra na string de "
2516-
"modelo *template*, como feito pelo método :meth:`~Pattern.sub`. Escapes como "
2517-
"``\\n`` são convertidos para os caracteres apropriados, e referências "
2515+
"Retorna a string obtida fazendo a substituição da contrabarra na string "
2516+
"template *template*, como feito pelo método :meth:`~Pattern.sub`. Escapes "
2517+
"como ``\\n`` são convertidos para os caracteres apropriados, e referências "
25182518
"anteriores numéricas (``\\1``, ``\\2``) e referências anteriores nomeadas "
25192519
"(``\\g<1>``, ``\\g<nome>``) são substituídas pelo conteúdo do grupo "
25202520
"correspondente. A referência anterior ``\\g<0>`` será substituída pela "

library/string.po

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-05-09 14:59+0000\n"
14+
"POT-Creation-Date: 2025-05-23 14:55+0000\n"
1515
"PO-Revision-Date: 2025-05-08 05:10+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -1542,7 +1542,7 @@ msgstr ""
15421542

15431543
#: ../../library/string.rst:782
15441544
msgid "Template strings"
1545-
msgstr "Strings de modelo"
1545+
msgstr "Strings template"
15461546

15471547
#: ../../library/string.rst:784
15481548
msgid ""
@@ -1553,20 +1553,20 @@ msgid ""
15531553
"Python. As an example of a library built on template strings for i18n, see "
15541554
"the `flufl.i18n <https://flufli18n.readthedocs.io/en/latest/>`_ package."
15551555
msgstr ""
1556-
"Strings de modelo fornecem substituições de string mais simples, conforme "
1557-
"descrito em :pep:`292`. Um caso de uso primário para strings de modelo é "
1558-
"para internacionalização (i18n), uma vez que, nesse contexto, a sintaxe e a "
1556+
"Strings template fornecem substituições de string mais simples, conforme "
1557+
"descrito em :pep:`292`. Um caso de uso primário para strings template é para "
1558+
"internacionalização (i18n), uma vez que, nesse contexto, a sintaxe e a "
15591559
"funcionalidade mais simples tornam mais fácil traduzir do que outros "
15601560
"recursos embutidos de formatação de strings no Python. Como um exemplo de "
1561-
"biblioteca construída sobre strings de modelo para i18n, veja o pacote "
1562-
"`flufl.i18n <https://flufli18n.readthedocs.io/en/latest/>`_."
1561+
"biblioteca construída sobre strings template para i18n, veja o pacote `flufl."
1562+
"i18n <https://flufli18n.readthedocs.io/en/latest/>`_."
15631563

15641564
#: ../../library/string.rst:794
15651565
msgid ""
15661566
"Template strings support ``$``-based substitutions, using the following "
15671567
"rules:"
15681568
msgstr ""
1569-
"Strings de modelo oferecem suporte a substituições baseadas em ``$``, usando "
1569+
"Strings template oferecem suporte a substituições baseadas em ``$``, usando "
15701570
"as seguintes regras:"
15711571

15721572
#: ../../library/string.rst:796
@@ -1618,7 +1618,7 @@ msgstr ""
16181618

16191619
#: ../../library/string.rst:818
16201620
msgid "The constructor takes a single argument which is the template string."
1621-
msgstr "O construtor recebe um único argumento que é a string de modelo."
1621+
msgstr "O construtor recebe um único argumento que é a string template"
16221622

16231623
#: ../../library/string.rst:823
16241624
msgid ""
@@ -1744,7 +1744,7 @@ msgid ""
17441744
msgstr ""
17451745
"Uso avançado: você pode derivar subclasses de :class:`Template` para "
17461746
"personalizar a sintaxe do espaço reservado, caractere delimitador ou toda a "
1747-
"expressão regular usada para analisar strings de modelo. Para fazer isso, "
1747+
"expressão regular usada para analisar strings template. Para fazer isso, "
17481748
"você pode substituir estes atributos de classe:"
17491749

17501750
#: ../../library/string.rst:891
@@ -1968,4 +1968,4 @@ msgstr "$ (dólar)"
19681968

19691969
#: ../../library/string.rst:792
19701970
msgid "in template strings"
1971-
msgstr "no template de strings"
1971+
msgstr "em strings template"

potodo.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,14 @@
4848

4949

5050

51-
# howto (62.98% done)
51+
# howto (63.11% done)
5252

5353
- curses.po 58 / 121 ( 47.0% translated).
5454
- descriptor.po 187 / 230 ( 81.0% translated).
5555
- enum.po 62 / 327 ( 18.0% translated).
5656
- functional.po 138 / 252 ( 54.0% translated).
57-
- isolating-extensions.po 132 / 134 ( 98.0% translated).
5857
- logging-cookbook.po 40 / 421 ( 9.0% translated).
5958
- logging.po 121 / 250 ( 48.0% translated).
60-
- regex.po 330 / 332 ( 99.0% translated).
6159
- sockets.po 35 / 63 ( 55.0% translated).
6260
- sorting.po 46 / 75 ( 61.0% translated).
6361
- unicode.po 30 / 145 ( 20.0% translated).
@@ -70,7 +68,6 @@
7068

7169
# library (64.51% done)
7270

73-
- array.po 84 / 86 ( 97.0% translated).
7471
- asyncio-dev.po 16 / 54 ( 29.0% translated).
7572
- asyncio-eventloop.po 308 / 409 ( 75.0% translated).
7673
- asyncio-future.po 9 / 64 ( 14.0% translated).
@@ -210,5 +207,5 @@
210207
- changelog.po 2476 / 12361 ( 20.0% translated).
211208

212209

213-
# TOTAL (61.54% done)
210+
# TOTAL (61.55% done)
214211

stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion": "61.54%", "translated": 46782, "entries": 76022, "updated_at": "2025-06-04T23:30:33+00:00Z"}
1+
{"completion": "61.55%", "translated": 46788, "entries": 76022, "updated_at": "2025-06-05T23:32:46+00:00Z"}

whatsnew/2.7.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-02-21 14:16+0000\n"
14+
"POT-Creation-Date: 2025-05-23 14:55+0000\n"
1515
"PO-Revision-Date: 2025-05-08 05:10+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
1717
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/python-doc/"
@@ -2030,7 +2030,7 @@ msgstr ""
20302030
"A implementação de ``%`` verifica se o operando do lado esquerdo é uma "
20312031
"string Python e usa casos especiais; isso resulta em um aumento de "
20322032
"desempenho de 1 a 3% para aplicativos que usam frequentemente ``%`` com "
2033-
"strings, como bibliotecas de modelos. (Implementação de Collin Winter; :"
2033+
"strings, como templates em bibliotecas. (Implementação de Collin Winter; :"
20342034
"issue:`5176`.)"
20352035

20362036
#: ../../whatsnew/2.7.rst:999

whatsnew/changelog.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3712,8 +3712,8 @@ msgid ""
37123712
":gh:`124651`: Properly quote template strings in :mod:`venv` activation "
37133713
"scripts."
37143714
msgstr ""
3715-
":gh:`124651`: Coloca corretamente entre aspas as strings de modelo em "
3716-
"scripts de ativação :mod:`venv`."
3715+
":gh:`124651`: Coloca corretamente entre aspas as strings template em scripts "
3716+
"de ativação :mod:`venv`."
37173717

37183718
#: ../NEWS:1489
37193719
msgid ""

0 commit comments

Comments
 (0)