-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathexamples.po
More file actions
269 lines (237 loc) · 11.4 KB
/
Copy pathexamples.po
File metadata and controls
269 lines (237 loc) · 11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 1990-2020, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: Python 2.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-02-09 18:46+0900\n"
"PO-Revision-Date: 2019-12-13 11:34+0000\n"
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/python-doc/python-27/language/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: ../../distutils/examples.rst:5
msgid "Examples"
msgstr "Exemplos"
#: ../../distutils/examples.rst:7
msgid ""
"This chapter provides a number of basic examples to help get started with "
"distutils. Additional information about using distutils can be found in the"
" Distutils Cookbook."
msgstr ""
"Este capítulo fornece vários exemplos básicos para ajudar a começar com "
"distutils. Informações adicionais sobre o uso de distutils podem ser "
"encontradas no Distutils Cookbook."
#: ../../distutils/examples.rst:14
msgid ""
"`Distutils Cookbook <https://wiki.python.org/moin/Distutils/Cookbook>`_"
msgstr ""
"`Distutils Cookbook <https://wiki.python.org/moin/Distutils/Cookbook>`_"
#: ../../distutils/examples.rst:15
msgid ""
"Collection of recipes showing how to achieve more control over distutils."
msgstr ""
"Coleção de receitas mostrando como obter mais controle sobre distutils."
#: ../../distutils/examples.rst:21
msgid "Pure Python distribution (by module)"
msgstr "Distribuição Python pura (por módulo)"
#: ../../distutils/examples.rst:23
msgid ""
"If you're just distributing a couple of modules, especially if they don't "
"live in a particular package, you can specify them individually using the "
"``py_modules`` option in the setup script."
msgstr ""
"Se você está apenas distribuindo alguns módulos, especialmente se eles não "
"residem em um pacote específico, você pode especificá-los individualmente "
"usando a opção ``py_modules`` no script de instalação."
#: ../../distutils/examples.rst:27
msgid ""
"In the simplest case, you'll have two files to worry about: a setup script "
"and the single module you're distributing, :file:`foo.py` in this example::"
msgstr ""
"No caso mais simples, você terá dois arquivos com os quais se preocupar: um "
"script de instalação e o único módulo que você está distribuindo "
":file:`foo.py` neste exemplo::"
#: ../../distutils/examples.rst:34
msgid ""
"(In all diagrams in this section, *<root>* will refer to the distribution "
"root directory.) A minimal setup script to describe this situation would "
"be::"
msgstr ""
"(Em todos os diagramas desta seção, *<root>* se refere ao diretório raiz da "
"distribuição.) Um script de instalação mínimo para descrever essa situação "
"seria::"
#: ../../distutils/examples.rst:43
msgid ""
"Note that the name of the distribution is specified independently with the "
"``name`` option, and there's no rule that says it has to be the same as the "
"name of the sole module in the distribution (although that's probably a good"
" convention to follow). However, the distribution name is used to generate "
"filenames, so you should stick to letters, digits, underscores, and hyphens."
msgstr ""
"Observe que o nome da distribuição é especificado independentemente com a "
"opção ``name``, e não existe uma regra que diga que deve ser igual ao nome "
"do único módulo na distribuição (embora seja provavelmente uma boa convenção"
" a seguir ) No entanto, o nome da distribuição é usado para gerar nomes de "
"arquivos, portanto, você deve usar letras, dígitos, sublinhados e hífenes."
#: ../../distutils/examples.rst:49
msgid ""
"Since ``py_modules`` is a list, you can of course specify multiple modules, "
"eg. if you're distributing modules :mod:`foo` and :mod:`bar`, your setup "
"might look like this::"
msgstr ""
"Como ``py_modules`` é uma lista, é claro que você pode especificar vários "
"módulos, por exemplo. se você estiver distribuindo os módulos :mod:`foo` e "
":mod:`bar`, sua configuração poderá ser assim::"
#: ../../distutils/examples.rst:58
msgid "and the setup script might be ::"
msgstr "e o script de configuração pode ser ::"
#: ../../distutils/examples.rst:66
msgid ""
"You can put module source files into another directory, but if you have "
"enough modules to do that, it's probably easier to specify modules by "
"package rather than listing them individually."
msgstr ""
"Você pode colocar os arquivos fonte do módulo em outro diretório, mas se "
"você tiver módulos suficientes para fazer isso, provavelmente será mais "
"fácil especificar módulos por pacote do que listá-los individualmente."
#: ../../distutils/examples.rst:74
msgid "Pure Python distribution (by package)"
msgstr "Distribuição Python pura (por pacote)"
#: ../../distutils/examples.rst:76
msgid ""
"If you have more than a couple of modules to distribute, especially if they "
"are in multiple packages, it's probably easier to specify whole packages "
"rather than individual modules. This works even if your modules are not in "
"a package; you can just tell the Distutils to process modules from the root "
"package, and that works the same as any other package (except that you don't"
" have to have an :file:`__init__.py` file)."
msgstr ""
"Se você tiver mais do que alguns módulos para distribuir, especialmente se "
"estiverem em vários pacotes, provavelmente será mais fácil especificar "
"pacotes inteiros do que módulos individuais. Isso funciona mesmo que seus "
"módulos não estejam em um pacote; você pode simplesmente dizer ao Distutils "
"para processar os módulos do pacote raiz, e isso funciona da mesma forma que"
" em qualquer outro pacote (exceto que você não precisa ter um arquivo "
":file:`__init__.py`)."
#: ../../distutils/examples.rst:83
msgid "The setup script from the last example could also be written as ::"
msgstr ""
"O script de instalação do último exemplo também pode ser escrito como ::"
#: ../../distutils/examples.rst:91
msgid "(The empty string stands for the root package.)"
msgstr "(A string vazia representa o pacote raiz.)"
#: ../../distutils/examples.rst:93
msgid ""
"If those two files are moved into a subdirectory, but remain in the root "
"package, e.g.::"
msgstr ""
"Se esses dois arquivos forem movidos para um subdiretório, mas permanecerem "
"no pacote raiz, por exemplo::"
#: ../../distutils/examples.rst:101
msgid ""
"then you would still specify the root package, but you have to tell the "
"Distutils where source files in the root package live::"
msgstr ""
"você ainda especificaria o pacote raiz, mas precisará informar ao Distutils "
"onde estão os arquivos fonte no pacote raiz::"
#: ../../distutils/examples.rst:111
msgid ""
"More typically, though, you will want to distribute multiple modules in the "
"same package (or in sub-packages). For example, if the :mod:`foo` and "
":mod:`bar` modules belong in package :mod:`foobar`, one way to layout your "
"source tree is ::"
msgstr ""
"Mais tipicamente, porém, você deseja distribuir vários módulos no mesmo "
"pacote (ou em subpacotes). Por exemplo, se os módulos :mod:`foo` e "
":mod:`bar` pertencem ao pacote :mod:`foobar`, uma maneira de fazer o layout "
"da sua árvore de fontes é ::"
#: ../../distutils/examples.rst:123
msgid ""
"This is in fact the default layout expected by the Distutils, and the one "
"that requires the least work to describe in your setup script::"
msgstr ""
"Na verdade, esse é o layout padrão esperado pelo Distutils e o que exige "
"menos trabalho para descrever no seu script de instalação::"
#: ../../distutils/examples.rst:132
msgid ""
"If you want to put modules in directories not named for their package, then "
"you need to use the ``package_dir`` option again. For example, if the "
":file:`src` directory holds modules in the :mod:`foobar` package::"
msgstr ""
"Se você quiser colocar módulos em diretórios não nomeados para o pacote, "
"precisará usar a opção ``package_dir`` novamente. Por exemplo, se o "
"diretório :file:`src` contiver módulos no pacote :mod:`foobar`::"
#: ../../distutils/examples.rst:143
msgid "an appropriate setup script would be ::"
msgstr "um script de instalação apropriado seria ::"
#: ../../distutils/examples.rst:152
msgid ""
"Or, you might put modules from your main package right in the distribution "
"root::"
msgstr ""
"Ou, você pode colocar módulos do seu pacote principal diretamente na raiz da"
" distribuição::"
#: ../../distutils/examples.rst:161
msgid "in which case your setup script would be ::"
msgstr "nesse caso, seu script de instalação seria ::"
#: ../../distutils/examples.rst:170
msgid "(The empty string also stands for the current directory.)"
msgstr "(A string vazia também representa o diretório atual.)"
#: ../../distutils/examples.rst:172
msgid ""
"If you have sub-packages, they must be explicitly listed in ``packages``, "
"but any entries in ``package_dir`` automatically extend to sub-packages. (In"
" other words, the Distutils does *not* scan your source tree, trying to "
"figure out which directories correspond to Python packages by looking for "
":file:`__init__.py` files.) Thus, if the default layout grows a sub-"
"package::"
msgstr ""
"Se você possui subpacotes, eles devem ser listados explicitamente em "
"``packages``, mas qualquer entrada em ``package_dir`` se estende "
"automaticamente aos subpacotes. (Em outras palavras, o Distutils *não* varre"
" sua árvore de fontes, tentando descobrir quais diretórios correspondem aos "
"pacotes Python procurando :file:`__init__.py`.) Portanto, se o layout padrão"
" aumentar um subpacote::"
#: ../../distutils/examples.rst:188
msgid "then the corresponding setup script would be ::"
msgstr "então o script de instalação correspondente seria ::"
#: ../../distutils/examples.rst:200
msgid "Single extension module"
msgstr "Módulo de extensão única"
#: ../../distutils/examples.rst:202
msgid ""
"Extension modules are specified using the ``ext_modules`` option. "
"``package_dir`` has no effect on where extension source files are found; it "
"only affects the source for pure Python modules. The simplest case, a "
"single extension module in a single C source file, is::"
msgstr ""
"Os módulos de extensão são especificados usando a opção ``ext_modules``. "
"``package_dir`` não afeta onde os arquivos de origem das extensões são "
"encontrados; isso afeta apenas a fonte dos módulos Python puros. O caso mais"
" simples, um único módulo de extensão em um único arquivo de origem C, é::"
#: ../../distutils/examples.rst:211
msgid ""
"If the :mod:`foo` extension belongs in the root package, the setup script "
"for this could be ::"
msgstr ""
"Se a extensão :mod:`foo` pertencer ao pacote raiz, o script de instalação "
"para isso pode ser ::"
#: ../../distutils/examples.rst:221
msgid ""
"If the extension actually belongs in a package, say :mod:`foopkg`, then"
msgstr ""
"Se a extensão realmente pertence a um pacote, diga :mod:`foopkg`, então"
#: ../../distutils/examples.rst:223
msgid ""
"With exactly the same source tree layout, this extension can be put in the "
":mod:`foopkg` package simply by changing the name of the extension::"
msgstr ""
"Com exatamente o mesmo layout da árvore de fontes, esta extensão pode ser "
"colocada no pacote :mod:`foopkg` simplesmente alterando o nome da extensão::"