55#
66# Translators:
77# Marco Rougeth <marco@rougeth.com>, 2019
8- # Rafael Fontenelle <rffontenelle@gmail.com>, 2019
98# i17obot <i17obot@rougeth.com>, 2020
9+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2025
1010#
1111#, fuzzy
1212msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.9\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2025-01-03 16:35 +0000\n "
16+ "POT-Creation-Date : 2025-01-10 16:41 +0000\n "
1717"PO-Revision-Date : 2017-02-16 23:02+0000\n "
18- "Last-Translator : i17obot <i17obot@rougeth .com>, 2020 \n "
18+ "Last-Translator : Rafael Fontenelle <rffontenelle@gmail .com>, 2025 \n "
1919"Language-Team : Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
2020"teams/5390/pt_BR/)\n "
2121"Language : pt_BR\n "
@@ -41,6 +41,10 @@ msgid ""
4141"administrative tools, and prototypes that will later be wrapped in a more "
4242"sophisticated interface."
4343msgstr ""
44+ "A classe :class:`Cmd` fornece uma estrutura simples para escrever "
45+ "interpretadores de comando orientados a linhas. Eles são frequentemente "
46+ "úteis para melhorar testes, ferramentas administrativas e protótipos que "
47+ "mais tarde serão encapsulados em uma interface mais sofisticada."
4448
4549#: ../../library/cmd.rst:20
4650msgid ""
@@ -50,6 +54,11 @@ msgid ""
5054"yourself in order to inherit :class:`Cmd`'s methods and encapsulate action "
5155"methods."
5256msgstr ""
57+ "Uma instância de :class:`Cmd` ou instância de sua subclasse é um framework "
58+ "de interpretador orientado a linhas. Não há um bom motivo para instanciar :"
59+ "class:`Cmd` em si; em vez disso, ele é útil como uma superclasse de uma "
60+ "classe de interpretador que você mesmo define para herdar os métodos de :"
61+ "class:`Cmd` e encapsular métodos de ação."
5362
5463#: ../../library/cmd.rst:25
5564msgid ""
@@ -58,6 +67,10 @@ msgid ""
5867"`None` and :mod:`readline` is available, command completion is done "
5968"automatically."
6069msgstr ""
70+ "O argumento opcional *completekey* é o nome :mod:`readline` de uma chave de "
71+ "conclusão; o padrão é :kbd:`Tab`. Se *completekey* não for :const:`None` e :"
72+ "mod:`readline` estiver disponível, a conclusão do comando será feita "
73+ "automaticamente."
6174
6275#: ../../library/cmd.rst:29
6376msgid ""
@@ -66,34 +79,46 @@ msgid ""
6679"and output. If not specified, they will default to :data:`sys.stdin` and :"
6780"data:`sys.stdout`."
6881msgstr ""
82+ "Os argumentos opcionais *stdin* e *stdout* especificam os objetos arquivo de "
83+ "entrada e saída que a instância Cmd ou instância de sua subclasse usará para "
84+ "entrada e saída. Se não forem especificados, eles serão padronizados para :"
85+ "data:`sys.stdin` e :data:`sys.stdout`."
6986
7087#: ../../library/cmd.rst:34
7188msgid ""
7289"If you want a given *stdin* to be used, make sure to set the instance's :"
7390"attr:`use_rawinput` attribute to ``False``, otherwise *stdin* will be "
7491"ignored."
7592msgstr ""
93+ "Se você quiser que um determinado *stdin* seja usado, certifique-se de "
94+ "definir o atributo :attr:`use_rawinput` da instância como ``False``, caso "
95+ "contrário, *stdin* será ignorado."
7696
7797#: ../../library/cmd.rst:42
7898msgid "Cmd Objects"
7999msgstr "Objetos Cmd"
80100
81101#: ../../library/cmd.rst:44
82102msgid "A :class:`Cmd` instance has the following methods:"
83- msgstr ""
103+ msgstr "Uma instância :class:`Cmd` tem os seguintes métodos: "
84104
85105#: ../../library/cmd.rst:49
86106msgid ""
87107"Repeatedly issue a prompt, accept input, parse an initial prefix off the "
88108"received input, and dispatch to action methods, passing them the remainder "
89109"of the line as argument."
90110msgstr ""
111+ "Emite um prompt repetidamente, aceite a entrada, analise um prefixo inicial "
112+ "da entrada recebida e despache para métodos de ação, passando a eles o "
113+ "restante da linha como argumento."
91114
92115#: ../../library/cmd.rst:53
93116msgid ""
94117"The optional argument is a banner or intro string to be issued before the "
95118"first prompt (this overrides the :attr:`intro` class attribute)."
96119msgstr ""
120+ "O argumento opcional é um banner ou uma string de introdução a ser emitida "
121+ "antes do primeiro prompt (isso substitui o atributo de classe :attr:`intro`)."
97122
98123#: ../../library/cmd.rst:56
99124msgid ""
@@ -103,10 +128,16 @@ msgid ""
103128"`Control-F` moves the cursor to the right non-destructively, :kbd:`Control-"
104129"B` moves the cursor to the left non-destructively, etc.)."
105130msgstr ""
131+ "Se o módulo :mod:`readline` for carregado, a entrada herdará automaticamente "
132+ "a edição de lista de histórico semelhante a :program:`bash` (por exemplo, :"
133+ "kbd:`Control-P` retorna ao último comando, :kbd:`Control-N` avança para o "
134+ "próximo, :kbd:`Control-F` move o cursor para a direita de forma não "
135+ "destrutiva, :kbd:`Control-B` move o cursor para a esquerda de forma não "
136+ "destrutiva, etc.)."
106137
107138#: ../../library/cmd.rst:62
108139msgid "An end-of-file on input is passed back as the string ``'EOF'``."
109- msgstr ""
140+ msgstr "Um fim de arquivo na entrada é retornado como a string ``'EOF'``. "
110141
111142#: ../../library/cmd.rst:68
112143msgid ""
@@ -163,12 +194,18 @@ msgid ""
163194"Method called when an empty line is entered in response to the prompt. If "
164195"this method is not overridden, it repeats the last nonempty command entered."
165196msgstr ""
197+ "Método chamado quando uma linha vazia é inserida em resposta ao prompt. Se "
198+ "esse método não for substituído, ele repete o último comando não vazio "
199+ "inserido."
166200
167201#: ../../library/cmd.rst:114
168202msgid ""
169203"Method called on an input line when the command prefix is not recognized. If "
170204"this method is not overridden, it prints an error message and returns."
171205msgstr ""
206+ "Método chamado em uma linha de entrada quando o prefixo do comando não é "
207+ "reconhecido. Se esse método não for substituído, ele imprime uma mensagem de "
208+ "erro e retorna."
172209
173210#: ../../library/cmd.rst:120
174211msgid ""
@@ -185,6 +222,12 @@ msgid ""
185222"the :meth:`precmd` implementation may re-write the command or simply return "
186223"*line* unchanged."
187224msgstr ""
225+ "Método gancho executado logo antes da linha de comando *line* ser "
226+ "interpretada, mas depois que o prompt de entrada é gerado e emitido. Este "
227+ "método é um stub em :class:`Cmd`; ele existe para ser substituído por "
228+ "subclasses. O valor de retorno é usado como o comando que será executado "
229+ "pelo método :meth:`onecmd`; a implementação :meth:`precmd` pode reescrever o "
230+ "comando ou simplesmente retornar *line* inalterado."
188231
189232#: ../../library/cmd.rst:136
190233msgid ""
@@ -196,53 +239,77 @@ msgid ""
196239"this method will be used as the new value for the internal flag which "
197240"corresponds to *stop*; returning false will cause interpretation to continue."
198241msgstr ""
242+ "Método gancho executado logo após o término do despacho de um comando. Este "
243+ "método é um stub em :class:`Cmd`; ele existe para ser substituído por "
244+ "subclasses. *line* é a linha de comando que foi executada, e *stop* é um "
245+ "sinalizador que indica se a execução será encerrada após a chamada para :"
246+ "meth:`postcmd`; este será o valor de retorno do método :meth:`onecmd`. O "
247+ "valor de retorno deste método será usado como o novo valor para o "
248+ "sinalizador interno que corresponde a *stop*; retornar false fará com que a "
249+ "interpretação continue."
199250
200251#: ../../library/cmd.rst:147
201252msgid ""
202253"Hook method executed once when :meth:`cmdloop` is called. This method is a "
203254"stub in :class:`Cmd`; it exists to be overridden by subclasses."
204255msgstr ""
256+ "Método gancho executado uma vez quando :meth:`cmdloop` é chamado. Este "
257+ "método é um stub em :class:`Cmd`; ele existe para ser substituído por "
258+ "subclasses."
205259
206260#: ../../library/cmd.rst:153
207261msgid ""
208262"Hook method executed once when :meth:`cmdloop` is about to return. This "
209263"method is a stub in :class:`Cmd`; it exists to be overridden by subclasses."
210264msgstr ""
265+ "Método gancho executado uma vez quando :meth:`cmdloop` está para ser "
266+ "retornado. Este método é um stub em :class:`Cmd`; ele existe para ser "
267+ "substituído por subclasses."
211268
212269#: ../../library/cmd.rst:157
213270msgid ""
214271"Instances of :class:`Cmd` subclasses have some public instance variables:"
215272msgstr ""
273+ "Instâncias das subclasses :class:`Cmd` têm algumas variáveis de instância "
274+ "públicas:"
216275
217276#: ../../library/cmd.rst:161
218277msgid "The prompt issued to solicit input."
219- msgstr ""
278+ msgstr "O prompt emitido para solicitar informações. "
220279
221280#: ../../library/cmd.rst:166
222281msgid "The string of characters accepted for the command prefix."
223- msgstr ""
282+ msgstr "A sequência de caracteres aceita para o prefixo do comando. "
224283
225284#: ../../library/cmd.rst:171
226285msgid "The last nonempty command prefix seen."
227- msgstr ""
286+ msgstr "O último prefixo de comando não vazio visto. "
228287
229288#: ../../library/cmd.rst:176
230289msgid ""
231290"A list of queued input lines. The cmdqueue list is checked in :meth:"
232291"`cmdloop` when new input is needed; if it is nonempty, its elements will be "
233292"processed in order, as if entered at the prompt."
234293msgstr ""
294+ "Uma lista de linhas de entrada enfileiradas. A lista cmdqueue é verificada "
295+ "em :meth:`cmdloop` quando uma nova entrada é necessária; se não estiver "
296+ "vazia, seus elementos serão processados em ordem, como se tivessem sido "
297+ "inseridos no prompt."
235298
236299#: ../../library/cmd.rst:183
237300msgid ""
238301"A string to issue as an intro or banner. May be overridden by giving the :"
239302"meth:`cmdloop` method an argument."
240303msgstr ""
304+ "Uma string para emitir como uma introdução ou banner. Pode ser substituída "
305+ "dando ao método :meth:`cmdloop` um argumento."
241306
242307#: ../../library/cmd.rst:189
243308msgid ""
244309"The header to issue if the help output has a section for documented commands."
245310msgstr ""
311+ "O cabeçalho a ser emitido se a saída de ajuda tiver uma seção para comandos "
312+ "documentados."
246313
247314#: ../../library/cmd.rst:194
248315msgid ""
@@ -263,6 +330,9 @@ msgid ""
263330"The character used to draw separator lines under the help-message headers. "
264331"If empty, no ruler line is drawn. It defaults to ``'='``."
265332msgstr ""
333+ "O caractere usado para desenhar linhas separadoras sob os cabeçalhos de "
334+ "mensagem de ajuda. Se estiver vazio, nenhuma linha de régua será desenhada. "
335+ "O padrão é ``'='``."
266336
267337#: ../../library/cmd.rst:214
268338msgid ""
@@ -283,12 +353,16 @@ msgid ""
283353"The :mod:`cmd` module is mainly useful for building custom shells that let a "
284354"user work with a program interactively."
285355msgstr ""
356+ "O módulo :mod:`cmd` é útil principalmente para criar shells personalizados "
357+ "que permitem ao usuário trabalhar com um programa interativamente."
286358
287359#: ../../library/cmd.rst:231
288360msgid ""
289361"This section presents a simple example of how to build a shell around a few "
290362"of the commands in the :mod:`turtle` module."
291363msgstr ""
364+ "Esta seção apresenta um exemplo simples de como construir um shell em torno "
365+ "de alguns dos comandos do módulo :mod:`turtle`."
292366
293367#: ../../library/cmd.rst:234
294368msgid ""
@@ -313,3 +387,6 @@ msgid ""
313387"using blank lines to repeat commands, and the simple record and playback "
314388"facility:"
315389msgstr ""
390+ "Aqui está uma sessão de exemplo com o shell do turtle mostrando as funções "
391+ "de ajuda, usando linhas em branco para repetir comandos e o recurso simples "
392+ "de gravação e reprodução:"
0 commit comments