From e550c695be5795013f429860b7d99dd03b7cfa2a Mon Sep 17 00:00:00 2001 From: Matias Garcia Isaia Date: Fri, 7 Nov 2014 01:55:05 -0300 Subject: [PATCH 01/11] Spanish 'about' navigation link translation See #17 --- es/Binary.html | 2 +- es/InstructionPointer.html | 2 +- es/NAND.html | 2 +- es/about.html | 2 +- es/adder.html | 2 +- es/code.html | 2 +- es/cpu.html | 2 +- es/memory.html | 2 +- es/moreGates.html | 2 +- es/wallOfNAND.html | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/es/Binary.html b/es/Binary.html index bf23988..7cac591 100644 --- a/es/Binary.html +++ b/es/Binary.html @@ -7,7 +7,7 @@

Let's dive right into the magical land of data.
diff --git a/es/InstructionPointer.html b/es/InstructionPointer.html index 06560e6..387dd58 100644 --- a/es/InstructionPointer.html +++ b/es/InstructionPointer.html @@ -7,7 +7,7 @@

But how does the CPU know where to get its instructions?
diff --git a/es/NAND.html b/es/NAND.html index c97dd23..4e42f60 100644 --- a/es/NAND.html +++ b/es/NAND.html @@ -7,7 +7,7 @@

Now for something completely different, yet related.
diff --git a/es/about.html b/es/about.html index 1488869..8e6e7ca 100644 --- a/es/about.html +++ b/es/about.html @@ -7,7 +7,7 @@

About the website

diff --git a/es/adder.html b/es/adder.html index a05a8eb..5c52e14 100644 --- a/es/adder.html +++ b/es/adder.html @@ -7,7 +7,7 @@

But what can we do with the numbers we stored?
diff --git a/es/code.html b/es/code.html index 4d0d233..bd0c6df 100644 --- a/es/code.html +++ b/es/code.html @@ -7,7 +7,7 @@

diff --git a/es/cpu.html b/es/cpu.html index 032b1a7..b7ba19c 100644 --- a/es/cpu.html +++ b/es/cpu.html @@ -7,7 +7,7 @@

Here is a (relatively) simple CPU for you to play with;
diff --git a/es/memory.html b/es/memory.html index d574a27..145e725 100644 --- a/es/memory.html +++ b/es/memory.html @@ -7,7 +7,7 @@

Want to see how computers store data?
diff --git a/es/moreGates.html b/es/moreGates.html index e2a6a19..8e7dbcf 100644 --- a/es/moreGates.html +++ b/es/moreGates.html @@ -7,7 +7,7 @@

Before we can continue, I need to show you some more logic gates.
diff --git a/es/wallOfNAND.html b/es/wallOfNAND.html index ef609f3..b1169d3 100644 --- a/es/wallOfNAND.html +++ b/es/wallOfNAND.html @@ -7,7 +7,7 @@

Wall of NAND

From 92744772c63b8e7a5cb2e322d0687422ba13ad64 Mon Sep 17 00:00:00 2001 From: Matias Garcia Isaia Date: Fri, 7 Nov 2014 01:55:59 -0300 Subject: [PATCH 02/11] Spanish 'about' page translation See #17 --- es/about.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/es/about.html b/es/about.html index 8e6e7ca..07e4a43 100644 --- a/es/about.html +++ b/es/about.html @@ -10,24 +10,24 @@
  • acerca de
  • -

    About the website

    -Simple CPU was inspired by the success of the reddit comment I made -here.
    +

    Acerca del sitio

    +Simple CPU fue inspirado por el éxito +del comentario que hice en reddit.

    -It was also inspired by my own frustrations trying to learn the basics of
    -computer science. I wanted to give people a quick way to understand the
    -basics, so that they could know what to look for. "I don't know what I
    -dont know" is a common ailment for beginning programmers, this site is an
    -attempt to address that.
    +También estuvo inspirado en mis propias frustraciones al tratar de aprender
    +las bases de las ciencias de la computación. Quería darle a la gente
    +una forma rápida de entender las bases, para que pudieran saber qué buscar.
    +"No se qué es lo que no sé" es un mal frecuente para los programadores novatos,
    +y este sitio es un intento de atacarlo.

    -

    Source code

    -SimpleCPU is open source: get it on github.
    -

    Contact Me

    -I can be contacted at:   r00nk@simpleCPU.com -

    Donate

    -Servers expensive, beer money, etc.
    +

    Código fuente

    +SimpleCPU es open source: obtenelo en github.
    +

    Contactáme

    +Podés contactarme en:    r00nk@simpleCPU.com +

    Donaciones

    +Gastos de servidores, dinero para cervezas, etc.
    -(Not that I would ever drink underage or anything. Thats terribly irresponsible.)
    +(No es que yo fuera a tomar siendo menor de edad ni nada por el estilo. Eso sería muy irresponsable.)
    From 8eeae65d54517103485ea5c4b24dce5b61142786 Mon Sep 17 00:00:00 2001 From: Matias Garcia Isaia Date: Fri, 7 Nov 2014 02:01:16 -0300 Subject: [PATCH 03/11] Spanish 'binary' page translation See #17 --- es/Binary.html | 46 ++++++++++++++++++++++++------------------- es/binaryInc.js | 52 ------------------------------------------------- 2 files changed, 26 insertions(+), 72 deletions(-) delete mode 100644 es/binaryInc.js diff --git a/es/Binary.html b/es/Binary.html index 7cac591..f23839c 100644 --- a/es/Binary.html +++ b/es/Binary.html @@ -10,35 +10,41 @@
  • acerca de

  • -Let's dive right into the magical land of data.
    +Metámonos en el mágico mundo de los datos.

    -What's the symbol for five? 5
    -What's the symbol for ten? 10
    +¿Cuál es el símbolo del cinco? 5
    +¿Cuál es el símbolo del diez? 10

    -But wait, isn't that the symbol for one and zero?
    +Pero, esperá... ¿No es ese el símbolo del uno y el del +cero?

    -Right, so in our numbering system, when we get to the number ten, we write the symbol -for one and zero. There is no symbol for ten, we simply recycle the ones we already have. -Because of this we call our numbering system "base-ten", or "decimal".
    +Claro... Entonces, en nuestro sistema de numeración, cuando llegamos al +número diez, escribimos el símbolo del uno y el del cero. No hay +un símbolo para el diez, simplemente reciclamos los que ya +teníamos. Por esto es que llamamos a nuestro sistema de numeración +"de base diez" o "decimal".

    -"Ones and zeros", -"true and false", -and "on or off" -are all terms you have probably heard before. What these are all referring to is a -different kind of numbering system. For our decimal system, we write a '10' when we -get to ten, but for binary, we write a '10' when we get to two. There is no symbol for two -in binary, exactly how there is no symbol for ten in decimal. -"On" or "off" -simply refers to -'1' or '0' -in binary.
    +"Unos y ceros", +"verdadero y falso", +and "prendido o apagado" +son todos términos que probablemente hayas escuchado antes. Todos ellos +se están refiriendo a distintos sistemas de numeración. +En nuestro sistema decimal escribimos '10' cuando llegamos hasta diez, pero, +en binario, escribimos '10' cuando llegamos al dos. No hay un símbolo +para el dos en binario, del mismo modo que no hay un símbolo para el +diez en decimal. +"prendido" o "apagado" +simplemente se refiere a +'1' o '0' +en binario.

    -Just to be sure you understand binary, try clicking the binary counter here:
    +Sólo para estar seguros de que entendés binario, probá +clickear este contador binario:

    -
    +

    1/8 diff --git a/es/binaryInc.js b/es/binaryInc.js deleted file mode 100644 index 72968b4..0000000 --- a/es/binaryInc.js +++ /dev/null @@ -1,52 +0,0 @@ -var c = document.getElementById("binaryInc"); -c.onselectstart = function(){return false;} -var ctx = c.getContext("2d"); -ctx.textAlign="right"; -var n = 0; -c.addEventListener('click',function(e){ - e.preventDefault(); - (n>254)?n=0:n+=1; - update(); -},false); -function update(){ - ctx.clearRect(0,0,1000,800); - ctx.font = "48px Arial"; - ctx.fillStyle = "#000000"; - ctx.fillText(""+n,245,50); - numDraw(n); - ctx.fillStyle = "#CCCCCC"; - ctx.font = "16px Arial"; - sizesDraw(); -} -function sizesDraw(){ - ctx.fillRect(222,110,20,2); - ctx.fillText("bit",219,117); - ctx.fillRect(145,130,98,2); - ctx.fillText("nibble",141,137); - ctx.fillRect(31,150,212,2); - ctx.fillText("byte",30,157); -} -function numDraw(n){ - var space = 26; - (chardraw(n,128,245-(7*space+8),95))?n-=128:n=n; - (chardraw(n,64,245-(6*space+8),95))?n-=64:n=n; - (chardraw(n,32,245-(5*space+8),95))?n-=32:n=n; - (chardraw(n,16,245-(4*space+8),95))?n-=16:n=n; - (chardraw(n,8,245-(3*space),95))?n-=8:n=n; - (chardraw(n,4,245-(2*space),95))?n-=4:n=n; - (chardraw(n,2,245-(1*space),95))?n-=2:n=n; - chardraw(n,1,245,95) - //messy, but we use it to show colors anyways, mine as well -} -function chardraw(n,a,x,y){ - if((n-a)>=0){ - ctx.fillStyle = "#55EE55"; - ctx.fillText("1",x,y); - return true; - }else{ - ctx.fillStyle = "#FF5555"; - ctx.fillText("0",x,y); - return false; - } -} -update(); From 593b48d16517fed64a6b7ed827414f476fd50cda Mon Sep 17 00:00:00 2001 From: Matias Garcia Isaia Date: Fri, 7 Nov 2014 02:18:39 -0300 Subject: [PATCH 04/11] Spanish 'nand' page translation See #17 --- es/NAND.html | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/es/NAND.html b/es/NAND.html index 4e42f60..cec0450 100644 --- a/es/NAND.html +++ b/es/NAND.html @@ -10,25 +10,28 @@
  • acerca de

  • -Now for something completely different, yet related.
    +Ahora vamos con otra cosa totalmente diferente, pero relacionada.

    -There's something in computer theory called a "logic gate". It's a device
    -that has two inputs and one output.The only input it accepts is "on" or
    -"off", and the output is the same, "on" or "off".You might see the relation
    -to binary. +Existe algo en la teoría de la computación llamado "compuerta +lógica". Es
    un dispositivo que tiene dos entradas y una salida. Las +únicas entradas que
    acepta son "prendido" o "apagado", y las salidas +son, también, "prendido" o "apagado". Ya podés ver la +relación con el binario.

    -A logic gates output is based on its input. One example of a logic gate is
    -the NAND gate; try clicking the switches to the left:
    +La salida de una compuerta lógica se basa en sus entradas. Un ejemplo +de
    compuerta lógica es la compuerta NAND. Probá clickeando +los interruptores
    a la izquierda:


    -When both of the NAND gates inputs are on, the output is off. Otherwise, the
    -output is on.
    +Cuando ambas entradas de una compuerta NAND están prendidos, la +salida
    se apaga. Si no, la salida se prende.

    -There are several more variations of the logic gate, but the only one we
    -need to worry about for now is the NAND gate.If you would like to see real
    -life examples of the NAND gate, go here.
    +Hay muchas variaciones de compuertas lógicas, pero la única de la +que
    tenemos que preocuparnos por ahora es la compuerta NAND. Si +querés ver
    ejemplos de compuertas NAND de la vida real, entrá +acá.

    - - + + + - + + - + From e82dfcda6f9f3dfd28654c5577d2dd560a773768 Mon Sep 17 00:00:00 2001 From: Matias Garcia Isaia Date: Fri, 7 Nov 2014 19:03:18 -0300 Subject: [PATCH 09/11] Spanish 'code' page translation See #17 --- es/code.html | 59 ++++++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 27 deletions(-) diff --git a/es/code.html b/es/code.html index bd0c6df..5ccbfe7 100644 --- a/es/code.html +++ b/es/code.html @@ -17,68 +17,73 @@ } - -Cool, now we have a basic calculator. How can we turn this up to eleven
    -and make a computer?
    +Genial, ya tenemos una calculadora básica. ¿Cómo podemos +evolucionar
    esto para conseguir una computadora?

    -Code.
    +Código.

    -Now that you know what data is, code is easy to explain. It's just data.
    -The reason why it's different than other data, however, is because the CPU
    -interprets it as instructions.
    +Ahora que sabés cómo están hechos los datos, explicar el +código es fácil. Simplemente es un conjunto de datos. La +razón por la que difiere del resto
    de los datos es que la CPU lo +interpreta como instrucciones.

    -Let's say we wanted the computer to do math, we could use a system like;
    +Digamos que queríamos que la computadora haga cuentas, entonces
    +podríamos usar un sistema como:

    - + - + - + - +
    instructioninstrucción codecódigo
    "add a number to another number""sumar un número con otro"    00000001
    "subtract a number from another number""restar un número a otro"    00000010

    -With this, we can set what logic gates are being used based on data.
    +Con esto, podemos establecer qué compuertas lógicas se usan +basándose
    en los datos.

    -Now, real quick, memory is organized in a computer by something called
    -memory addresses, which basically allow the CPU to ask for memory at a
    -certain location. Generally speaking the addresses are sized by "bytes"
    -which is just another word for "eight bits". So if we wanted to access
    -memory location five or whatever we could store that as '00000101'.
    +Ahora, muy rápidamente, la memoria se organiza en la computadora +con
    algo llamado "direcciones de memoria", que es básicamente una +forma de
    permitirle a la CPU que pida el valor de la memoria en una +ubicación
    específica. En general, las direcciones se asignan +a cada "byte", que es
    simplemente otra forma de decir "ocho bits". +Así que si quisiéramos acceder
    a la dirección de +memoria cinco, podríamos almacenarlo como '00000101'.

    -Lets go back and add some more to our table:
    +Volvamos a nuestra tabla y agregemos algo más:

    - +
    "move this data into some location""mover un dato a alguna ubicación"    00000011

    -Cool, now we can say something like:
    +Genial. Ahora podemos decir algo como:

    -  "add the number at location #5 in memory to the other number at
    -  location #7 in memory."
    +  "sumar el número en la posición de memoria #5 con el +número de la
      posición de memoria #7"

    -By breaking it down into:
    +Partiéndolo en:

    -  (add) (memory address #5) (memory address #7)
    +  (sumar) (posición de memoria #5) (posición de memoria +#7)

    -Which is really just:
    +Que en realidad no es más que:

      00000001 00000101 00000111

    -Pretty sweet right?
    +Hermoso, ¿no?

    From 641d00c9af1f35d779060f6a0b74b6df7f1d0811 Mon Sep 17 00:00:00 2001 From: Matias Garcia Isaia Date: Fri, 7 Nov 2014 19:18:23 -0300 Subject: [PATCH 10/11] Spanish 'instruction pointer' page translation See #17 --- es/InstructionPointer.html | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/es/InstructionPointer.html b/es/InstructionPointer.html index 387dd58..7ccce83 100644 --- a/es/InstructionPointer.html +++ b/es/InstructionPointer.html @@ -10,20 +10,27 @@
  • acerca de

  • -But how does the CPU know where to get its instructions?
    +Pero... ¿Cómo sabe la CPU de dónde sacar las +instrucciones?

    -On the CPU, there is a tiny amount of memory. It does various things, such as
    -hold something called the "instruction pointer". The instruction pointer
    -holds the location of the next instruction, and increments itself after
    -every instruction. So basically, the CPU reads the instruction pointer,
    -fetches the next instruction, does it, increments the instruction pointer
    -and then goes back to step one.
    +En la CPU hay una porción de memoria muy pequeña que sirve para +varias
    cosas, como, por ejemplo, guardar algo llamado el "puntero de +instrucción"
    ("instruction pointer", IP). El IP guarda la +ubicación de la próxima instrucción a
    ejecutar, y se +incrementa después de cada instrucción. Entonces,
    +básicamente, la CPU lee el IP, obtiene la próxima +instrucción, la ejecuta,
    incrementa el IP* y vuelve al primer paso.
    -The value of the instruction pointer itself can be set to some arbitrary
    -location in memory. You ever wonder what an infinite loop is on a computer?
    It's what happens when an instruction pointer is set to instructions that
    -keep telling the instruction pointer to set itself to that same set of
    -instructions.

    +Al IP se le puede poner cualquier valor arbitrario, que se interpretará +como
    una posición en memoria. ¿Alguna vez te preguntaste +qué es un bucle infinito
    en una computadora? Es lo que ocurre cuando +se pone un valor del IP que
    hace que ejecute un conjunto de instrucciones +que vuelven a poner al IP a
    referenciar a esas instrucciones.
    +
    +
    +*Nota: en este caso, IP se refiere al Instruction Pointer, y no a las
    +direcciones IP ni al Internet Protocol.
    <left From 4dc4a10f9e7335a587ab829d25f736de60afdc55 Mon Sep 17 00:00:00 2001 From: Matias Garcia Isaia Date: Fri, 7 Nov 2014 19:31:01 -0300 Subject: [PATCH 11/11] Spanish 'cpu' page translation Fixes #17 I decided not to translate the cpu.js file so it's not _that_ difficult to maintain. There are a few words which could have been translated ('address', 'value'), but I think it's not worth it. --- es/cpu.html | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/es/cpu.html b/es/cpu.html index b7ba19c..f2ac8ea 100644 --- a/es/cpu.html +++ b/es/cpu.html @@ -10,46 +10,46 @@
  • acerca de

  • -Here is a (relatively) simple CPU for you to play with;
    +Esta es una CPU relativamente simple con la que podés jugar:

    -To modify memory, simply click on the bits while the cpu is off. You can
    -scroll through memory as well. To allow the cpu to start executing
    -instructions, turn the switch on.
    +Para modificar la memoria, clickeá los bits mientras la CPU está +apagada.
    Podés scrollear por toda la memoria. Para que la CPU +empiece a ejecutar
    las instrucciones, prendé el interruptor.

    -This cpu has three different instructions:
    +Esta CPU tiene tres instrucciones diferentes:
    - + - + - + - + - +
    InstructionInstrucción CodeCódigo
    add the value at the address held at (Instruction Pointer + 1)
    - to the value at the address held at (Instruction Pointer + 2)
    suma el valor de la posición (IP + 1) con
    el valor de la + posición (IP + 2)
       00000001
    subtract the value at the address held at (Instruction Pointer + 2)
    - from the value at the address held at (Instruction Pointer + 1)
    resta el valor de la posición (IP + 2) al
    valor de la + posición (IP + 1)
       00000010
    move the value at the address held at (Instruction Pointer + 1)
    - to the value at the address held at (Instruction Pointer + 2)
    mueve el valor de la posición (IP + 1) a la
    posición + refereida por la posición (IP + 2)
       00000011

    -All of the instructions have a size of 3 bytes (operands included).This
    -means that we increment the instruction pointer by 3 after each instruction
    -is executed.
    +Todas las instrucciones tienen un tamaño de 3 bytes (incluyendo los
    +operandos). Esto significa que incrementamos el IP en 3 cada vez que
    +ejecutamos una instrucción.

    -The instruction pointer can be accessed by addressing memory location 00000000. +Se puede acceder al IP en la posición 00000000.