Skip to content

Commit cd15ef8

Browse files
committed
starting with "Defining an Extension"
1 parent 97a104f commit cd15ef8

1 file changed

Lines changed: 14 additions & 15 deletions

File tree

‎docs/source/es/plugins.rst‎

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,30 @@ ejecute: los usuarios finales pueden usar scrips the shell o otros programas
3030
para la customización personal (ver :ref:`scripts`). Las extensiones también
3131
pueden ser implementadas en Python usando *entry points* con Distribute_ ,
3232

33-
Defining an Extension
33+
Definir una extensión
3434
=====================
3535

3636
.. note::
3737

38-
Virtualenvwrapper is delivered with a plugin for creating and
39-
running the user customization scripts
40-
(:ref:`extensions-user_scripts`). The examples below are taken from
41-
the implementation of that plugin.
38+
Virtualenvwrapper es distribuido con un plugin para la creación y ejecución de
39+
los scripts de customización de los usuarios (:ref:`extensions-user_scripts`).
40+
Los ejemplos siguientes han sido tomados de la implementación de ese plugin.
4241

43-
Code Organization
44-
-----------------
42+
Organización del código
43+
-----------------------
4544

46-
The Python package for ``virtualenvwrapper`` is a *namespace package*.
47-
That means multiple libraries can install code into the package, even
48-
if they are not distributed together or installed into the same
49-
directory. Extensions can (optionally) use the ``virtualenvwrapper``
50-
namespace by setting up their source tree like:
45+
El paquete Python para ``virtualenvwrapper`` es un *namespace package*.
46+
Eso signific que multiples librerías pueden instalar código dentro del paquete,
47+
incluso si ellas no son ditribuidas juntas o instaladas dentro del mismo
48+
directorio. Las extensiones pueden (opcionalmente) usar el namespace de
49+
``virtualenvwrapper`` configurando su estructura de directorios así:
5150

5251
* virtualenvwrapper/
5352

5453
* __init__.py
5554
* user_scripts.py
5655

57-
And placing the following code in ``__init__.py``::
56+
Y agregando el siguiente código dentro de ``__init__.py``::
5857

5958
"""virtualenvwrapper module
6059
"""
@@ -63,8 +62,8 @@ And placing the following code in ``__init__.py``::
6362

6463
.. note::
6564

66-
Extensions can be loaded from any package, so using the
67-
``virtualenvwrapper`` namespace is not required.
65+
Las extensiones pueden ser cargadas desde cualquier paquete, así que usar el
66+
espacio de nombres de ``virtualenvwrapper`` no es requerido.
6867

6968
Extension API
7069
-------------

0 commit comments

Comments
 (0)