-
-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
dealing with TCP streams or the file system, it's necessary to handle octet | ||
streams. Node has several strategies for manipulating, creating, and | ||
consuming octet streams. | ||
JavaScript puro acomoda bien Unicode pero no es amable con datos binarios. Cuando estamos trabajando con streams TCP o el sistema de archivos, es necesario poder manipular streams octeto. Node tiene varias estrategias para manipular, crear y consumir streams octeto. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Javascript puro es amigable con Unicode ...
- ¿octet streams === streams en octetos? (no conozco una traducción muy precisa)
- ¿Deberían respetarse los saltos de línea originales?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- hahahah lo se tío, tengo que hacerle un repaso tranquilamente
- Yo tampoco conozco traducción precisa, creo que ese se me ha escapado al traducir. Tenía que haber sido streams de octetos? o lo que tu dices claro
wow, excelente trabajo @stringparser 👏 |
hahaha, ¡gracias! |
@stringparser sos un heroe 👍 |
|
||
1. The buffer's memory is copied, not shared. | ||
1. La memoria del buffer se copia, no compartida. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
" ... se copia ... " ---> " ... es copiada ..." o "... no compartida ..." ---> "... no se comparte ..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A mi criterio se entiende mejor.
La memoria del buffer es copiada, no compartida.
Pero tal vez en spanish podemos poner
La memoria del buffer se copia y no se comparte
o
La memoria del buffer es copiada y no es compartida
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ups, me faltaba esta :)
Dos +1 si no hay correciones extras y hago un merge con lo que hay en iojs-es/io.js |
|
||
NOTE: Node.js v0.8 simply retained a reference to the buffer in `array.buffer` | ||
instead of cloning it. | ||
NOTE: Node.js v0.8 simplemente mantenía una referencia a el buffer en `array.buffer` en lugar de clonarlo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ¿"a el" o "al"?
- sobra un espacio entre 'en' y 'array.buffer' (perdón que sea tan detallista 😉 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- al
- para nada, 😡 ese espacio sobraaa 😄
|
||
buf = new Buffer(1234); | ||
|
||
console.log(buf.length); | ||
buf.write("some string", 0, "ascii"); | ||
buf.write("string", 0, "ascii"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dejar "some string" o usar "un string" / "algún string"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dejar "some string"
Correcciones hechas :) |
|
||
Reads a signed 8 bit integer from the buffer at the specified offset. | ||
Lee un entero de 8 bits de un buffer en la posición especificada por el offset con el formato endiano especificado. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
¿con el formato endiano especificado?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch, ese párrafo se repite desde el primer método de unsigned buffer hasta el final. Se me habrá escapado.
|
||
Reads a signed 16 bit integer from the buffer at the specified offset with | ||
specified endian format. | ||
Lee un entero de 16 bits de un buffer en la posición especificada por el offset con el formato endiano especificado. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- "... de un buffer ..." ---> "... del buffer ..."
- "... en la posición especificada ..." ---> "... desde la posición especificada ..."
- ¿Se traduce _endian_? Ver Little y Big Endian
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ok
- ok
- lo dejamos como endian, además más tecnicismo no puede ser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Del punto 1 hay más con la misma frase cambiando los bits en los distintos métodos. Lo dejo también corregido como me indicas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Y del punto 3, igual. En todas las ocurrencias lo dejo como endian.
Ok, yo creo que ahora si que está. Le he dado una lectura rápida. Si necesita alguna lectura más y si no hago un merge y lo muevo a iojs-es/io.js/doc/api/es |
ping 🎱 |
creo que esta, me gusto mucho la traducción! |
gracias tio ;), esperemos a otro +1 y listo |
+1 (perdón pero estoy con poco tiempo libre) |
Haha, no te preocupes ;) |
Traducción API - Sección "Buffer"
Tengo que revisar bastantes cosas que no tengo claras de esta traducción, pero antes voy a comel 👯.
Ahora después lo dejo por aquí.
Edit: Olvidaba el diff para que la corrección sea más liviana, haha