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

Skip to content

Commit 91c4bca

Browse files
Update translations
1 parent 1c6b843 commit 91c4bca

File tree

3 files changed

+34
-13
lines changed

3 files changed

+34
-13
lines changed

faq/programming.po

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,7 +3049,7 @@ msgstr ""
30493049

30503050
#: ../../faq/programming.rst:2116
30513051
msgid "How can I have modules that mutually import each other?"
3052-
msgstr ""
3052+
msgstr "Como posso ter módulos que se importam mutuamente?"
30533053

30543054
#: ../../faq/programming.rst:2118
30553055
msgid "Suppose you have the following modules:"
@@ -3069,55 +3069,64 @@ msgstr "O problema é que o interpretador vai realizar os seguintes passos:"
30693069

30703070
#: ../../faq/programming.rst:2132
30713071
msgid "main imports ``foo``"
3072-
msgstr ""
3072+
msgstr "programa principal importa ``foo``"
30733073

30743074
#: ../../faq/programming.rst:2133
30753075
msgid "Empty globals for ``foo`` are created"
3076-
msgstr ""
3076+
msgstr "São criados globais vazios para ``foo``"
30773077

30783078
#: ../../faq/programming.rst:2134
30793079
msgid "``foo`` is compiled and starts executing"
3080-
msgstr ""
3080+
msgstr "``foo`` é compilado e começa a ser executado"
30813081

30823082
#: ../../faq/programming.rst:2135
30833083
msgid "``foo`` imports ``bar``"
3084-
msgstr ""
3084+
msgstr "``foo`` importa ``bar``"
30853085

30863086
#: ../../faq/programming.rst:2136
30873087
msgid "Empty globals for ``bar`` are created"
3088-
msgstr ""
3088+
msgstr "São criados globais vazios para ``bar``"
30893089

30903090
#: ../../faq/programming.rst:2137
30913091
msgid "``bar`` is compiled and starts executing"
3092-
msgstr ""
3092+
msgstr "``bar`` é compilado e começa a ser executado"
30933093

30943094
#: ../../faq/programming.rst:2138
30953095
msgid ""
30963096
"``bar`` imports ``foo`` (which is a no-op since there already is a module "
30973097
"named ``foo``)"
30983098
msgstr ""
3099+
"``bar`` importa ``foo`` (o que não é executado de fato, pois já existe um "
3100+
"módulo chamado ``foo``)"
30993101

31003102
#: ../../faq/programming.rst:2139
31013103
msgid ""
31023104
"The import mechanism tries to read ``foo_var`` from ``foo`` globals, to set "
31033105
"``bar.foo_var = foo.foo_var``"
31043106
msgstr ""
3107+
"O mecanismo de importação tenta ler ``foo_var`` do ``foo`` em globais, para "
3108+
"definir ``bar.foo_var = foo.foo_var``"
31053109

31063110
#: ../../faq/programming.rst:2141
31073111
msgid ""
31083112
"The last step fails, because Python isn't done with interpreting ``foo`` yet "
31093113
"and the global symbol dictionary for ``foo`` is still empty."
31103114
msgstr ""
3115+
"A última etapa falha, pois Python ainda não terminou de interpretar ``foo`` "
3116+
"e o dicionário de símbolos global para ``foo`` ainda está vazio."
31113117

31123118
#: ../../faq/programming.rst:2144
31133119
msgid ""
31143120
"The same thing happens when you use ``import foo``, and then try to access "
31153121
"``foo.foo_var`` in global code."
31163122
msgstr ""
3123+
"O mesmo acontece quando você usa ``import foo`` e, em seguida, tenta acessar "
3124+
"``foo.foo_var`` no código global."
31173125

31183126
#: ../../faq/programming.rst:2147
31193127
msgid "There are (at least) three possible workarounds for this problem."
31203128
msgstr ""
3129+
"Há (pelo menos) três possíveis soluções alternativas para esse problema."
31213130

31223131
#: ../../faq/programming.rst:2149
31233132
msgid ""
@@ -3127,21 +3136,29 @@ msgid ""
31273136
"only. This means everything from an imported module is referenced as "
31283137
"``<module>.<name>``."
31293138
msgstr ""
3139+
"Guido van Rossum recomenda evitar todos os usos de ``from <module> import ..."
3140+
"`` e colocar todo o código dentro de funções. As inicializações de "
3141+
"variáveis globais e variáveis de classe devem usar apenas constantes ou "
3142+
"funções embutidas. Isso significa que tudo de um módulo importado é "
3143+
"referenciado como ``<module>.<name>``."
31303144

31313145
#: ../../faq/programming.rst:2154
31323146
msgid ""
31333147
"Jim Roskind suggests performing steps in the following order in each module:"
31343148
msgstr ""
3149+
"Jim Roskind sugere a execução das etapas na seguinte ordem em cada módulo:"
31353150

31363151
#: ../../faq/programming.rst:2156
31373152
msgid ""
31383153
"exports (globals, functions, and classes that don't need imported base "
31393154
"classes)"
31403155
msgstr ""
3156+
"exportações (globais, função e classes que não precisam de classes base "
3157+
"importadas)"
31413158

31423159
#: ../../faq/programming.rst:2158
31433160
msgid "``import`` statements"
3144-
msgstr "Declaração ``import``"
3161+
msgstr "instruções ``import``"
31453162

31463163
#: ../../faq/programming.rst:2159
31473164
msgid ""
@@ -3154,16 +3171,20 @@ msgid ""
31543171
"Van Rossum doesn't like this approach much because the imports appear in a "
31553172
"strange place, but it does work."
31563173
msgstr ""
3174+
"Van Rossum não gosta muito dessa abordagem porque a importação aparece em um "
3175+
"lugar estranho, mas ela funciona."
31573176

31583177
#: ../../faq/programming.rst:2164
31593178
msgid ""
31603179
"Matthias Urlichs recommends restructuring your code so that the recursive "
31613180
"import is not necessary in the first place."
31623181
msgstr ""
3182+
"Matthias Urlichs recomenda reestruturar seu código para que importação "
3183+
"recursiva não seja necessária em primeiro lugar."
31633184

31643185
#: ../../faq/programming.rst:2167
31653186
msgid "These solutions are not mutually exclusive."
3166-
msgstr "Essas soluções não são mutualmente exclusivas."
3187+
msgstr "Essas soluções não são mutuamente exclusivas."
31673188

31683189
#: ../../faq/programming.rst:2171
31693190
msgid "__import__('x.y.z') returns <module 'x'>; how do I get z?"

potodo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@
5151
- newtypes_tutorial.po 27 / 123 ( 21.0% translated).
5252

5353

54-
# faq (95.06% done)
54+
# faq (96.93% done)
5555

5656
- design.po 128 / 142 ( 90.0% translated).
5757
- extending.po 55 / 58 ( 94.0% translated).
5858
- library.po 136 / 140 ( 97.0% translated).
59-
- programming.po 369 / 393 ( 93.0% translated).
59+
- programming.po 386 / 393 ( 98.0% translated).
6060

6161

6262
# howto (61.12% done)
@@ -328,5 +328,5 @@
328328
- 3.8.po 468 / 469 ( 99.0% translated).
329329

330330

331-
# TOTAL (65.82% done)
331+
# TOTAL (65.85% done)
332332

stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"completion": "65.82%", "translated": 36725, "entries": 55794, "updated_at": "2025-02-10T23:37:16+00:00Z"}
1+
{"completion": "65.85%", "translated": 36742, "entries": 55794, "updated_at": "2025-02-11T23:37:29+00:00Z"}

0 commit comments

Comments
 (0)