Skip to content

Commit

Permalink
Added translations! First one is Romanian
Browse files Browse the repository at this point in the history
  • Loading branch information
Secret-chest committed Mar 4, 2022
1 parent 8708eef commit 31f5101
Show file tree
Hide file tree
Showing 15 changed files with 376 additions and 134 deletions.
42 changes: 42 additions & 0 deletions assets/0fb9be3e8397c983338cb71dc84d0b25.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/83a9787d4cb6f3b7632b4ddfebf74367.wav
Binary file not shown.
Binary file added assets/83c36d806dc92327b9e7049a565c6bff.wav
Binary file not shown.
1 change: 0 additions & 1 deletion assets/9a4fb3ed82f74f5df24ade1a2aa48920.svg

This file was deleted.

42 changes: 42 additions & 0 deletions assets/bcf454acf82e4504149f7ffe07081dbc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/project.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"targets":[{"isStage":true,"name":"Stage","variables":{},"lists":{},"broadcasts":{},"blocks":{},"comments":{},"currentCostume":0,"costumes":[{"assetId":"cd21514d0531fdffb22204e0ec5ed84a","name":"backdrop1","md5ext":"cd21514d0531fdffb22204e0ec5ed84a.svg","dataFormat":"svg","rotationCenterX":240,"rotationCenterY":180}],"sounds":[],"volume":100,"layerOrder":0,"tempo":60,"videoTransparency":50,"videoState":"on","textToSpeechLanguage":"ro"},{"isStage":false,"name":"Cosmicat","variables":{},"lists":{},"broadcasts":{},"blocks":{"*`q9Brc}_w8S^^Qi}rB3":{"opcode":"motion_gotoxy","next":"G!%/o$v|,%8mjWc{:#C,","parent":"E;=y4~YoyP#A+s:jS0xd","inputs":{"X":[1,[4,"0"]],"Y":[1,[4,"0"]]},"fields":{},"shadow":false,"topLevel":false},"E;=y4~YoyP#A+s:jS0xd":{"opcode":"event_whenflagclicked","next":"*`q9Brc}_w8S^^Qi}rB3","parent":null,"inputs":{},"fields":{},"shadow":false,"topLevel":true,"x":120,"y":312},"G!%/o$v|,%8mjWc{:#C,":{"opcode":"control_wait","next":"jctW5vM^0j?OBU[c_QIX","parent":"*`q9Brc}_w8S^^Qi}rB3","inputs":{"DURATION":[1,[5,"1"]]},"fields":{},"shadow":false,"topLevel":false},"jctW5vM^0j?OBU[c_QIX":{"opcode":"motion_changexby","next":"C[fjaA0.ii0qHLF=D$?i","parent":"G!%/o$v|,%8mjWc{:#C,","inputs":{"DX":[3,"+B#TCXx[0:l1!N[n6#;X",[4,"10"]]},"fields":{},"shadow":false,"topLevel":false},"+B#TCXx[0:l1!N[n6#;X":{"opcode":"operator_multiply","next":null,"parent":"jctW5vM^0j?OBU[c_QIX","inputs":{"NUM1":[1,[4,"10"]],"NUM2":[1,[4,"10"]]},"fields":{},"shadow":false,"topLevel":false},"/Prd;?NWZEI#o:I9=l:m":{"opcode":"motion_changexby","next":null,"parent":"C[fjaA0.ii0qHLF=D$?i","inputs":{"DX":[3,"3r7nbt`f/i?40}I1WFtT",[4,"10"]]},"fields":{},"shadow":false,"topLevel":false},"3r7nbt`f/i?40}I1WFtT":{"opcode":"operator_subtract","next":null,"parent":"/Prd;?NWZEI#o:I9=l:m","inputs":{"NUM1":[1,[4,""]],"NUM2":[3,"Uq3)+nqHGC6W]x~D8B|8",[4,""]]},"fields":{},"shadow":false,"topLevel":false},"Uq3)+nqHGC6W]x~D8B|8":{"opcode":"operator_divide","next":null,"parent":"3r7nbt`f/i?40}I1WFtT","inputs":{"NUM1":[1,[4,"1000"]],"NUM2":[1,[4,"10"]]},"fields":{},"shadow":false,"topLevel":false},"C[fjaA0.ii0qHLF=D$?i":{"opcode":"control_wait","next":"/Prd;?NWZEI#o:I9=l:m","parent":"jctW5vM^0j?OBU[c_QIX","inputs":{"DURATION":[1,[5,"1"]]},"fields":{},"shadow":false,"topLevel":false},"OwCEL3L5zADecj;C]J}D":{"opcode":"motion_changexby","next":null,"parent":null,"inputs":{"DX":[3,"[$rrTR1_O+P!/i:T)ks6",[4,"10"]]},"fields":{},"shadow":false,"topLevel":true,"x":120,"y":412},"[$rrTR1_O+P!/i:T)ks6":{"opcode":"operator_multiply","next":null,"parent":"OwCEL3L5zADecj;C]J}D","inputs":{"NUM1":[1,[4,"10"]],"NUM2":[1,[4,"10"]]},"fields":{},"shadow":false,"topLevel":false}},"comments":{},"currentCostume":0,"costumes":[{"assetId":"9a4fb3ed82f74f5df24ade1a2aa48920","name":"Cosmicat","bitmapResolution":1,"md5ext":"9a4fb3ed82f74f5df24ade1a2aa48920.svg","dataFormat":"svg","rotationCenterX":47.2514000162754,"rotationCenterY":57.860045289335886}],"sounds":[],"volume":100,"layerOrder":1,"visible":true,"x":0,"y":0,"size":100,"direction":90,"draggable":false,"rotationStyle":"all around"}],"monitors":[],"extensions":[],"meta":{"semver":"3.0.0","vm":"0.2.0-prerelease.20220302060126","agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"}}
{"targets":[{"isStage":true,"name":"Stage","variables":{"`jEk@4|i[#Fk?(8x)AV.-my variable":["variabila mea",0]},"lists":{},"broadcasts":{},"blocks":{},"comments":{},"currentCostume":0,"costumes":[{"assetId":"cd21514d0531fdffb22204e0ec5ed84a","name":"decor1","md5ext":"cd21514d0531fdffb22204e0ec5ed84a.svg","dataFormat":"svg","rotationCenterX":240,"rotationCenterY":180}],"sounds":[{"assetId":"83a9787d4cb6f3b7632b4ddfebf74367","name":"pop","dataFormat":"wav","format":"","rate":44100,"sampleCount":1032,"md5ext":"83a9787d4cb6f3b7632b4ddfebf74367.wav"}],"volume":100,"layerOrder":0,"tempo":60,"videoTransparency":50,"videoState":"on","textToSpeechLanguage":"ro"},{"isStage":false,"name":"Personaj1","variables":{},"lists":{},"broadcasts":{},"blocks":{"M1uM[!,UT6wfx4:OY@~m":{"opcode":"event_whenkeypressed","next":"+Zcm|7/E]Fs%/ISKyJq;","parent":null,"inputs":{},"fields":{"KEY_OPTION":["up arrow",null]},"shadow":false,"topLevel":true,"x":163,"y":266},"+Zcm|7/E]Fs%/ISKyJq;":{"opcode":"motion_changeyby","next":null,"parent":"M1uM[!,UT6wfx4:OY@~m","inputs":{"DY":[1,[4,"10"]]},"fields":{},"shadow":false,"topLevel":false},"`H#)2HYe8*O@.,nX0Zgb":{"opcode":"event_whenkeypressed","next":"!{Z#3+!mYowB5;7=p*B-","parent":null,"inputs":{},"fields":{"KEY_OPTION":["down arrow",null]},"shadow":false,"topLevel":true,"x":716,"y":282},"!{Z#3+!mYowB5;7=p*B-":{"opcode":"motion_changeyby","next":null,"parent":"`H#)2HYe8*O@.,nX0Zgb","inputs":{"DY":[1,[4,"-10"]]},"fields":{},"shadow":false,"topLevel":false},"pp-1v@;w%nvO@zD18L6D":{"opcode":"event_whenkeypressed","next":"yc=8$6XJ`eneTtK4CJ]{","parent":null,"inputs":{},"fields":{"KEY_OPTION":["right arrow",null]},"shadow":false,"topLevel":true,"x":144,"y":459},"yc=8$6XJ`eneTtK4CJ]{":{"opcode":"motion_changexby","next":null,"parent":"pp-1v@;w%nvO@zD18L6D","inputs":{"DX":[1,[4,"10"]]},"fields":{},"shadow":false,"topLevel":false},"68oMcI}Fk+=..Qf!OtOv":{"opcode":"event_whenkeypressed","next":"rZEAf_-uDOaS,Ej|$uv{","parent":null,"inputs":{},"fields":{"KEY_OPTION":["left arrow",null]},"shadow":false,"topLevel":true,"x":646,"y":460},"rZEAf_-uDOaS,Ej|$uv{":{"opcode":"motion_changexby","next":null,"parent":"68oMcI}Fk+=..Qf!OtOv","inputs":{"DX":[1,[4,"-10"]]},"fields":{},"shadow":false,"topLevel":false}},"comments":{},"currentCostume":0,"costumes":[{"assetId":"bcf454acf82e4504149f7ffe07081dbc","name":"costum1","bitmapResolution":1,"md5ext":"bcf454acf82e4504149f7ffe07081dbc.svg","dataFormat":"svg","rotationCenterX":48,"rotationCenterY":50},{"assetId":"0fb9be3e8397c983338cb71dc84d0b25","name":"costum2","bitmapResolution":1,"md5ext":"0fb9be3e8397c983338cb71dc84d0b25.svg","dataFormat":"svg","rotationCenterX":46,"rotationCenterY":53}],"sounds":[{"assetId":"83c36d806dc92327b9e7049a565c6bff","name":"Miau","dataFormat":"wav","format":"","rate":44100,"sampleCount":37376,"md5ext":"83c36d806dc92327b9e7049a565c6bff.wav"}],"volume":100,"layerOrder":1,"visible":true,"x":0,"y":0,"size":100,"direction":90,"draggable":false,"rotationStyle":"all around"}],"monitors":[],"extensions":[],"meta":{"semver":"3.0.0","vm":"0.2.0-prerelease.20211103090905","agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36"}}
6 changes: 3 additions & 3 deletions block.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ def evaluateBlockValue(self):
if self.opcode == "operator_add": # () + ()
self.value = float(self.getInputValue("num1")) + float(self.getInputValue("num2"))
return self.value
if self.opcode == "operator_subtract": # () - ()
elif self.opcode == "operator_subtract": # () - ()
self.value = float(self.getInputValue("num1")) - float(self.getInputValue("num2"))
return self.value
if self.opcode == "operator_multiply": # () * ()
elif self.opcode == "operator_multiply": # () * ()
self.value = float(self.getInputValue("num1")) * float(self.getInputValue("num2"))
return self.value
if self.opcode == "operator_divide": # () / ()
elif self.opcode == "operator_divide": # () / ()
try:
self.value = float(self.getInputValue("num1")) / float(self.getInputValue("num2"))
except ZeroDivisionError:
Expand Down
Loading

0 comments on commit 31f5101

Please sign in to comment.