Skip to content

Commit

Permalink
feat: add catalan and spanish to rapid router (#1650)
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin authored Jun 14, 2024
1 parent 49c7a1f commit aacf29c
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 4 deletions.
52 changes: 51 additions & 1 deletion game/static/game/js/blockly/msg/js/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,4 +433,54 @@ Blockly.Msg["VARIABLES_HUE"] = "330";
Blockly.Msg["TEXTS_HUE"] = "160";
Blockly.Msg["PROCEDURES_HUE"] = "290";
Blockly.Msg["COLOUR_HUE"] = "20";
Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";
Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";

Blockly.Msg["START_TITLE"] = "Inici";
Blockly.Msg["START_TOOLTIP"] = "L’inici del programa"
Blockly.Msg["MOVE_FORWARDS_TITLE"] = "mou endavant";
Blockly.Msg["MOVE_FORWARDS_TOOLTIP"] = "Mou la furgoneta endavant";
Blockly.Msg["TURN_LEFT_TITLE"] = "gira a l’esquerra";
Blockly.Msg["TURN_LEFT_TOOLTIP"] = "Gira la furgoneta cap a l’esquerra";
Blockly.Msg["TURN_RIGHT_TITLE"] = "gira a la dreta";
Blockly.Msg["TURN_RIGHT_TOOLTIP"] = "Gira la furgoneta cap a la dreta";
Blockly.Msg["TURN_AROUND_TITLE"] = "canvia de sentit";
Blockly.Msg["TURN_AROUND_TOOLTIP"] = "Canvia de sentit la furgoneta";

Blockly.Msg["WAIT_TITLE"] = "espera";
Blockly.Msg["WAIT_TOOLTIP"] = "Deixa la furgoneta parada";
Blockly.Msg["DELIVER_TITLE"] = "entrega";
Blockly.Msg["DELIVER_TOOLTIP"] = "Entrega les mercaderies de la furgoneta";
Blockly.Msg["SOUND_HORN_TITLE"] = "fes sonar el clàxon";
Blockly.Msg["SOUND_HORN_TOOLTIP"] = "Fes sonar el clàxon per espantar les vaques";

Blockly.Msg["ROAD_EXISTS_FORWARD_TITLE"] = "hi ha una carretera endavant";
Blockly.Msg["ROAD_EXISTS_LEFT_TITLE"] = "hi ha una carretera a l’esquerra";
Blockly.Msg["ROAD_EXISTS_RIGHT_TITLE"] = "hi ha una carretera a la dreta";
Blockly.Msg["TRAFFIC_LIGHT_RED_TITLE"] = "semàfor vermell";
Blockly.Msg["TRAFFIC_LIGHT_GREEN_TITLE"] = "semàfor verd";
Blockly.Msg["DEAD_END_TITLE"] = "és carrer sense sortida";
Blockly.Msg["AT_DESTINATION_TITLE"] = "a destí";
Blockly.Msg["COW_CROSSING_TITLE"] = "vaques";

Blockly.Msg["CALL_PROC_TITLE"] = "Crida";
Blockly.Msg["CALL_PROC_TOOLTIP"] = "Crida un procediment";
Blockly.Msg["DECLARE_PROC_TITLE"] = "Defineix";
Blockly.Msg["DECLARE_PROC_SUBTITLE"] = "Fes";
Blockly.Msg["DECLARE_PROC_TOOLTIP"] = "Declara el procediment";
Blockly.Msg["CONTROLS_REPEAT_WHILE_TITLE"] = "repeteix mentre";
Blockly.Msg["CONTROLS_REPEAT_WHILE_SUBTITLE"] = "fes";
Blockly.Msg["CONTROLS_REPEAT_WHILE_TOOLTIP"] = "Mentre un valor és cert, executa unes instruccions";
Blockly.Msg["CONTROLS_REPEAT_UNTIL_TITLE"] = "repeteix fins que";
Blockly.Msg["CONTROLS_REPEAT_UNTIL_SUBTITLE"] = "fes";
Blockly.Msg["CONTROLS_REPEAT_UNTIL_TOOLTIP"] = "Fins que un valor sigui cert, executa unes instruccions";

Blockly.Msg["VARIABLES_GET_TOOLTIP"] = "Una variable";
Blockly.Msg["VARIABLES_SET_TITLE"] = "estableix";
Blockly.Msg["VARIABLES_SET_SUBTITLE"] = "a";
Blockly.Msg["VARIABLES_SET_TOOLTIP"] = "Estableix el valor d’una variable";
Blockly.Msg["VARIABLES_NUMERIC_SET_TOOLTIP"] = "Estableix un valor numèric per a una variable";
Blockly.Msg["VARIABLES_INCREMENT_TITLE"] = "incrementa";
Blockly.Msg["VARIABLES_INCREMENT_SUBTITLE"] = "en";
Blockly.Msg["VARIABLES_INCREMENT_TOOLTIP"] = "Incrementa el valor d’una variable";
Blockly.Msg["NUMBER_TITLE"] = "Nombre";
Blockly.Msg["NUMBER_TOOLTIP"] = "Un nombre";
52 changes: 51 additions & 1 deletion game/static/game/js/blockly/msg/js/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,4 +433,54 @@ Blockly.Msg["VARIABLES_HUE"] = "330";
Blockly.Msg["TEXTS_HUE"] = "160";
Blockly.Msg["PROCEDURES_HUE"] = "290";
Blockly.Msg["COLOUR_HUE"] = "20";
Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";
Blockly.Msg["VARIABLES_DYNAMIC_HUE"] = "310";

Blockly.Msg["START_TITLE"] = "Comenzar";
Blockly.Msg["START_TOOLTIP"] = "El comienzo del programa"
Blockly.Msg["MOVE_FORWARDS_TITLE"] = "avanzar";
Blockly.Msg["MOVE_FORWARDS_TOOLTIP"] = "Mover la furgoneta hacia adelante";
Blockly.Msg["TURN_LEFT_TITLE"] = "girar a la izquierda";
Blockly.Msg["TURN_LEFT_TOOLTIP"] = "Girar la furgoneta a la izquierda";
Blockly.Msg["TURN_RIGHT_TITLE"] = "girar a la derecha";
Blockly.Msg["TURN_RIGHT_TOOLTIP"] = "Girar la furgoneta a la derecha";
Blockly.Msg["TURN_AROUND_TITLE"] = "dar la vuelta";
Blockly.Msg["TURN_AROUND_TOOLTIP"] = "Dar media vuelta con la furgoneta";

Blockly.Msg["WAIT_TITLE"] = "esperar";
Blockly.Msg["WAIT_TOOLTIP"] = "Mantener la furgoneta estacionaria";
Blockly.Msg["DELIVER_TITLE"] = "entregar";
Blockly.Msg["DELIVER_TOOLTIP"] = "Entregar la mercancía de la furgoneta";
Blockly.Msg["SOUND_HORN_TITLE"] = "tocar el claxon";
Blockly.Msg["SOUND_HORN_TOOLTIP"] = "Tocar el claxon para asustar a las vacas";

Blockly.Msg["ROAD_EXISTS_FORWARD_TITLE"] = "hay una carretera hacia delante";
Blockly.Msg["ROAD_EXISTS_LEFT_TITLE"] = "hay una carretera hacia la izquierda";
Blockly.Msg["ROAD_EXISTS_RIGHT_TITLE"] = "hay una carretera hacia la derecha";
Blockly.Msg["TRAFFIC_LIGHT_RED_TITLE"] = "semáforo en rojo";
Blockly.Msg["TRAFFIC_LIGHT_GREEN_TITLE"] = "semáforo en verde";
Blockly.Msg["DEAD_END_TITLE"] = "es un callejón sin salida";
Blockly.Msg["AT_DESTINATION_TITLE"] = "en destino";
Blockly.Msg["COW_CROSSING_TITLE"] = "vacas";

Blockly.Msg["CALL_PROC_TITLE"] = "Llamar";
Blockly.Msg["CALL_PROC_TOOLTIP"] = "Llamar a una función";
Blockly.Msg["DECLARE_PROC_TITLE"] = "Definir";
Blockly.Msg["DECLARE_PROC_SUBTITLE"] = "Hacer";
Blockly.Msg["DECLARE_PROC_TOOLTIP"] = "Declara una función";
Blockly.Msg["CONTROLS_REPEAT_WHILE_TITLE"] = "repetir mientras";
Blockly.Msg["CONTROLS_REPEAT_WHILE_SUBTITLE"] = "hacer";
Blockly.Msg["CONTROLS_REPEAT_WHILE_TOOLTIP"] = "Mientras un valor sea verdadero, realizar algunas instrucciones";
Blockly.Msg["CONTROLS_REPEAT_UNTIL_TITLE"] = "repetir hasta";
Blockly.Msg["CONTROLS_REPEAT_UNTIL_SUBTITLE"] = "hacer";
Blockly.Msg["CONTROLS_REPEAT_UNTIL_TOOLTIP"] = "Hasta que un valor sea verdadero, realizar algunas instrucciones";

Blockly.Msg["VARIABLES_GET_TOOLTIP"] = "Una variable";
Blockly.Msg["VARIABLES_SET_TITLE"] = "asignar";
Blockly.Msg["VARIABLES_SET_SUBTITLE"] = "a";
Blockly.Msg["VARIABLES_SET_TOOLTIP"] = "Asignar una variable";
Blockly.Msg["VARIABLES_NUMERIC_SET_TOOLTIP"] = "Asignar una variable a un número";
Blockly.Msg["VARIABLES_INCREMENT_TITLE"] = "incrementar";
Blockly.Msg["VARIABLES_INCREMENT_SUBTITLE"] = "en";
Blockly.Msg["VARIABLES_INCREMENT_TOOLTIP"] = "Incrementar una variable";
Blockly.Msg["NUMBER_TITLE"] = "Número";
Blockly.Msg["NUMBER_TOOLTIP"] = "Un número";
4 changes: 2 additions & 2 deletions game/views/language_code_conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# "bg": "български",
# "bn": "বাংলা",
# "br": "Brezhoneg",
# "ca": "Català",
"ca": "Català",
# "cs": "čeština",
# "da": "Dansk",
# "de": "Deutsch",
Expand All @@ -22,7 +22,7 @@
"en": "English",
"en-gb": "English (UK)",
# "eo": "Esperanto",
# "es": "Español",
"es": "Español",
# "et": "Eesti",
# "eu": "Euskara",
# "fa": "فارسی",
Expand Down

0 comments on commit aacf29c

Please sign in to comment.