@@ -296,129 +296,116 @@ Los nombres de los puntos de extensión para los plugins nativos siguen una
296296convensión con varias partes:
297297``virtualenvwrapper.(pre|post)_<event>[_source] ``. *<event> * es la acción tomada
298298por 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 ``
299+ indica si llama a la extensión antes o después de un evento. El sufijo ``_source ``
300300es agregado para las extensiones que retornan código shell en vez de tomar una
301301acción directamente (ver :ref: `plugins-user-env `).
302302
303-
304- The extension point names for native plugins follow a naming
305- convention with several parts:
306- ``virtualenvwrapper.(pre|post)_<event>[_source] ``. The *<event> * is
307- the action taken by the user or virtualenvwrapper that triggers the
308- extension. ``(pre|post) `` indicates whether to call the extension
309- before or after the event. The suffix ``_source `` is added for
310- extensions that return shell code instead of taking action directly
311- (see :ref: `plugins-user-env `).
312-
313303.. _plugins-initialize :
314304
315305initialize
316306----------
317307
318- The ``virtualenvwrapper.initialize `` hooks are run each time
319- ``virtualenvwrapper.sh `` is loaded into the user's environment. The
320- initialize hook can be used to install templates for configuration
321- files or otherwise prepare the system for proper plugin operation .
308+ Los ganchos ``virtualenvwrapper.initialize `` son ejecutados cada vez que
309+ ``virtualenvwrapper.sh `` es cargado en el entorno del usuario. El gancho
310+ * initialize * puede ser usado para instalar plantillas para configurar archivos o
311+ preparar el sistema para una operación correcta del plugin.
322312
323313.. _plugins-pre_mkvirtualenv :
324314
325315pre_mkvirtualenv
326316----------------
327317
328- The ``virtualenvwrapper.pre_mkvirtualenv `` hooks are run after the
329- virtual environment is created, but before the new environment is
330- activated. The current working directory for when the hook is run is
331- ``$WORKON_HOME `` and the name of the new environment is passed as an
332- argument.
318+ Los ganchos ``virtualenvwrapper.pre_mkvirtualenv `` son ejecutados después de que
319+ el entorno es creado, pero antes de que el nuevo entorno sea activado. El
320+ directorio de trabajo actual para cuando el gancho es ejecutado es ``$WORKON_HOME ``
321+ y el nombre del nuevo entorno es pasado como un argumento.
333322
334323.. _plugins-post_mkvirtualenv :
335324
336325post_mkvirtualenv
337326-----------------
338327
339- The ``virtualenvwrapper.post_mkvirtualenv `` hooks are run after a new
340- virtual environment is created and activated. ``$VIRTUAL_ENV `` is set
341- to point to the new environment .
328+ Los ganchos ``virtualenvwrapper.post_mkvirtualenv `` son ejecutado después de que
329+ un nuevo entorno sea creado y activado. ``$VIRTUAL_ENV `` es configurado para
330+ apuntar al nuevo entorno .
342331
343332.. _plugins-pre_activate :
344333
345334pre_activate
346335------------
347336
348- The ``virtualenvwrapper.pre_activate `` hooks are run just before an
349- environment is enabled. The environment name is passed as the first
350- argument .
337+ Los ganchos ``virtualenvwrapper.pre_activate `` son ejecutados justo antes
338+ de que un entorno sea activado. El nombre del entorno es pasado como
339+ primer argumento .
351340
352341.. _plugins-post_activate :
353342
354343post_activate
355344-------------
356345
357- The `` virtualenvwrapper.post_activate `` hooks are run just after an
358- environment is enabled. `` $VIRTUAL_ENV `` is set to point to the
359- current environment .
346+
347+ Los ganchos `` virtualenvwrapper.post_activate `` son ejecutados justo después
348+ de que un entorno sea activado. `` $VIRTUAL_ENV `` apunta al entorno actual .
360349
361350.. _plugins-pre_deactivate :
362351
363352pre_deactivate
364353--------------
365354
366- The ``virtualenvwrapper.pre_deactivate `` hooks are run just before an
367- environment is disabled. ``$VIRTUAL_ENV `` is set to point to the
368- current environment.
355+ Los ganchos ``virtualenvwrapper.pre_deactivate `` son ejecutados justo antes de
356+ que un entorno sea desactivado. ``$VIRTUAL_ENV `` apunta al entorno actual.
369357
370358.. _plugins-post_deactivate :
371359
372360post_deactivate
373361---------------
374362
375- The ``virtualenvwrapper.post_deactivate `` hooks are run just after an
376- environment is disabled. The name of the environment just deactivated
377- is passed as the first argument .
363+ Los ganchos ``virtualenvwrapper.post_deactivate `` son ejecutados justo después
364+ de que un entorno sea desactivado. El nombre del entorno recién desactivado es
365+ pasado como primer argumento .
378366
379367.. _plugins-pre_rmvirtualenv :
380368
381369pre_rmvirtualenv
382370----------------
383371
384- The ``virtualenvwrapper.pre_rmvirtualenv `` hooks are run just before
385- an environment is deleted. The name of the environment being deleted
386- is passed as the first argument .
372+ Los ganchos ``virtualenvwrapper.pre_rmvirtualenv `` son ejecutados justo antes
373+ de que un entorno sea eliminado. El nombre del entorno eliminado es pasado
374+ como primer argumento .
387375
388376.. _plugins-post_rmvirtualenv :
389377
390378post_rmvirtualenv
391379-----------------
392380
393- The ``virtualenvwrapper.post_rmvirtualenv `` hooks are run just after
394- an environment is deleted. The name of the environment being deleted
395- is passed as the first argument .
381+ Los ganchos ``virtualenvwrapper.post_rmvirtualenv `` son ejecutados justo después
382+ de que un entorno haya sido eliminado. El nombre del entorno eliminado es pasado
383+ como primer argumento .
396384
397- Adding New Extension Points
398- ===========================
399385
400- Plugins that define new operations can also define new extension
401- points. No setup needs to be done to allow the hook loader to find
402- the extensions; documenting the names and adding calls to
403- ``virtualenvwrapper_run_hook `` is sufficient to cause them to be
404- invoked.
386+ Agregar nuevos puntos de extensión
387+ ==================================
405388
406- The hook loader assumes all extension point names start with
407- ``virtualenvwrapper. `` and new plugins will want to use their own
408- namespace qualifier to append to that. For example, the project _
409- extension defines new events around creating project directories (pre
410- and post). These are called
411- ``virtualenvwrapper.project.pre_mkproject `` and
412- ``virtualenvwrapper.project.post_mkproject ``. These are invoked
413- with::
389+ Los plugins que definen nuevas operaciones pueden también definir nuevos puntos
390+ de extensión. No es necesario hacer ninguna configuración para permitir que el
391+ cargador de ganchos encuentre las extensiones; documentar los nombres y agregar
392+ llamadas a ``virtualenvwrapper_run_hook `` es suficiente para causar que ellos se
393+ invoquen.
394+
395+ El cargador de ganchos asume que todos los nombres de puntos de extensión
396+ comienzan con ``virtualenvwrapper. `` y los nuevos plugins querrán usar su
397+ propio espacio de nombres para agregar. Por ejemplo, la extensión project _
398+ define nuevos eventos para crear directorios del proyecto (pre y post). Esas son
399+ llamadas a ``virtualenvwrapper.project.pre_mkproject `` y
400+ ``virtualenvwrapper.project.post_mkproject ``. Estas son invocadas con::
414401
415402 virtualenvwrapper_run_hook project.pre_mkproject $project_name
416403
417- and ::
404+ y ::
418405
419406 virtualenvwrapper_run_hook project.post_mkproject
420407
421- respectively .
408+ respectivamente .
422409
423410.. _Distribute : http://packages.python.org/distribute/
424411
0 commit comments