Discuss Scratch

khanning
Scratcher
34 posts

Scratch translation extension block

Hi everyone,

I made a simple translation block using the Scratch 2.0 experimental extensions. It uses the yandex.com translate API to translate text between 30 different languages!

https://www.youtube.com/watch?v=0cTEot5H-Y4

To try the extension:
1. Open your Scratch project
2. In the editor window, hold the “Shift” key and click the “File” menu
3. Click “Import Experimental Extension”
4. Type "http://khanning.com/translate_extension.js
5. Now you can access the translation blocks under the ”More Blocks“ category

The extension tries to detect the browsers default language and assigns it to the ”default language“ block. I included a ”set default language" block in case it was not properly detected.

There is a slight bug with experimental extensions, so for now you have to re-import the extension each time you load your project.

You cannot share Scratch 2.0 projects that contain experimental extensions currently. However, you can download the .sb2 file, share it with someone, and instruct them on how to import the extension.

http://github.com/khanning/scratch-translate-extension
LiquidMetal
Scratcher
100+ posts

Scratch translation extension block

Cool!

Are there plans for allowing the sharing of such projects in the future?
NobleReign
Scratcher
46 posts

Scratch translation extension block

khanning wrote:

Hi everyone,

I made a simple translation block using the Scratch 2.0 experimental extensions. It uses the yandex.com translate API to translate text between 30 different languages!

https://www.youtube.com/watch?v=0cTEot5H-Y4

To try the extension:
1. Open your Scratch project
2. In the editor window, hold the “Shift” key and click the “File” menu
3. Click “Import Experimental Extension”
4. Type "http://khanning.com/translate_extension.js
5. Now you can access the translation blocks under the ”More Blocks“ category

The extension tries to detect the browsers default language and assigns it to the ”default language“ block. I included a ”set default language" block in case it was not properly detected.

There is a slight bug with experimental extensions, so for now you have to re-import the extension each time you load your project.

You cannot share Scratch 2.0 projects that contain experimental extensions currently. However, you can download the .sb2 file, share it with someone, and instruct them on how to import the extension.

http://github.com/khanning/scratch-translate-extension

you can you just put the blocks containing the extension and put it in the backpack then share it w/o extensions then add the extension stuff where they were when shared

when green flag clicked
say [i broke my siggy :(] for (2) secs
Dmith
Scratcher
1000+ posts

Scratch translation extension block

Yandex.Translater? 0_o Hmm…
andrewTechX44
Scratcher
81 posts

Scratch translation extension block

I have trouble! My computer is not working. @khanning please do not let me down

if <not <Black Lives matter>> then
add [Black Lives Matter] to [Rules for cops v]
end
TheScratchUser52
Scratcher
1 post

Scratch translation extension block

how do you make an extension block that translates, because I did the ‘hold down shift key while clicking file menu’ and it did not work!
ScratchDiogoh
Scratcher
1000+ posts

Scratch translation extension block

TheScratchUser52 wrote:

how do you make an extension block that translates, because I did the ‘hold down shift key while clicking file menu’ and it did not work!
Plase dont Necropost

+1700 Bad Posts

Powered by DjangoBB