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

fix: add do translation #1623

Merged
merged 1 commit into from
May 23, 2024
Merged
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
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
Loading