Commit graph

106 commits

Author SHA1 Message Date
apple502j
bd4d913056 Localize custom block used alert 2020-05-29 16:17:08 +09:00
jokebookservice1
bf91929a6a feat: (try to) add 'random position' dropdown in 'point towards' 2018-11-13 22:06:26 +00:00
Rachel Fenichel
d5ecd3957d Use different text for variable and list deletion/renaming () 2018-10-24 13:48:40 -04:00
Eric Rosenbaum
e9169bed25 Add SOUND_RECORD localization 2018-10-09 16:45:46 -04:00
Florrie
5e88c4f2e5 Localize 'item # of value in list' block 2018-09-12 19:40:48 -03:00
chrisgarrity
afa57b26b2
Merge pull request from chrisgarrity/issue/2546-missing-thing
Issue/2546 missing thing
2018-07-18 13:06:36 -04:00
chrisgarrity
1f2c05c01a Localize custom procedure default name 2018-07-17 16:28:38 -04:00
chrisgarrity
648fe2013b Add default list item string
The default list item ‘thing’ was missing from messages (and from the places that use it.
2018-07-16 17:11:51 -04:00
chrisgarrity
c2ea5b6179 Split nextbackdrop into two strings
For translation we need two ‘next backdrop’ strings
* for the block - added _BLOCK to the name
* for the switch backdrop menu - kept the same name for consistency with other menu items. Also means that the name used by gui for the dynamic menu doesn’t change.
2018-07-16 16:43:37 -04:00
Andrew Sliwinski
6ac04d677a Add "delete all of [list]" block 2018-07-11 13:15:00 -04:00
Paul Kaplan
259a49aadb Add menu option for loudness in "when > _" hat block 2018-07-05 09:14:55 -04:00
chrisgarrity
eca1eec39c Add function to support translation of dynamic menus
Dynamic menus are constructed in the VM. Add a function to ScratchMsgs that it can use to look up localized strings for jsonInit. Add missing strings for dynamic menus.
2018-06-24 18:15:46 -04:00
chrisgarrity
5cb1651e56 Clarifications and consistency
*  removed all the generated files (<locale>.json, <locale>.js) except for ‘en’ versions and added them to git ignore.
* updated cleanup.sh to use our messages.
* added validation check to fail if any translations include newlines
* skip generating js files other than ‘en’ as we don’t use them
* Revised messages.js to use _single_ quoted strings instead of double (consistent with Blockly - if we need to import more strings), and switch the validations to check for single not double quotes.
* additional small changes for simplicity and ergonomics

Not handling category menu at this time as it’s managed differently in scratch-gui.
2018-06-13 10:50:20 -04:00
chrisgarrity
013e1ccf28 Switching languages
* pulled locales from transifex for languages that are mostly completely translated
* added option to switch language in playground.
* added missing category labels to `messages.js`
2018-06-08 17:54:54 -04:00
chrisgarrity
aa4ecd7e2e * 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.
2018-06-08 13:58:59 -04:00
Eric Rosenbaum
2b2fa52185 Move block text into messages, fix comment 2018-06-07 14:05:11 -04:00
Karishma Chadha
cbf148211b Block context menu still uses the 'Remove Comment' message. 2018-05-30 17:15:02 -04:00
Karishma Chadha
9a9e4c1053 Block comments and workspace comments should have the same delete option label in the context menu. Change this message to 'Delete' instead of 'Remove Comment'. 2018-05-30 15:03:04 -04:00
Karishma Chadha
0141576808 Update message names and add 'Delete' option for comment context menu. 2018-05-25 17:32:29 -04:00
kchadha
e91e29c8d8
Merge pull request from rachel-fenichel/feature/merge_workspace_comments
Feature/merge workspace comments
2018-05-16 10:48:13 -04:00
Andrew Sliwinski
7e08190329 Add various missing translation strings. Resolves GH-1490 2018-05-13 13:34:33 -04:00
Rachel Fenichel
9773dbe6db More work to pull in workspace comments 2018-05-11 17:18:19 -07:00
kchadha
df350528e0
Merge pull request from towerofnix/scrollcompat-blocks
Add scroll blocks
2018-05-01 15:52:27 -04:00
kchadha
2cb0daa60e
Merge pull request from towerofnix/warpspeed-blocks
Add "all at once" block
2018-05-01 15:44:03 -04:00
kchadha
a75c6b44b9
Merge pull request from towerofnix/misc-noop-blocks
Add micellaneous no-op obsolete blocks
2018-05-01 15:30:29 -04:00
Florrie
1696a4c9a0 Make set-stretch label more accurate 2018-04-30 21:52:58 -03:00
Florrie
2f5362b7a4 Add set/change stretch blocks 2018-04-30 21:29:21 -03:00
Florrie
aa3651c2d9 Add 'hide all sprites' and 'user id' blocks 2018-04-30 21:20:51 -03:00
Florrie
67403b3a3b Add loud? block 2018-04-30 19:50:56 -03:00
Florrie
e9c4e5df53 Add scroll compat blocks 2018-04-30 17:46:33 -03:00
Florrie
c20110ecad Add all-at-once block 2018-04-30 12:19:20 -03:00
Andrew Sliwinski
e0738223f6 Revert 'pointer' changes made as part of GH-1472 2018-04-26 11:31:03 -04:00
Andrew Sliwinski
dde0e1f262 Add Node.js tools for generating and converting localization files 2018-04-23 18:48:44 -04:00
Andrew Sliwinski
b124d4158c Removed unused messages from Blockly 2018-04-23 17:00:00 -04:00
Andrew Sliwinski
2c0bf6b896 Move all block strings into messages.js 2018-04-23 16:11:05 -04:00
Karishma Chadha
fc5e323714 Constants for variable/list renaming prompts. 2018-01-29 16:21:46 -05:00
Karishma Chadha
ccf6474896 The new constants for the modal titles. 2017-12-22 13:50:04 -05:00
Paul Kaplan
395c71224e Remove ellipses and change language to "Make a List/Variable" 2017-12-20 18:28:25 -05:00
Karishma Chadha
208d1892fc Fix for 2017-11-21 09:05:00 -05:00
kchadha
8c8b0d2cc2
Merge branch 'develop' into broadcast-message-functionality 2017-11-20 12:08:23 -05:00
Karishma Chadha
2d0d9dba0b Making default name for broadcast messages amenable to translation. 2017-11-20 12:05:55 -05:00
Karishma Chadha
c1044047f0 Changing new message constant name to be more useful because Blockly.Msg.NEW_MESSAGE will probably get confusing. 2017-11-20 11:45:27 -05:00
Paul Kaplan
20aaefe810 Update blocks for the procedure flyout category 2017-11-16 17:05:45 -05:00
Karishma Chadha
9ddf8a79a9 Adding ability to create a new broadcast message using the dropdown option. Broadcast messages are now typed variables with the variable type as 'broadcast_msg'. Needed to do some extra work to translate variables from blocks to XML correctly because the default broadcast messages were getting added as new variables with the incorrect type upon trying to move any of the broadcast message related blocks from the toolbar into the workspace because it was trying to create a new variable with a different type than already existed. Currently, broadcast message names conflict with variable names, and I need to make it so that isn't so. Additionally, need to update the source block's message name after creation of a new message via the dropdown. 2017-11-16 11:45:59 -05:00
Paul Kaplan
334baaf175 Use "Color" instead of "Hue" as the slider color input. 2017-10-23 16:40:30 -04:00
Rachel Fenichel
f928a7b9d6 Custom context menu for procedure calls 2017-10-12 13:39:24 -07:00
Rachel Fenichel
ca177a3224 replace 'function' with 'procedure' 2017-10-12 10:18:52 -07:00
Rachel Fenichel
70acfed298 Context menus on procedure definition blocks 2017-10-11 15:59:03 -07:00
marisaleung
bf7f8bbaeb Adding lists! 2017-07-25 15:03:40 -07:00
marisaleung
ffc1eb7682 Add VariableType checks. 2017-07-21 11:02:25 -07:00