Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Commit 3afa21a

Browse files
McSamMcSam
authored andcommitted
remove translate from blocks category property
1 parent 4c26ad6 commit 3afa21a

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

src/scratch/blocks/Advanced/Functions/procedures_callnoreturn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Blockly.Blocks.procedures_callnoreturn = {
3535
previousStatement: null,
3636
nextStatement : null,
3737
tooltip : translate('Function with no return value tooltip'),
38-
category : translate('functions'),
38+
category : 'functions',
3939
};
4040
},
4141
/**

src/scratch/blocks/Advanced/Functions/procedures_ifreturn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Blockly.Blocks.procedures_ifreturn = {
3030
previousStatement: null,
3131
nextStatement : null,
3232
tooltip : translate('Function If Else'),
33-
category : translate('functions'),
33+
category : 'functions',
3434
};
3535
},
3636
meta(){

src/scratch/blocks/Advanced/List/lists_create_with.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Blockly.Blocks.lists_create_with = {
3333
previousStatement: null,
3434
nextStatement : null,
3535
tooltip : translate('Create List with'),
36-
category : translate('list'),
36+
category : 'list',
3737
};
3838
},
3939
meta(){

src/scratch/blocks/Advanced/Variable/variables_set.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Blockly.Blocks.variables_set = {
2525
previousStatement: null,
2626
nextStatement : null,
2727
tooltip : translate('Set Variable Tooltip'),
28-
category : translate('variables'),
28+
category : 'variables',
2929
};
3030
},
3131
meta(){

src/scratch/blocks/Binary/After Purchase/after_purchase.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ Blockly.Blocks.after_purchase = {
3535
tooltip : translate(
3636
'Get the previous trade information and result, then trade again (Runs on trade finish)'
3737
),
38-
category: translate('after-purchase'),
38+
category: 'after-purchase',
3939
};
4040
},
4141
meta(){
4242
return {
43-
'display_name': 'After Purchase',
44-
'description' : 'After Purchase Description',
43+
'display_name': translate('After Purchase'),
44+
'description' : translate('After Purchase Description'),
4545
};
4646
},
4747
onchange(event) {

src/scratch/blocks/Binary/After Purchase/trade_again.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Blockly.Blocks.trade_again = {
1515
colourTertiary : Blockly.Colours.Binary.colourTertiary,
1616
previousStatement: null,
1717
tooltip : translate('Runs the trade block again'),
18-
category : translate('after-purchase'),
18+
category : 'after-purchase',
1919
};
2020
},
2121
meta(){

src/scratch/blocks/Binary/Before Purchase/purchase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Blockly.Blocks.purchase = {
2323
colourSecondary : Blockly.Colours.Binary.colourSecondary,
2424
colourTertiary : Blockly.Colours.Binary.colourTertiary,
2525
tooltip : translate('Payout for selected proposal'),
26-
category : translate('before-purchase'),
26+
category : 'before-purchase',
2727
};
2828
},
2929
meta(){

src/scratch/blocks/Binary/During Purchase/during_purchase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Blockly.Blocks.during_purchase = {
3535
tooltip : translate(
3636
'Watch the purchased contract info and sell at market if available (Runs on contract update)'
3737
),
38-
category: translate('during-purchase'),
38+
category: 'during-purchase',
3939
};
4040
},
4141
meta(){

src/scratch/blocks/Binary/Indicators/bb_statement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Blockly.Blocks.bb_statement = {
3838
tooltip : translate('Calculates Bollinger Bands (BB) from a list with a period'),
3939
previousStatement: null,
4040
nextStatement : null,
41-
category : translate('indicators'),
41+
category : 'indicators',
4242
};
4343
},
4444
meta(){

src/scratch/blocks/Logic/controls_if.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Blockly.Blocks.controls_if = {
3838
previousStatement: null,
3939
nextStatement : null,
4040
tooltip : translate('If else statement tooltip'),
41-
category : translate('logic'),
41+
category : 'logic',
4242
};
4343
},
4444
meta(){

0 commit comments

Comments
 (0)