Discuss Scratch
- Discussion Forums
- » Announcements
- » New [scratchblocks] tag
- davran
-
Scratcher
10 posts
New [scratchblocks] tag
whoops.
Last edited by davran (Sept. 28, 2013 15:33:03)
- davran
-
Scratcher
10 posts
New [scratchblocks] tag
whoops
Last edited by davran (Sept. 28, 2013 15:34:12)
- BigBlueBlock
-
Scratcher
500+ posts
New [scratchblocks] tag
test [test]
(test)
<test>
Last edited by BigBlueBlock (Sept. 29, 2013 14:33:26)
- 974625sdn
-
New Scratcher
28 posts
New [scratchblocks] tag
test [test]
(test)
<test>
if <(test) = (test)>
say [test is a var]
if <<test> = <test>>
say [test is a green]
- clubby789
-
Scratcher
54 posts
New [scratchblocks] tag
say [Wow! Scratch 2.0 scripts in the forums!]
think [Where did I leave my sandwich?]
Last edited by clubby789 (Oct. 5, 2013 08:09:18)
- mobluse
-
Scratcher
100+ posts
New [scratchblocks] tag
Why are the boolean boxes rounded when they in Scratch have six straight sides?
- mobluse
-
Scratcher
100+ posts
New [scratchblocks] tag
Is it possible to change the language in which the code is generated from projects?
http://blob8108.github.io/scratchblocks2/generator/ <– How does one change generated language?
I think this would be useful to generate handouts in different languages.
http://blob8108.github.io/scratchblocks2/generator/ <– How does one change generated language?
I think this would be useful to generate handouts in different languages.
- davidkt
-
Scratcher
1000+ posts
New [scratchblocks] tag

My browser / operating system: Windows 8, Chrome 29.0.1547.76, Flash 11.8 (release 800)
Last edited by davidkt (Oct. 5, 2013 18:51:49)
- scimonster
-
Scratcher
1000+ posts
New [scratchblocks] tag
Why are the boolean boxes rounded when they in Scratch have six straight sides?It's rather difficult to create triangles in CSS with dynamic sizes.

Is it possible to change the language in which the code is generated from projects?I think multi-language ScratchBlocks are in the planning stage.
http://blob8108.github.io/scratchblocks2/generator/ <– How does one change generated language?
I think this would be useful to generate handouts in different languages.
- davidkt
-
Scratcher
1000+ posts
New [scratchblocks] tag
[b][i][u][s][big][small][list]And:
[*] [quote]:):|:(:D:o;):/:P:lol::mad::rolleyes::cool:My browser / operating system: Windows 8, Chrome 29.0.1547.76, Flash 11.8 (release 800)[/quote]
[/list][/small][/big][/s][/u][/i][/b]
when gf clicked
say [hi]
[/scratchblocks]
- blob8108
-
Scratcher
1000+ posts
New [scratchblocks] tag
@mobluse Sci is correct on both counts.
I'm currently working on translation support for the scratchblocks plugin. I guess it would make sense to do the generator after that, but it's not particularly urgent right now. Open an issue on Github if you want to remind me.
I'm currently working on translation support for the scratchblocks plugin. I guess it would make sense to do the generator after that, but it's not particularly urgent right now. Open an issue on Github if you want to remind me.
- blob8108
-
Scratcher
1000+ posts
New [scratchblocks] tag
i18n for Scratchblocks should be awesome.Yeah! The current plan is to have a localized blocks file for each language forum. That way the plugin only needs to download that language, which brings down the filesize somewhat.
- scratchisthebest
-
Scratcher
1000+ posts
New [scratchblocks] tag
The trick here would be translating the blocks server-side… what if someone spoke a different language and had JS turned off?i18n for Scratchblocks should be awesome.Yeah! The current plan is to have a localized blocks file for each language forum. That way the plugin only needs to download that language, which brings down the filesize somewhat.
Oh and can we have the //category=control thing on the fora too? I want to make a pretty rainbow like User:Scratchisthebest/Sandbox
also it could help in making, like, another block library *hint *hint*Weeeeee //cateory=control
- mobluse
-
Scratcher
100+ posts
New [scratchblocks] tag
Translating from a language to the json-file is new for other languages than English, but translation in the other direction must already be done in Scratch 2 so one could just wait until ST release the Scratch 2 source-code (since ActionScript is very similar to JavaScript). About doing it on a server one could use Node.js which is server-side JavaScript.i18n for Scratchblocks should be awesome.Yeah! The current plan is to have a localized blocks file for each language forum. That way the plugin only needs to download that language, which brings down the filesize somewhat.
- blob8108
-
Scratcher
1000+ posts
New [scratchblocks] tag
The trick here would be translating the blocks server-side… what if someone spoke a different language and had JS turned off?The plugin won't translate blocks between languages – it'll simply *recognise* blocks from more languages.
If you're in the German forum and write a German post containing GermN scratchblocks, it'll work. If you're English and read the post, there's no point the plugin showing you English scratchblocks because the rest of the post is still in another language.
can we have the //category=control thing on the fora too?Ssh, that's a secret!
It is in fact coming in an update, it just hasn't been deployed yet. Bug Lightnin, not me.

- blob8108
-
Scratcher
1000+ posts
New [scratchblocks] tag
Joooni sent me some code for translating scratchblocks client-side. I may wrap that up into a separate page, in the style of the generator, if anyone would find it useful.
- mobluse
-
Scratcher
100+ posts
New [scratchblocks] tag
Joooni sent me some code for translating scratchblocks client-side. I may wrap that up into a separate page, in the style of the generator, if anyone would find it useful.I think it would be useful for writing books and making handouts in other languages.
I would be most interested in Swedish. There is a translation bug in Scratch 2 in Swedish: they call the math-function ln (natural logarithm) for Inuti (inside). This is probably because someone read ln as In (LN vs IN). I and several others have reported this bug in the translation system but it has not been corrected yet.
- blob8108
-
Scratcher
1000+ posts
New [scratchblocks] tag
I think it would be useful for writing books and making handouts in other languages.Sure. But that can definitely be a separate tool, then.
EDIT: Would a language option for the generator be sufficient for your purpose?
Last edited by blob8108 (Oct. 8, 2013 12:45:11)
- mobluse
-
Scratcher
100+ posts
New [scratchblocks] tag
I think it would be useful for writing books and making handouts in other languages.Sure. But that can definitely be a separate tool, then.
EDIT: Would a language option for the generator be sufficient for your purpose?
The best for making books, magazines and handouts would be a printer friendly page w/o frames (and things at the side that makes the page narrower) and where the code could be as wide as it has to be (since expressions in Scratch can be rather wide). And there should be no check-boxes by the blocks. I imagine one would make the code as big as it can be using Ctrl++ and then make a screenshot of that window using e.g. GIMP. Maybe there is some tool that can make an image of a webpage (generated by JavaScript) that is too big for the screen. It would also be good if the colors of the blocks were configurable so that one could make a cheaper book with shades of gray.











