Skip to content

Commit b43dea0

Browse files
committed
Move (no parameters) to i18n
1 parent 5fa32a7 commit b43dea0

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/blocks/mrc_get_parameter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const GET_PARAMETER_BLOCK = {
110110
}
111111

112112
if (legalParameterNames.length === 0) {
113-
return [['(no parameters)', '']];
113+
return [[Blockly.Msg.NO_PARAMETERS, '']];
114114
}
115115

116116
return legalParameterNames.map(name => [name, name]);

src/i18n/locales/en/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
"PARAMETER_DOES_NOT_EXIST_IN_METHOD": "Parameter \"%1\" does not exist in this method.",
135135
"PARAMETER_DOES_NOT_EXIST_IN_EVENT_HANDLER": "Parameter \"%1\" does not exist in this event handler.",
136136
"NO_PARAMETER_SELECTED": "No parameter selected.",
137+
"NO_PARAMETERS": "(no parameters)",
137138
"JUMP_CAN_ONLY_GO_IN_THEIR_STEPS_BLOCK": "Jump can only go in their step's block",
138139
"STEP_DOES_NOT_EXIST_IN_STEPS": "Step \"%1\" does not exist in this steps block.",
139140
"NO_STEP_SELECTED": "No step selected.",

src/i18n/locales/es/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
"PARAMETER_DOES_NOT_EXIST_IN_METHOD": "El parámetro \"%1\" no existe en este método.",
136136
"PARAMETER_DOES_NOT_EXIST_IN_EVENT_HANDLER": "El parámetro \"%1\" no existe en este controlador de eventos.",
137137
"NO_PARAMETER_SELECTED": "No se ha seleccionado ningún parámetro.",
138+
"NO_PARAMETERS": "(sin parámetros)",
138139
"JUMP_CAN_ONLY_GO_IN_THEIR_STEPS_BLOCK": "El salto solo puede ir en el bloque de su paso",
139140
"STEP_DOES_NOT_EXIST_IN_STEPS": "El paso \"%1\" no existe en este bloque de pasos.",
140141
"NO_STEP_SELECTED": "No se ha seleccionado ningún paso.",

src/i18n/locales/he/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
"PARAMETER_DOES_NOT_EXIST_IN_METHOD": "הפרמטר \"%1\" לא קיים בשיטה זו.",
135135
"PARAMETER_DOES_NOT_EXIST_IN_EVENT_HANDLER": "הפרמטר \"%1\" לא קיים במטפל אירועים זה.",
136136
"NO_PARAMETER_SELECTED": "לא נבחר פרמטר.",
137+
"NO_PARAMETERS": "(אין פרמטרים)",
137138
"JUMP_CAN_ONLY_GO_IN_THEIR_STEPS_BLOCK": "קפיצה יכולה ללכת רק בבלוק הצעד שלה",
138139
"STEP_DOES_NOT_EXIST_IN_STEPS": "הצעד \"%1\" לא קיים בבלוק הצעדים הזה.",
139140
"NO_STEP_SELECTED": "לא נבחר צעד.",

0 commit comments

Comments
 (0)