Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intro levels translation #217

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
14 changes: 7 additions & 7 deletions levels/intro/cli
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
title = The command line
title = La línea de comandos
cards =

[description]

These playing cards are designed to be easy to use and to remember! We'd suggest sticking to them if you don't have a lot of experience with Git!
¡Estas cartas están diseñadas para ser fáciles de usar y recordar! ¡Te sugeriríamos que te apegues a ellas si no tienes mucha experiencia con Git!

[cli]

But there's another way to interact with Git:
Pero hay otra forma de interactuar con Git:

Try typing `git init` into the black terminal below, and pressing the enter key!
¡Intenta escribir `git init` en la terminal negra de abajo y presiona la tecla Enter!

[setup]

rm -rf .git

[win]

# Initialize the time machine!
# ¡Inicializa la máquina del tiempo!
test -d .git

[congrats]

Cool! Instead of using the playing cards, you can also do everything via the command line!
¡Genial! ¡En lugar de usar las cartas, también puedes hacer todo a través de la línea de comandos!

The command line is pretty powerful! Often, you can use it to solve tasks faster compared to using a graphical interface.
¡La línea de comandos es bastante poderosa! A menudo, puedes usarla para resolver tareas más rápido en comparación con el uso de una interfaz gráfica.
25 changes: 12 additions & 13 deletions levels/intro/commit
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
title = Your first commit
title = Tu primer commit
cards = commit-auto

[description]

You can use your time machine to make snapshots of objects around you! Here, let's practice this!
¡Puedes usar tu máquina del tiempo para hacer instantáneas de objetos a tu alrededor! ¡Aquí, practiquemos esto!

(Your teacher pours some water into a glass.)
(La profe Andrea vierte un poco de agua en un vaso.)

[cli]

Again, instead of using the card, you can also type the commands which are printed on it into the black terminal below!
¡De nuevo, en lugar de usar la tarjeta, también puedes escribir los comandos que están impresos en ella en la terminal negra de abajo!

This is totally optional! But this will be a super useful skill in the real world - and it will give you a sparkling golden badge! :)
¡Esto es completamente opcional! Pero esta será una habilidad súper útil en el mundo real, ¡y te dará una insignia dorada brillante! :)

[setup]

echo "The glass is full of water." > glass
echo "El vaso esta lleno de agua." > vaso

[win]

# Make a snapshot of the glass (a "commit")
# Haz una instantánea del vaso (un "commit")
git rev-parse HEAD

# Change the contents of the glass!
! test "$(cat glass)" = "The glass is full of water."
# ¡Cambia el contenido del vaso!
! test "$(cat vaso)" = "El vaso esta lleno de agua."

# And make a second commit!
git rev-parse HEAD^ && ! test "$(git show main:glass)" = "The glass is full of water."
# ¡Y haz un segundo commit!
git rev-parse HEAD^ && ! test "$(git show main)" = "El vaso esta lleno de agua."

[congrats]
¡Bien hecho! Puedes intentar hacer algunos commits adicionales. Cuando te sientas cómodo, haz clic en "Siguiente nivel".

Nice! You can try making some additional commits. When you feel comfortable, click on "Next Level".
34 changes: 14 additions & 20 deletions levels/intro/copies
Original file line number Diff line number Diff line change
@@ -1,42 +1,36 @@
title = Making backups
title = Haciendo copias de seguridad
cards =

[description]

This time, you're making a lot of backup copies - you can look at them by clicking on them!
Esta vez, estás haciendo muchas copias de respaldo; ¡puedes verlas haciendo clic en ellas!

[congrats]
Bien, esto más o menos estaría funcionando.

Okay, this kind of works.

But you're a bit worried that you'll end up with hundreds of copies of this form, and it will be hard to keep track of all of them.
Pero estás un poco preocupado de que termines con cientos de copias de este formulario, y será difícil hacer un seguimiento de todas ellas.

And especially when working with other people, sending copies back and forth doesn't seem ideal.
Y especialmente al trabajar con otras personas, enviar copias de un lado a otro no parece ideal.

You can't wait to try these time machines!
¡No puedes esperar para probar estas máquinas del tiempo!

[setup]

rm -rf .git

echo "~ Why I want to learn Git ~
echo "~ Por qué quiero aprender Git ~

(I still need to write this.)" >> form.txt
(Todavía necesito escribir esto.)" >> form.txt

echo "~ Por qué quiero aprender Git ~

echo "~ Why I want to learn Git ~
Para poder deshacer errores" >> form2.txt

- So that I can undo mistakes" >> form2.txt
echo "~ Por qué quiero aprender Git ~


echo "~ Why I want to learn Git ~

- So that I can undo mistakes
- To track my projects over time" >> form2_final.txt
Para poder deshacer errores
Para seguir mis proyectos con el tiempo" >> form2_final.txt

cp form2_final.txt form2_really_final.txt

[win]

# Add another line to form2_really_final.txt!
# Añade otra linea a form2_really_final.txt!
test "$(cat form2_really_final.txt | wc -l )" -ge 5
12 changes: 6 additions & 6 deletions levels/intro/init
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
title = Enter the time machine
title = Entrar en la máquina del tiempo
cards = init

[description]

You've been accepted to time travel school! Yay! It's your first day! Your teacher explains:
¡Has sido aceptado en la escuela de viajes en el tiempo! ¡Yay! ¡Es tu primer día! Tu profesor explica:

"To do anything with a time machine, you first need to initialize it!"
"¡Para hacer cualquier cosa con una máquina del tiempo, primero necesitas inicializarla!"

Drag that blue card up to play it!
¡Arrastra esa tarjeta azul hacia arriba para jugarla!

[setup]

rm -rf .git

[win]
# Inicializa la máquina del tiempo!

# Initialize the time machine!
test -d .git

[congrats]

Nice! See that little owl squirrel that appeared? It will be your companion, and always show you where you are in time!
¡Bien hecho! ¿Ves a esa pequeña ardilla búho que apareció? ¡Será tu compañera y siempre te mostrará dónde estás en el tiempo!
35 changes: 18 additions & 17 deletions levels/intro/remote
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
title = Working together
title = Trabajando juntos
cards = pull commit-auto push

[description]

Let's add your name to our list of students!
¡Agreguemos tu nombre a nuestra lista de estudiantes!

I already have a second commit of it in my time machine - let's work together!
Ya tengo un segundo commit en mi máquina del tiempo; ¡trabajemos juntos!

[cli]

To go back to old commands, you can press arrow up and down. That way, you don't have to type in long commands twice.
Para volver a comandos anteriores, puedes presionar las flechas hacia arriba y hacia abajo. De esta manera, no tienes que escribir comandos largos dos veces.

[congrats]

Welcome to time travel school! :) I'll see you for your first class tomorrow!
¡Bienvenido a la escuela de viajes en el tiempo! :) ¡Te veré en tu primera clase mañana!

[setup]

echo "~ List of current students ~" > students
echo "~ Lista de estudiantes actuales ~" > students
git add .
git commit -m "Initial version"
git commit -m "Versión inicial"
git push -u teacher main

git update-ref -d refs/remotes/teacher/main
Expand All @@ -28,25 +28,26 @@ git update-ref -d refs/remotes/teacher/main

git reset --hard main

echo "
- Sam
- Alex" >> students
echo "

Sam
Alex" >> students

git add .
git commit -m "Added two students"
git commit -m "Añadidos dos estudiantes"

[win]
# Obtén el segundo commit de tu profesora usando git pull.

# Get the second commit from your teacher using `git pull`.
test "$(git log --oneline teacher/main | wc -l)" -ge 2
# Añade tu nombre a la lista de estudiantes

# Add your name to the list of students
test "$(cat students |wc -l)" -ge 5
# Haz commit de tu resultado.

# Commit your result.
test "$(git show main:students |wc -l)" -ge 5
test "$(git show main |wc -l)" -ge 5

[win teacher]
# ¡Y usa git push para enviarlo a tu profesora!

# And use `git push` to send it to your teacher!
test "$(git show main:students |wc -l)" -ge 5
test "$(git show main |wc -l)" -ge 5
26 changes: 12 additions & 14 deletions levels/intro/risky
Original file line number Diff line number Diff line change
@@ -1,42 +1,40 @@
title = Living dangerously
title = Viviendo peligrosamente
cards =

[description]

So you have decided to apply for time travel school, to learn how to use this time machine called "Git"!
¡Así que has decidido solicitar la escuela de viajes en el tiempo, para aprender a usar esta máquina del tiempo llamada "Git"!

How exciting!
¡Qué emocionante!

You're almost done with the paperwork! You just need to fill in one more reason why you want to learn Git.
¡Ya casi has terminado con el papeleo! Solo necesitas completar una razón más por la cual quieres aprender Git.

[congrats]

Suddenly, your cat jumps on the table, snatches away the form, and runs away! Oh no. All your hard work, gone!
De repente, tu gato salta sobre la mesa, arrebata el formulario y ¡sale corriendo! Oh no. ¡Todo tu trabajo duro, desaparecido!

You clearly need a better solution.
Claramente necesitas una mejor solución.

(Click "Next Level" as soon as you're ready!)
(¡Haz clic en "Siguiente nivel" tan pronto como estés listo!)

[setup]

rm -rf .git

echo "~ Why I want to learn Git ~
echo "~ Por qué quiero aprender Git ~

- So that I can undo mistakes
- To track my projects over time" >> form.txt
- Para poder deshacer errores
- Para seguir mis proyectos con el tiempo" >> form.txt

[actions]

test "$(cat form.txt | wc -l )" -ge 5 && echo "(Has been stolen by your cat.)


test "$(cat form.txt | wc -l )" -ge 5 && echo "(Ha sido robado por tu gato.)



" > form.txt

[win]

# Add another line to form.txt!
# ¡Añade otra línea a form.txt!
test "$(cat form.txt | wc -l )" -ge 5
26 changes: 13 additions & 13 deletions levels/intro/who-are-you
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
title = Welcome to time travel school!
title = ¡Bienvenido a la escuela de viajes en el tiempo!
cards = config-name commit-auto checkout

[description]

You're still pretty confused by everything that's going on. The next day, you decide to enroll in time travel school!
Sigues bastante confundido por todo lo que está sucediendo. ¡Al día siguiente, decides inscribirte en la escuela de viajes en el tiempo!

Your time travel teacher welcomes you: "Hello there! Wanna tell us your name?"
Tu profesor de viajes en el tiempo te da la bienvenida: "¡Hola! ¿Quieres decirnos tu nombre?"

[setup]

git config --global user.name "You"

echo "~ Why do you want to learn how to use time machines? ~
echo "~ ¿Por qué quieres aprender a usar máquinas del tiempo? ~

[ ] To make sure that my cat doesn't eat my homework.
[ ] So I don't have to keep copies of all my essays.
[ ] To collaborate with other time travel students.
[ ] Other, please specify:" > form
[ ] Para asegurarme de que mi gato no se coma mi tarea.
[ ] Para no tener que guardar copias de todos mis ensayos.
[ ] Para colaborar con otros estudiantes de viajes en el tiempo.
[ ] Otro, por favor especifica:" > form

[actions]

test "$(git config user.name)" != "You" && cat form | grep -v Signature && echo "
Signature: $(git config user.name)" >> form
Firma: $(git config user.name)" >> form

[win]

# Introduce yourself.
# Preséntate.
test "$(git config user.name)" != "You"

# Fill out the enrollment form, and commit it!
# ¡Completa el formulario de inscripción y haz commit!
git show main:form | grep '\[[xX]\]'

[congrats]

"We're so glad to have you!
"¡Estamos encantados de tenerte aquí!

Git can help you fix problems in the past! It allows you to collaborate with other students of time travel! It's really powerful, and it's really popular! I'll see you for your first lesson tomorrow!"
¡Git puede ayudarte a solucionar problemas en el pasado! ¡Te permite colaborar con otros estudiantes de viajes en el tiempo! ¡Es realmente poderoso y muy popular! ¡Te veré para tu primera lección mañana!"
Loading