From 18b9c451e603bb0a7ad073969bfd15aa2fc32a6c Mon Sep 17 00:00:00 2001 From: Zishan Rahman Date: Wed, 18 Feb 2026 08:18:19 +0000 Subject: [PATCH 1/2] Use Blockly strings for if, else if and else in new if block --- blocks/control.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks/control.js b/blocks/control.js index fcbdcf8f..f24e2fcd 100644 --- a/blocks/control.js +++ b/blocks/control.js @@ -563,9 +563,9 @@ export function defineControlBlocks() { this.appendDummyInput("HEAD").appendField( new Blockly.FieldDropdown( [ - ["if", MODE.IF], - ["else if", MODE.ELSEIF], - ["else", MODE.ELSE], + ["%{BKY_CONTROLS_IF_MSG_IF}", MODE.IF], + ["%{BKY_CONTROLS_IF_MSG_ELSEIF}", MODE.ELSEIF], + ["%{BKY_CONTROLS_IF_MSG_ELSE}", MODE.ELSE], ], (newValue) => { this.updateShape_(newValue); From f8fc6f29a19ae9aa121eb0b31805b9d8fd12561a Mon Sep 17 00:00:00 2001 From: Zishan Rahman Date: Wed, 18 Feb 2026 08:32:06 +0000 Subject: [PATCH 2/2] Implement missing else string overrides for locales that needed them so that they still include the newline at the end --- locale/de.js | 2 +- locale/es.js | 2 +- locale/pl.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/locale/de.js b/locale/de.js index 3a788e8b..4c8974a9 100644 --- a/locale/de.js +++ b/locale/de.js @@ -468,7 +468,7 @@ export default { CONTROLS_FOR_INPUT_DO: "", CONTROLS_FOREACH_INPUT_DO: "", CONTROLS_IF_MSG_THEN: "", - CONTROLS_IF_MSG_ELSE: "else\n", + CONTROLS_IF_MSG_ELSE: "sonst\n", CONTROLS_FOR_TITLE: "für jede(n) %1 von %2 bis %3 mit Schritt %4", // Block messages diff --git a/locale/es.js b/locale/es.js index 958443e3..ce830e63 100644 --- a/locale/es.js +++ b/locale/es.js @@ -335,7 +335,7 @@ export default { CONTROLS_FOR_INPUT_DO: "", // human CONTROLS_FOREACH_INPUT_DO: "", // human CONTROLS_IF_MSG_THEN: "", // human - CONTROLS_IF_MSG_ELSE: "else\n", // human + CONTROLS_IF_MSG_ELSE: "sino\n", // human CONTROLS_FOR_TITLE: "para cada %1 desde %2 hasta %3 por %4", // human // Block message translations diff --git a/locale/pl.js b/locale/pl.js index abdcbc58..37271779 100644 --- a/locale/pl.js +++ b/locale/pl.js @@ -340,7 +340,7 @@ export default { CONTROLS_FOR_INPUT_DO: "", CONTROLS_FOREACH_INPUT_DO: "", CONTROLS_IF_MSG_THEN: "", - CONTROLS_IF_MSG_ELSE: "else\n", + CONTROLS_IF_MSG_ELSE: "w przeciwnym razie\n", CONTROLS_FOR_TITLE: "dla każdego %1 od %2 do %3 co %4", // Block message translations