Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » Specifying language dependent block titles?
- caesarion
-
New Scratcher
15 posts
Specifying language dependent block titles?
Is there any way to make an extension “language independent”, i.e. can I somehow check the language of the scratch such that I can set block titles depending on the currently used language?
- itchy20
-
Scratcher
100+ posts
Specifying language dependent block titles?
As far as I know, this is not an available feature. It would be nice if a resource file mechanism could be put in place to support multiple languages (ScratchX team - hint, hint
)
)- birdbraintech
-
New Scratcher
8 posts
Specifying language dependent block titles?
Would love to see this ability in both Scratch X and HTTP extensions for Scratch offline. Official extensions like the Lego WeDo do have blocks that translate.
- khanning
-
Scratcher
34 posts
Specifying language dependent block titles?
This is not currently possible, but it has been brought up before. You should file this as an issue (feature request) on the Github repo for ScratchX.
https://github.com/llk/scratchx/issues
For the Arduino extension, we're using a query string (lang) to specify the language.
http://khanning.github.io/scratch-arduino-extension/#languages
All of the block translations are defined in the arduino_extension.js file.
https://github.com/khanning/scratch-arduino-extension/blob/master/arduino_extension.js#L543
It's not ideal, but it works.
https://github.com/llk/scratchx/issues
For the Arduino extension, we're using a query string (lang) to specify the language.
http://khanning.github.io/scratch-arduino-extension/#languages
All of the block translations are defined in the arduino_extension.js file.
https://github.com/khanning/scratch-arduino-extension/blob/master/arduino_extension.js#L543
It's not ideal, but it works.
Last edited by khanning (Aug. 3, 2015 00:55:02)
- bobbybee
-
Scratcher
1000+ posts
Specifying language dependent block titles?
This is not currently possible, but it has been brought up before. You should file this as an issue (feature request) on the Github repo for ScratchX.
https://github.com/llk/scratchx/issues
For the Arduino extension, we're using a query string (lang) to specify the language.
http://khanning.github.io/scratch-arduino-extension/#languages
All of the block translations are defined in the arduino_extension.js file.
https://github.com/khanning/scratch-arduino-extension/blob/master/arduino_extension.js#L543
It's not ideal, but it works.
That's…… icky.
- caesarion
-
New Scratcher
15 posts
Specifying language dependent block titles?
Hey khanning,
this is great.
thx
this is great.
thx
- Discussion Forums
- » Developing Scratch Extensions
-
» Specifying language dependent block titles?




