Skip to content

Commit c1a1337

Browse files
committed
continue the translation
1 parent 15fa779 commit c1a1337

File tree

1 file changed

+36
-23
lines changed

1 file changed

+36
-23
lines changed

docs/es/plugins.rst

Lines changed: 36 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,13 @@ es el nombre del plugin, pero esto no es requerido (los nombres no son usados).
213213
* `namespace packages <http://packages.python.org/distribute/setuptools.html#namespace-packages>`__
214214
* `Extensible Applications and Frameworks <http://packages.python.org/distribute/setuptools.html#extensible-applications-and-frameworks>`__
215215

216-
The Hook Loader
217-
---------------
216+
El cargador de ganchos
217+
----------------------
218+
219+
Las extenciones son ejecutadas mediante una aplicación de líneas de comando
220+
implementada en ``virtualenvwrapper.hook_loader``. Debido a que ``virtualenvwrapper.sh``
221+
222+
218223

219224
Extensions are run through a command line application implemented in
220225
``virtualenvwrapper.hook_loader``. Because ``virtualenvwrapper.sh``
@@ -237,37 +242,36 @@ application, use the ``-m`` option to the interpreter::
237242
-q, --quiet Show less information on the console
238243
-n NAMES, --name=NAMES
239244
Only run the hook from the named plugin
240-
241-
To run the extensions for the initialize hook::
245+
246+
Para ejecutar las extensiones para el gancho *initialize*::
242247

243248
$ python -m virtualenvwrapper.hook_loader -v initialize
244249

245-
To get the shell commands for the initialize hook::
250+
Para obtener los comandos de shell para el gancho *initialize*::
246251

247252
$ python -m virtualenvwrapper.hook_loader --source initialize
248253

249-
In practice, rather than invoking the hook loader directly it is more
250-
convenient to use the shell function, ``virtualenvwrapper_run_hook``
251-
to run the hooks in both modes.::
254+
En la práctica, en vez de invocar al cargador de ganchos directamente es
255+
conveniente usar la función de shell, ``virtualenvwrapper_run_hook`` para
256+
ejecutar los ganchos en ambos modos.::
252257

253258
$ virtualenvwrapper_run_hook initialize
254259

255-
All of the arguments given to shell function are passed directly to
256-
the hook loader.
260+
Todos los argumentos pasados a la función de shell son pasados directamente al
261+
cargador de ganchos.
257262

258-
Logging
259-
-------
263+
Registro (*Logging*)
264+
--------------------
260265

261-
The hook loader configures logging so that messages are written to
262-
``$WORKON_HOME/hook.log``. Messages also may be written to stderr,
263-
depending on the verbosity flag. The default is for messages at *info*
264-
or higher levels to be written to stderr, and *debug* or higher to go to
265-
the log file. Using logging in this way provides a convenient
266-
mechanism for users to control the verbosity of extensions.
266+
El cargador de ganchos configura el registro para que los mensajes sean escritos
267+
en ``$WORKON_HOME/hook.log``. Los mensajes quizás sean escritos en stderr,
268+
dependiendo de la flash verbose. Por default los mensajes con un nivel mayor o
269+
igual a *info* se escriben en stderr, y los de nivel *debug* o mayor van al
270+
archivo de registro. Usar el registro de esta forma provee un mecanismo
271+
conveniente para que los usuarios controlen la verbosidad de las extensiones.
267272

268-
To use logging from within your extension, simply instantiate a logger
269-
and call its ``info()``, ``debug()`` and other methods with the
270-
messages.
273+
Para usar el registro en tu extensión, simplemente instancia un registro y llama
274+
a sus métodos ``info()``, ``debug()`` y otros métodos de mensajería.
271275

272276
::
273277

@@ -285,8 +289,17 @@ messages.
285289

286290
.. _plugins-extension-points:
287291

288-
Extension Points
289-
================
292+
Puntos de extensión
293+
===================
294+
295+
Los nombres de los puntos de extensión para los plugins nativos siguen una
296+
convensión con varias partes:
297+
``virtualenvwrapper.(pre|post)_<event>[_source]``. *<event>* es la acción tomada
298+
por el usuario o virtualenvwrapper que provoca la extensión. ``(pre|post)``
299+
indica si llamar a la extensión antes o después de un evento. El sufijo ``_source``
300+
es agregado para las extensiones que retornan código shell en vez de tomar una
301+
acción directamente (ver :ref:`plugins-user-env`).
302+
290303

291304
The extension point names for native plugins follow a naming
292305
convention with several parts:

0 commit comments

Comments
 (0)