mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Use a Blockly.Msg for button text
This commit is contained in:
parent
a2b3a3638a
commit
19722e2350
4 changed files with 9 additions and 9 deletions
|
@ -120,7 +120,7 @@ Blockly.Variables.flyoutCategory = function(workspace) {
|
|||
|
||||
var xmlList = [];
|
||||
var button = goog.dom.createDom('button');
|
||||
button.setAttribute('text', 'Create variable');
|
||||
button.setAttribute('text', Blockly.Msg.NEW_VARIABLE);
|
||||
xmlList.push(button);
|
||||
|
||||
if (variableList.length > 0) {
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"author": "Ellen Spertus <ellen.spertus@gmail.com>",
|
||||
"lastupdated": "2016-08-11 17:04:14.955398",
|
||||
"lastupdated": "2016-08-16 16:49:03.565208",
|
||||
"locale": "en",
|
||||
"messagedocumentation" : "qqq"
|
||||
},
|
||||
"VARIABLES_DEFAULT_NAME": "item",
|
||||
"TODAY": "Today",
|
||||
"DELETE_VARIABLE": "Delete the '%1' variable",
|
||||
"DUPLICATE_BLOCK": "Duplicate",
|
||||
"ADD_COMMENT": "Add Comment",
|
||||
"REMOVE_COMMENT": "Remove Comment",
|
||||
|
@ -27,11 +26,12 @@
|
|||
"UNDO": "Undo",
|
||||
"REDO": "Redo",
|
||||
"CHANGE_VALUE_TITLE": "Change value:",
|
||||
"NEW_VARIABLE": "New variable...",
|
||||
"NEW_VARIABLE": "Create variable...",
|
||||
"NEW_VARIABLE_TITLE": "New variable name:",
|
||||
"RENAME_VARIABLE": "Rename variable...",
|
||||
"RENAME_VARIABLE_TITLE": "Rename all '%1' variables to:",
|
||||
"DELETE_VARIABLE_CONFIRMATION": "Delete %1 uses of the %2 variable?",
|
||||
"DELETE_VARIABLE_CONFIRMATION": "Delete %1 uses of the '%2' variable?",
|
||||
"DELETE_VARIABLE": "Delete the '%1' variable",
|
||||
"COLOUR_PICKER_HELPURL": "https://en.wikipedia.org/wiki/Color",
|
||||
"COLOUR_PICKER_TOOLTIP": "Choose a colour from the palette.",
|
||||
"COLOUR_RANDOM_HELPURL": "http://randomcolour.com",
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"VARIABLES_DEFAULT_NAME": "default name - A simple, general default name for a variable, preferably short. For more context, see [[Translating:Blockly#infrequent_message_types]].\n{{Identical|Item}}",
|
||||
"TODAY": "button text - Button that sets a calendar to today's date.\n{{Identical|Today}}",
|
||||
"DELETE_VARIABLE": "dropdown choice - Delete the currently selected variable.",
|
||||
"DUPLICATE_BLOCK": "context menu - Make a copy of the selected block (and any blocks it contains).\n{{Identical|Duplicate}}",
|
||||
"ADD_COMMENT": "context menu - Add a descriptive comment to the selected block.",
|
||||
"REMOVE_COMMENT": "context menu - Remove the descriptive comment from the selected block.",
|
||||
|
@ -21,11 +20,12 @@
|
|||
"UNDO": "context menu - Undo the previous action.\n{{Identical|Undo}}",
|
||||
"REDO": "context menu - Undo the previous undo action.\n{{Identical|Redo}}",
|
||||
"CHANGE_VALUE_TITLE": "prompt - This message is only seen in the Opera browser. With most browsers, users can edit numeric values in blocks by just clicking and typing. Opera does not allows this, so we have to open a new window and prompt users with this message to chanage a value.",
|
||||
"NEW_VARIABLE": "dropdown choice - When the user clicks on a variable block, this is one of the dropdown menu choices. It is used to define a new variable. See [https://github.com/google/blockly/wiki/Variables#dropdown-menu https://github.com/google/blockly/wiki/Variables#dropdown-menu].",
|
||||
"NEW_VARIABLE": "button text - Text on the button used to launch the variable creation dialogue.",
|
||||
"NEW_VARIABLE_TITLE": "prompt - Prompts the user to enter the name for a new variable. See [https://github.com/google/blockly/wiki/Variables#dropdown-menu https://github.com/google/blockly/wiki/Variables#dropdown-menu].",
|
||||
"RENAME_VARIABLE": "dropdown choice - When the user clicks on a variable block, this is one of the dropdown menu choices. It is used to rename the current variable. See [https://github.com/google/blockly/wiki/Variables#dropdown-menu https://github.com/google/blockly/wiki/Variables#dropdown-menu].",
|
||||
"RENAME_VARIABLE_TITLE": "prompt - Prompts the user to enter the new name for the selected variable. See [https://github.com/google/blockly/wiki/Variables#dropdown-menu https://github.com/google/blockly/wiki/Variables#dropdown-menu].\n\nParameters:\n* %1 - the name of the variable to be renamed.",
|
||||
"DELETE_VARIABLE_CONFIRMATION": "confirm - Ask the user to confirm their deletion of multiple uses of a variable.",
|
||||
"DELETE_VARIABLE": "alert - Tell the user that they can't delete a variable because it's part of the definition of a procedure. dropdown choice - Delete the currently selected variable.",
|
||||
"COLOUR_PICKER_HELPURL": "url - Information about colour.",
|
||||
"COLOUR_PICKER_TOOLTIP": "tooltip - See [https://github.com/google/blockly/wiki/Colour#picking-a-colour-from-a-palette https://github.com/google/blockly/wiki/Colour#picking-a-colour-from-a-palette].",
|
||||
"COLOUR_RANDOM_HELPURL": "url - A link that displays a random colour each time you visit it.",
|
||||
|
|
|
@ -96,8 +96,8 @@ Blockly.Msg.REDO = 'Redo';
|
|||
// Variable renaming.
|
||||
/// prompt - This message is only seen in the Opera browser. With most browsers, users can edit numeric values in blocks by just clicking and typing. Opera does not allows this, so we have to open a new window and prompt users with this message to chanage a value.
|
||||
Blockly.Msg.CHANGE_VALUE_TITLE = 'Change value:';
|
||||
/// dropdown choice - When the user clicks on a variable block, this is one of the dropdown menu choices. It is used to define a new variable. See [https://github.com/google/blockly/wiki/Variables#dropdown-menu https://github.com/google/blockly/wiki/Variables#dropdown-menu].
|
||||
Blockly.Msg.NEW_VARIABLE = 'New variable...';
|
||||
/// button text - Text on the button used to launch the variable creation dialogue.
|
||||
Blockly.Msg.NEW_VARIABLE = 'Create variable...';
|
||||
/// prompt - Prompts the user to enter the name for a new variable. See [https://github.com/google/blockly/wiki/Variables#dropdown-menu https://github.com/google/blockly/wiki/Variables#dropdown-menu].
|
||||
Blockly.Msg.NEW_VARIABLE_TITLE = 'New variable name:';
|
||||
/// dropdown choice - When the user clicks on a variable block, this is one of the dropdown menu choices. It is used to rename the current variable. See [https://github.com/google/blockly/wiki/Variables#dropdown-menu https://github.com/google/blockly/wiki/Variables#dropdown-menu].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue