mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-06 11:09:54 -04:00
* Added Blockly.ScratchMsgs
* Added script to create combined locales `Blockly.ScratchMsgs.locales` * Regenerated en.json after changing single quoted strings in messages.js to double quoted strings. * Include `create_scratch_msgs.js` in `npm run translate` locale=<locale-string>` to the URL. * Added assertions so translate fails if `messages.js` has incorrect strings, or if any of the downloaded locale json files have errors in the translations. * Playground will load different locales.
This commit is contained in:
parent
737994330c
commit
aa4ecd7e2e
11 changed files with 269 additions and 48 deletions
msg/js
42
msg/js/en.js
42
msg/js/en.js
|
@ -45,6 +45,7 @@ Blockly.Msg["DATA_INDEX_RANDOM"] = "random";
|
|||
Blockly.Msg["EVENT_WHENFLAGCLICKED"] = "when %1 clicked";
|
||||
Blockly.Msg["EVENT_WHENTHISSPRITECLICKED"] = "when this sprite clicked";
|
||||
Blockly.Msg["EVENT_WHENSTAGECLICKED"] = "when stage clicked";
|
||||
Blockly.Msg["EVENT_WHENTOUCHINGOBJECT"] = "when this sprite touches %1";
|
||||
Blockly.Msg["EVENT_WHENBROADCASTRECEIVED"] = "when I receive %1";
|
||||
Blockly.Msg["EVENT_WHENBACKDROPSWITCHESTO"] = "when backdrop switches to %1";
|
||||
Blockly.Msg["EVENT_WHENGREATERTHAN"] = "when %1 > %2";
|
||||
|
@ -217,3 +218,44 @@ Blockly.Msg["SOUND_EFFECTS_PAN"] = "pan left/right";
|
|||
Blockly.Msg["SOUND_CHANGEVOLUMEBY"] = "change volume by %1";
|
||||
Blockly.Msg["SOUND_SETVOLUMETO"] = "set volume to %1%";
|
||||
Blockly.Msg["SOUND_VOLUME"] = "volume";
|
||||
Blockly.Msg["DUPLICATE"] = "Duplicate";
|
||||
Blockly.Msg["DELETE"] = "Delete";
|
||||
Blockly.Msg["ADD_COMMENT"] = "Add Comment";
|
||||
Blockly.Msg["REMOVE_COMMENT"] = "Remove Comment";
|
||||
Blockly.Msg["DELETE_BLOCK"] = "Delete Block";
|
||||
Blockly.Msg["DELETE_X_BLOCKS"] = "Delete %1 Blocks";
|
||||
Blockly.Msg["DELETE_ALL_BLOCKS"] = "Delete all %1 blocks?";
|
||||
Blockly.Msg["CLEAN_UP"] = "Clean up Blocks";
|
||||
Blockly.Msg["HELP"] = "Help";
|
||||
Blockly.Msg["UNDO"] = "Undo";
|
||||
Blockly.Msg["REDO"] = "Redo";
|
||||
Blockly.Msg["EDIT_PROCEDURE"] = "Edit";
|
||||
Blockly.Msg["SHOW_PROCEDURE_DEFINITION"] = "Go to definition";
|
||||
Blockly.Msg["WORKSPACE_COMMENT_DEFAULT_TEXT"] = "Say something...";
|
||||
Blockly.Msg["COLOUR_HUE_LABEL"] = "Color";
|
||||
Blockly.Msg["COLOUR_SATURATION_LABEL"] = "Saturation";
|
||||
Blockly.Msg["COLOUR_BRIGHTNESS_LABEL"] = "Brightness";
|
||||
Blockly.Msg["CHANGE_VALUE_TITLE"] = "Change value:";
|
||||
Blockly.Msg["RENAME_VARIABLE"] = "Rename variable";
|
||||
Blockly.Msg["RENAME_VARIABLE_TITLE"] = "Rename all '%1' variables to:";
|
||||
Blockly.Msg["RENAME_VARIABLE_MODAL_TITLE"] = "Rename Variable";
|
||||
Blockly.Msg["NEW_VARIABLE"] = "Make a Variable";
|
||||
Blockly.Msg["NEW_VARIABLE_TITLE"] = "New variable name:";
|
||||
Blockly.Msg["VARIABLE_MODAL_TITLE"] = "New Variable";
|
||||
Blockly.Msg["VARIABLE_ALREADY_EXISTS"] = "A variable named '%1' already exists.";
|
||||
Blockly.Msg["VARIABLE_ALREADY_EXISTS_FOR_ANOTHER_TYPE"] = "A variable named '%1' already exists for another variable of type '%2'.";
|
||||
Blockly.Msg["DELETE_VARIABLE_CONFIRMATION"] = "Delete %1 uses of the '%2' variable?";
|
||||
Blockly.Msg["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "Can't delete the variable '%1' because it's part of the definition of the function '%2'";
|
||||
Blockly.Msg["DELETE_VARIABLE"] = "Delete the '%1' variable";
|
||||
Blockly.Msg["NEW_PROCEDURE"] = "Make a Block";
|
||||
Blockly.Msg["PROCEDURE_ALREADY_EXISTS"] = "A procedure named '%1' already exists.";
|
||||
Blockly.Msg["NEW_LIST"] = "Make a List";
|
||||
Blockly.Msg["NEW_LIST_TITLE"] = "New list name:";
|
||||
Blockly.Msg["LIST_MODAL_TITLE"] = "New List";
|
||||
Blockly.Msg["LIST_ALREADY_EXISTS"] = "A list named '%1' already exists.";
|
||||
Blockly.Msg["RENAME_LIST_TITLE"] = "Rename all '%1' lists to:";
|
||||
Blockly.Msg["RENAME_LIST_MODAL_TITLE"] = "Rename List";
|
||||
Blockly.Msg["NEW_BROADCAST_MESSAGE"] = "New message";
|
||||
Blockly.Msg["NEW_BROADCAST_MESSAGE_TITLE"] = "New message name:";
|
||||
Blockly.Msg["BROADCAST_MODAL_TITLE"] = "New Message";
|
||||
Blockly.Msg["DEFAULT_BROADCAST_MESSAGE_NAME"] = "message1";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue