-
Notifications
You must be signed in to change notification settings - Fork 365
pt-BR scratch blocks error #400
pt-BR scratch blocks error #400
Comments
FYI @lgmoneda |
I’m not sure… But I suspect the language in the project frontmatter needs to be set to UPDATE: Yeppers – ^^ it’s this ^^ |
That sounds wrong. Locales use hyphens, not underscores. |
ISO 15897 and BCP 47 seem to disagree with one another on this point.
It comes from the language segment of the URLs used here: e.g.: Scratchblocks adheres to the same standard: …so it has propagated from there. |
So, which project front matter do you think needs updating? |
Yes. In most cases you get away with it, because of this horrible Another option would be to add another hack to this template, to substitute underscores for hyphens (see RaspberryPiFoundation/pandoc_scratchblocks#10.) The least hacky solution might be to add a |
The specific example you mentioned above (Ghost Busters?) looks fixed, as do many other scratch block instances: http://projects.codeclubworld.org/pt-BR/01_scratch_01/03/Ghostbusters.html However, some are not: http://projects.codeclubworld.org/pt-BR/01_scratch_01/04/ChatBot.html |
Paint Box shows that it's only certain blocks that are being missed: |
This is a separate bug. It’s because this: …doesn’t match this: They probably both need updating. |
Merging the following should fix the problem:
As an alternative to the last of these, the submodule could just be updated. Also, merging CodeClub/scratchblocks2#4 will update http://scratchblocks.codeclub.org.uk/translator/ so it’s in sync. |
Oops I didn’t mean to trigger this to close! It should be fixed, but I guess lesson_format will need to be re-run for the changes to take effect. |
Not to worry, Rik and I are keeping an eye on it tomorrow and we will re-open if there's still an issue :) Thanks! |
This doesn’t seem to be fixed. The example @martinpeck posted above, for instance: It works on scratchblocks translator, though. I think the current master of lesson_format should work, so I guess the version on heroku needs updating? |
Nice one – looks fixed to me! 🍰 |
Practically all the scratch blocks in the new pt-BR projects are red, but the translations seem to be correct according to the scratch translation tool. I thought perhaps it's because these are the first pt-BR projects and that all of the blocks are turning out red, but then I found a couple that appear in Rock Band in the right colour so that's not the case. I guess @andylolz will take a one quick look at this and tell me the obvious error as usual :) No pressure though!
http://scratchblocks.codeclub.org.uk/translator/#script=when%20flag%20clicked%0A%09%09forever%0A%09%09%09hide%0A%09%09%09wait%20(1)%20secs%0A%09%09%09show%0A%09%09%09wait%20(1)%20secs%0A%09%09end&from=en&to=pt_BR
The text was updated successfully, but these errors were encountered: