Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f94807d

Browse files
committed
Add starting translation for tutorial modules
1 parent cc88346 commit f94807d

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

tutorial/modules.po

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,24 @@
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
6-
#, fuzzy
76
msgid ""
87
msgstr ""
98
"Project-Id-Version: Python 3.7\n"
109
"Report-Msgid-Bugs-To: \n"
1110
"POT-Creation-Date: 2019-05-06 11:59-0400\n"
12-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
11+
"PO-Revision-Date: 2019-05-22 12:52+0200\n"
1512
"MIME-Version: 1.0\n"
1613
"Content-Type: text/plain; charset=UTF-8\n"
1714
"Content-Transfer-Encoding: 8bit\n"
15+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
16+
"Last-Translator: \n"
17+
"Language-Team: es\n"
18+
"Language: es\n"
19+
"X-Generator: Poedit 2.2.1\n"
1820

1921
#: ../Doc/tutorial/modules.rst:5
2022
msgid "Modules"
21-
msgstr ""
23+
msgstr "Módulos"
2224

2325
#: ../Doc/tutorial/modules.rst:7
2426
msgid ""
@@ -31,6 +33,14 @@ msgid ""
3133
"You may also want to use a handy function that you've written in several "
3234
"programs without copying its definition into each program."
3335
msgstr ""
36+
"Si sales del intérprete de Python y vuelves a entrar, las definiciones que "
37+
"habías hecho (funciones y variables) se pierden. Por lo tanto, si quieres "
38+
"escribir un programa más o menos largo, es mejor que utilices un editor de "
39+
"texto para preparar la entrada para el intérprete y ejecutarlo con ese "
40+
"archivo como entrada. Esto se conoce como crear un *script*. Si tu programa "
41+
"crece, quizás quieras separarlo en varios archivos para un mantenimiento más "
42+
"sencillo. Quizás también quieras usar una función útil que has escrito en "
43+
"distintos programas sin copiar su definición en cada programa."
3444

3545
#: ../Doc/tutorial/modules.rst:16
3646
msgid ""
@@ -40,6 +50,12 @@ msgid ""
4050
"modules or into the *main* module (the collection of variables that you have "
4151
"access to in a script executed at the top level and in calculator mode)."
4252
msgstr ""
53+
"Para soportar esto, Python tiene una manera de poner definiciones en un "
54+
"archivo y usarlos en un script o en una instancia del intérprete. Este tipo "
55+
"de ficheros se llama *módulo*; las definiciones de un módulo pueden ser "
56+
"*importadas* a otros módulos o al módulo *principal* (la colección de "
57+
"variables a las que tienes acceso en un script ejecutado en el nivel "
58+
"superior y en el modo calculadora)."
4359

4460
#: ../Doc/tutorial/modules.rst:22
4561
msgid ""
@@ -50,12 +66,20 @@ msgid ""
5066
"to create a file called :file:`fibo.py` in the current directory with the "
5167
"following contents::"
5268
msgstr ""
69+
"Un módulo es un fichero conteniendo definiciones y declaraciones de Python. "
70+
"El nombre de archivo es el nombre del módulo con el sufijo :file:`.py` "
71+
"agregado. Dentro de un módulo, el nombre del mismo módulo (como cadena) está "
72+
"disponible en el valor de la variable global ``__name__``. Por ejemplo, "
73+
"utiliza tu editor de texto favorito para crear un archivo llamado :file:"
74+
"`fibo.py` en el directorio actual, con el siguiente contenido:::"
5375

5476
#: ../Doc/tutorial/modules.rst:45
5577
msgid ""
5678
"Now enter the Python interpreter and import this module with the following "
5779
"command::"
5880
msgstr ""
81+
"Ahora entra en el intérprete de Python y importa este modulo con el "
82+
"siguiente comando::"
5983

6084
#: ../Doc/tutorial/modules.rst:50
6185
msgid ""

0 commit comments

Comments
 (0)