Skip to content

Commit

Permalink
fix: add do translation (#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin authored May 23, 2024
1 parent a444ebb commit ae2f8db
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions game/static/game/js/blockly/msg/js/en-gb.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ Blockly.Msg["COW_CROSSING_TITLE"] = "cows";
Blockly.Msg["CALL_PROC_TITLE"] = "Call";
Blockly.Msg["CALL_PROC_TOOLTIP"] = "Calls a procedure";
Blockly.Msg["DECLARE_PROC_TITLE"] = "Define";
Blockly.Msg["DECLARE_PROC_SUBTITLE"] = "Do";
Blockly.Msg["DECLARE_PROC_TOOLTIP"] = "Declares a procedure";
Blockly.Msg["CONTROLS_REPEAT_WHILE_TITLE"] = "repeat while";
Blockly.Msg["CONTROLS_REPEAT_WHILE_SUBTITLE"] = "do";
Expand Down
1 change: 1 addition & 0 deletions game/static/game/js/blockly/msg/js/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ Blockly.Msg["COW_CROSSING_TITLE"] = "cows";
Blockly.Msg["CALL_PROC_TITLE"] = "Call";
Blockly.Msg["CALL_PROC_TOOLTIP"] = "Calls a procedure";
Blockly.Msg["DECLARE_PROC_TITLE"] = "Define";
Blockly.Msg["DECLARE_PROC_SUBTITLE"] = "Do";
Blockly.Msg["DECLARE_PROC_TOOLTIP"] = "Declares a procedure";
Blockly.Msg["CONTROLS_REPEAT_WHILE_TITLE"] = "repeat while";
Blockly.Msg["CONTROLS_REPEAT_WHILE_SUBTITLE"] = "do";
Expand Down
1 change: 1 addition & 0 deletions game/static/game/js/blockly/msg/js/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ Blockly.Msg["COW_CROSSING_TITLE"] = "vaches";
Blockly.Msg["CALL_PROC_TITLE"] = "Appeler";
Blockly.Msg["CALL_PROC_TOOLTIP"] = "Appeler une fonction";
Blockly.Msg["DECLARE_PROC_TITLE"] = "Définir";
Blockly.Msg["DECLARE_PROC_SUBTITLE"] = "Faire";
Blockly.Msg["DECLARE_PROC_TOOLTIP"] = "Déclarer une fonction";
Blockly.Msg["CONTROLS_REPEAT_WHILE_TITLE"] = "répéter tant que";
Blockly.Msg["CONTROLS_REPEAT_WHILE_SUBTITLE"] = "faire";
Expand Down
1 change: 1 addition & 0 deletions game/static/game/js/blockly/msg/js/hi.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ Blockly.Msg["COW_CROSSING_TITLE"] = "गायों";
Blockly.Msg["CALL_PROC_TITLE"] = "पुकारना";
Blockly.Msg["CALL_PROC_TOOLTIP"] = "एक प्रक्रिया बुलाना";
Blockly.Msg["DECLARE_PROC_TITLE"] = "परिभाषित करना";
Blockly.Msg["DECLARE_PROC_SUBTITLE"] = "करो";
Blockly.Msg["DECLARE_PROC_TOOLTIP"] = "प्रक्रिया की घोषणा करता है";
Blockly.Msg["CONTROLS_REPEAT_WHILE_TITLE"] = "दोहराएँ जबकि";
Blockly.Msg["CONTROLS_REPEAT_WHILE_SUBTITLE"] = "करो";
Expand Down
2 changes: 1 addition & 1 deletion game/static/game/js/blocklyCustomBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function initCustomBlocksDescription() {
.appendField(new Blockly.FieldTextInput(name), "NAME");
this.appendStatementInput("DO")
.setCheck("Action")
.appendField(gettext("Do"));
.appendField(Blockly.Msg.DECLARE_PROC_SUBTITLE);
this.setTooltip(Blockly.Msg.DECLARE_PROC_TOOLTIP);
this.statementConnection_ = null;
},
Expand Down

0 comments on commit ae2f8db

Please sign in to comment.