Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Translate whatsnew/2.0#3308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
rtobar merged 3 commits into3.13fromwhatsnew_2.0_3.13
Nov 25, 2024
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Update snippets wrongly translated
  • Loading branch information
@cmaureir
cmaureir committedNov 23, 2024
commit22e6eb8a941382db4b2870f26d8d0fa29101cbb9
145 changes: 72 additions & 73 deletionswhatsnew/2.0.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -542,16 +542,16 @@ msgid ""
"output.write( unistr )\n"
"output.close()"
msgstr ""
"importar códecs\n"
"import codecs\n"
"\n"
"unistr = u'\\u0660\\u2000ab ...'\n"
"\n"
"(UTF8_encode, UTF8_decode,\n"
"UTF8_streamreader, UTF8_streamwriter) = codecs.lookup('UTF-8')\n"
"UTF8_streamreader, UTF8_streamwriter) = codecs.lookup('UTF-8')\n"
"\n"
"salida = UTF8_streamwriter( open( '/tmp/output', 'wb') )\n"
"salida.write( unistr )\n"
"salida.close()"
"output = UTF8_streamwriter( open( '/tmp/output', 'wb') )\n"
"output.write( unistr )\n"
"output.close()"

#: ../Doc/whatsnew/2.0.rst:243
msgid "The following code would then read UTF-8 input from the file::"
Expand All@@ -563,9 +563,9 @@ msgid ""
"print repr(input.read())\n"
"input.close()"
msgstr ""
"entrada = UTF8_streamreader(abrir( '/tmp/salida', 'rb') )\n"
"imprimir repr(entrada.leer())\n"
"entrada.cerrar()"
"input = UTF8_streamreader(open( '/tmp/output', 'rb') )\n"
"print repr(input.read())\n"
"input.close()"

#: ../Doc/whatsnew/2.0.rst:249
msgid ""
Expand DownExpand Up@@ -640,11 +640,11 @@ msgid ""
" string.find(s, substring) != -1,\n"
" L)"
msgstr ""
"#Dada la lista L,crea una lista de todas las cadenas\n"
"#que contienen la subcadena S.\n"
"#Given the list L,make a list of all strings\n"
"#containing the substring S.\n"
"sublist = filter( lambda s, substring=S:\n"
"string.find(s, substring) != -1,\n"
"L)"
"string.find(s, substring) != -1,\n"
"L)"

#: ../Doc/whatsnew/2.0.rst:286
msgid ""
Expand DownExpand Up@@ -672,10 +672,10 @@ msgid ""
" for exprN in sequenceN\n"
" if condition ]"
msgstr ""
"[expresión para expren secuencia1\n"
"paraexpr2en secuencia2 ...\n"
"paraexprNen secuenciaN\n"
"si condición ]"
"[expression for exprin sequence1\n"
" forexpr2in sequence2 ...\n"
" forexprNin sequenceN\n"
" if condition ]"

#: ../Doc/whatsnew/2.0.rst:299
msgid ""
Expand DownExpand Up@@ -714,14 +714,14 @@ msgid ""
" # the expression to the\n"
" # resulting list."
msgstr ""
"para expr1en secuencia1:\n"
"paraexpr2en secuencia2:\n"
"...\n"
"paraexprNen secuenciaN:\n"
"if (condición):\n"
"# Agrega el valor de\n"
"# la expresión a la\n"
"# lista resultante."
"for expr1in sequence1:\n"
" forexpr2in sequence2:\n"
"...\n"
" forexprNin sequenceN:\n"
"if (condition):\n"
" # Append the value of\n"
" # the expression to the\n"
" # resulting list."

#: ../Doc/whatsnew/2.0.rst:319
msgid ""
Expand All@@ -745,7 +745,7 @@ msgid ""
msgstr ""
"seq1 = 'abc'\n"
"seq2 = (1,2,3)\n"
">>> [ (x,y)para xen seq1para yen seq2]\n"
">>> [ (x,y)for xin seq1for yin seq2]\n"
"[('a', 1), ('a', 2), ('a', 3), ('b', 1), ('b', 2), ('b', 3), ('c', 1),\n"
"('c', 2), ('c', 3)]"

Expand All@@ -767,10 +767,10 @@ msgid ""
"# Correct\n"
"[ (x,y) for x in seq1 for y in seq2]"
msgstr ""
"#Error de sintaxis\n"
"[ x,ypara xen seq1para yen seq2]\n"
"#Correcto\n"
"[ (x,y)para xen seq1para yen seq2]"
"#Syntax error\n"
"[ x,yfor xin seq1for yin seq2]\n"
"#Correct\n"
"[ (x,y)for xin seq1for yin seq2]"

#: ../Doc/whatsnew/2.0.rst:339
msgid ""
Expand DownExpand Up@@ -833,15 +833,15 @@ msgid ""
"n += 3\n"
"print n.value"
msgstr ""
"clase Número:\n"
"def __init__(self,valor):\n"
"self.valor =valor\n"
"def __iadd__(self,incremento):\n"
"returnNúmero( self.valor +incremento)\n"
"class Number:\n"
"def __init__(self,value):\n"
"self.value =value\n"
"def __iadd__(self,increment):\n"
"returnNumber( self.value +increment)\n"
"\n"
"n =Número(5)\n"
"n =Number(5)\n"
"n += 3\n"
"print n.valor"
"print n.value"

#: ../Doc/whatsnew/2.0.rst:377
msgid ""
Expand DownExpand Up@@ -910,7 +910,7 @@ msgid ""
msgstr ""
">>> 'andrew'.capitalize()\n"
"'Andrew'\n"
">>> 'nombredelhost'.replace('os', 'linux')\n"
">>> 'hostname'.replace('os', 'linux')\n"
"'hlinuxtname'\n"
">>> 'moshe'.find('sh')\n"
"2"
Expand DownExpand Up@@ -1174,8 +1174,7 @@ msgstr ""

#: ../Doc/whatsnew/2.0.rst:526
msgid "print >> sys.stderr, \"Warning: action field not supplied\""
msgstr ""
"imprimir >> sys.stderr, \"Advertencia: campo de acción no suministrado\""
msgstr "print >> sys.stderr, \"Warning: action field not supplied\""

#: ../Doc/whatsnew/2.0.rst:528
msgid ""
Expand DownExpand Up@@ -1334,8 +1333,8 @@ msgid ""
"f()"
msgstr ""
"def f():\n"
"imprimir \"i=\",i\n"
"i = i + 1\n"
" print \"i=\",i\n"
"i = i + 1\n"
"f()"

#: ../Doc/whatsnew/2.0.rst:595
Expand DownExpand Up@@ -1420,10 +1419,10 @@ msgid ""
" dict[key] = []\n"
" return dict[key]"
msgstr ""
"si dict.has_key( key ):devuelve dict[key]\n"
"de lo contrario:\n"
"dict[key] = []\n"
"devuelve dict[key]"
"if dict.has_key( key ):return dict[key]\n"
"else:\n"
"dict[key] = []\n"
" return dict[key]"

#: ../Doc/whatsnew/2.0.rst:633
msgid ""
Expand DownExpand Up@@ -1889,9 +1888,9 @@ msgid ""
"setup (name = \"foo\", version = \"1.0\",\n"
" py_modules = [\"module1\", \"module2\"])"
msgstr ""
"desde distutils.core import setup\n"
"setup (nombre = \"foo\",versión = \"1.0\",\n"
"py_modules = [\"módulo1\", \"módulo2\"])"
"from distutils.core import setup\n"
"setup (name = \"foo\",version = \"1.0\",\n"
"py_modules = [\"module1\", \"module2\"])"

#: ../Doc/whatsnew/2.0.rst:841
msgid ""
Expand All@@ -1907,9 +1906,9 @@ msgid ""
"setup (name = \"foo\", version = \"1.0\",\n"
" packages = [\"package\", \"package.subpackage\"])"
msgstr ""
"desde distutils.core import setup\n"
"setup (nombre = \"foo\",versión = \"1.0\",\n"
"paquetes= [\"paquete\", \"paquete.subpaquete\"])"
"from distutils.core import setup\n"
"setup (name = \"foo\",version = \"1.0\",\n"
" packages= [\"package\", \"package.subpackage\"])"

#: ../Doc/whatsnew/2.0.rst:848
msgid ""
Expand All@@ -1934,18 +1933,18 @@ msgid ""
"setup (name = \"PyXML\", version = \"0.5.4\",\n"
" ext_modules =[ expat_extension ] )"
msgstr ""
"de distutils.core import setup,Extensión\n"
"from distutils.core import setup,Extension\n"
"\n"
"expat_extension = Extension('xml.parsers.pyexpat',\n"
"define_macros = [('XML_NS', None)],\n"
"include_dirs = [ 'extensions/expat/xmltok',\n"
"'extensions/expat/xmlparse' ],\n"
"fuentes = [ 'extensions/pyexpat.c',\n"
"'extensions/expat/xmltok/xmltok.c',\n"
"'extensions/expat/xmltok/xmlrole.c', ]\n"
")\n"
"setup (nombre = \"PyXML\",versión = \"0.5.4\",\n"
"ext_modules =[ expat_extension ] )"
"define_macros = [('XML_NS', None)],\n"
"include_dirs = [ 'extensions/expat/xmltok',\n"
"'extensions/expat/xmlparse' ],\n"
" sources = [ 'extensions/pyexpat.c',\n"
"'extensions/expat/xmltok/xmltok.c',\n"
"'extensions/expat/xmltok/xmlrole.c', ]\n"
")\n"
"setup (name = \"PyXML\",version = \"0.5.4\",\n"
"ext_modules =[ expat_extension ] )"

#: ../Doc/whatsnew/2.0.rst:864
msgid ""
Expand DownExpand Up@@ -2079,20 +2078,20 @@ msgstr ""
"from xml import sax\n"
"\n"
"class SimpleHandler(sax.ContentHandler):\n"
"def startElement(self, name, attrs):\n"
"print 'Inicio del elemento:', name, attrs.keys()\n"
"def startElement(self, name, attrs):\n"
"print 'Start of element:', name, attrs.keys()\n"
"\n"
"def endElement(self, name):\n"
"print 'Fin del elemento:', name\n"
"def endElement(self, name):\n"
"print 'End of element:', name\n"
"\n"
"#Crear un objeto analizador\n"
"#Create a parser object\n"
"parser = sax.make_parser()\n"
"\n"
"#Indicarle qué controlador utilizar\n"
"#Tell it what handler to use\n"
"handler = SimpleHandler()\n"
"parser.setContentHandler( handler )\n"
"\n"
"#¡Analice un archivo!\n"
"#Parse a file!\n"
"parser.parse( 'hamlet.xml' )"

#: ../Doc/whatsnew/2.0.rst:935
Expand DownExpand Up@@ -2161,8 +2160,8 @@ msgid ""
"from xml.dom import minidom\n"
"doc = minidom.parse('hamlet.xml')"
msgstr ""
"desde xml.domimportar minidom\n"
"doc​​= minidom.parse('hamlet.xml')"
"from xml.domimport minidom\n"
"doc = minidom.parse('hamlet.xml')"

#: ../Doc/whatsnew/2.0.rst:964
msgid ""
Expand DownExpand Up@@ -2191,9 +2190,9 @@ msgid ""
"print perslist[0].toxml()\n"
"print perslist[1].toxml()"
msgstr ""
"lista pers = doc.getElementsByTagName( 'PERSONA' )\n"
"imprimir lista persistente[0].toxml()\n"
"imprimir lista persistente[1].toxml()"
"perslist = doc.getElementsByTagName( 'PERSONA' )\n"
"print perslist[0].toxml()\n"
"print perslist[1].toxml()"

#: ../Doc/whatsnew/2.0.rst:977
msgid "For the *Hamlet* XML file, the above few lines output::"
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp