Skip to content
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
6 changes: 6 additions & 0 deletions src/blocks/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,11 @@ export function customTokens(t: (key: string) => string): typeof Blockly.Msg {
MRC_CATEGORY_ADD_COMPONENT: t('BLOCKLY.CATEGORY.ADD_COMPONENT'),
MRC_CATEGORY_TEST: t('BLOCKLY.CATEGORY.TEST'),
MRC_PRINT: t('BLOCKLY.PRINT'),
CUSTOM_EVENTS_LABEL: t('BLOCKLY.CUSTOM_EVENTS_LABEL'),
CUSTOM_METHODS_LABEL: t('BLOCKLY.CUSTOM_METHODS_LABEL'),
MORE_ROBOT_METHODS_LABEL: t('BLOCKLY.MORE_ROBOT_METHODS_LABEL'),
MORE_MECHANISM_METHODS_LABEL: t('BLOCKLY.MORE_MECHANISM_METHODS_LABEL'),
MORE_OPMODE_METHODS_LABEL: t('BLOCKLY.MORE_OPMODE_METHODS_LABEL'),
COMMENT_DEFAULT_TEXT: t('BLOCKLY.COMMENT_DEFAULT_TEXT'),
}
};
6 changes: 6 additions & 0 deletions src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@
"ROBOT": "robot",
"CREATE": "create",
"FIRE": "fire",
"CUSTOM_EVENTS_LABEL": "Custom Events",
"CUSTOM_METHODS_LABEL": "Custom Methods",
"MORE_ROBOT_METHODS_LABEL": "More Robot Methods",
"MORE_MECHANISM_METHODS_LABEL": "More Mechanism Methods",
"MORE_OPMODE_METHODS_LABEL": "More OpMode Methods",
"COMMENT_DEFAULT_TEXT": "Enter your comment here!",
"TOOLTIP":{
"EVALUATE_BUT_IGNORE_RESULT": "Executes the connected block and ignores the result. Allows you to call a function and ignore the return value.",
"NONE": "Returns None.",
Expand Down
6 changes: 6 additions & 0 deletions src/i18n/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@
"ROBOT": "robot",
"CREATE": "crear",
"FIRE": "disparar",
"CUSTOM_EVENTS_LABEL": "Eventos Personalizados",
"CUSTOM_METHODS_LABEL": "Métodos Personalizados",
"MORE_ROBOT_METHODS_LABEL": "Más Métodos del Robot",
"MORE_MECHANISM_METHODS_LABEL": "Más Métodos del Mecanismo",
"MORE_OPMODE_METHODS_LABEL": "Más Métodos del OpMode",
"COMMENT_DEFAULT_TEXT": "¡Ingresa tu comentario aquí!",
"TOOLTIP": {
"EVALUATE_BUT_IGNORE_RESULT": "Ejecuta el bloque conectado e ignora el resultado. Te permite llamar una función e ignorar el valor de retorno.",
"NONE": "No devuelve ninguno.",
Expand Down
6 changes: 6 additions & 0 deletions src/i18n/locales/he/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@
"ROBOT": "רובוט",
"CREATE": "צור",
"FIRE": "הפעל",
"CUSTOM_EVENTS_LABEL": "אירועים מותאמים אישית",
"CUSTOM_METHODS_LABEL": "מתודות מותאמות אישית",
"MORE_ROBOT_METHODS_LABEL": "מתודות נוספות לרובוט",
"MORE_MECHANISM_METHODS_LABEL": "מתודות נוספות למנגנון",
"MORE_OPMODE_METHODS_LABEL": "מתודות נוספות לאופמוד",
"COMMENT_DEFAULT_TEXT": "הזן את ההערה שלך כאן!",
"TOOLTIP": {
"EVALUATE_BUT_IGNORE_RESULT": "מבצע את הבלוק המחובר ומתעלם מהתוצאה. מאפשר לקרוא לפונקציה מבלי להשתמש בערך שהיא מחזירה.",
"NONE": "מחזיר כלום.",
Expand Down
2 changes: 1 addition & 1 deletion src/toolbox/event_category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class EventsCategory {
contents.push(
{
kind: 'label',
text: 'Custom Events',
text: Blockly.Msg['CUSTOM_EVENTS_LABEL'],
},
createCustomEventBlock(storageNames.makeUniqueName('my_event', eventNames))
);
Expand Down
8 changes: 4 additions & 4 deletions src/toolbox/methods_category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class MethodsCategory {
];
// Add the methods for a Robot.
this.addClassBlocksForCurrentModule(
'More Robot Methods', this.robotClassBlocks, robotMethodNamesNotOverrideable,
Blockly.Msg['MORE_ROBOT_METHODS_LABEL'], this.robotClassBlocks, robotMethodNamesNotOverrideable,
methodNamesAlreadyOverridden, contents);
break;
case storageModule.ModuleType.MECHANISM:
Expand All @@ -95,13 +95,13 @@ class MethodsCategory {
];
// Add the methods for a Mechanism.
this.addClassBlocksForCurrentModule(
'More Mechanism Methods', this.mechanismClassBlocks, mechanismMethodNamesNotOverrideable,
Blockly.Msg['MORE_MECHANISM_METHODS_LABEL'], this.mechanismClassBlocks, mechanismMethodNamesNotOverrideable,
methodNamesAlreadyOverridden, contents);
break;
case storageModule.ModuleType.OPMODE:
// Add the methods for an OpMode.
this.addClassBlocksForCurrentModule(
'More OpMode Methods', this.opmodeClassBlocks, [],
Blockly.Msg['MORE_OPMODE_METHODS_LABEL'], this.opmodeClassBlocks, [],
methodNamesAlreadyOverridden, contents);
break;
}
Expand All @@ -110,7 +110,7 @@ class MethodsCategory {
contents.push(
{
kind: 'label',
text: 'Custom Methods',
text: Blockly.Msg['CUSTOM_METHODS_LABEL'],
},
createCustomMethodBlock(),
createCustomMethodBlockWithReturn()
Expand Down
2 changes: 1 addition & 1 deletion src/toolbox/misc_category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const getCategory = () => ({
kind: 'block',
type: 'mrc_misc_comment',
fields: {
COMMENT: 'Enter your comment here!',
COMMENT: Blockly.Msg['COMMENT_DEFAULT_TEXT'],
},
},
{
Expand Down