jmoenig / Snap

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
1.52k stars 748 forks source link

BJC Sparks XML starter file won't load in Spanish #3330

Open maryfries opened 8 months ago

maryfries commented 8 months ago

Hi All, :)

If I have Snap set to Spanish, this project file won't load. What could be causing that?

It's from Sparks 1.4.1 exercise 2.

Thanks and happy (almost) spring, Mary

jguille2 commented 8 months ago

Hi Mary! Your problem is with the "Stage" translation.

Do you edit that xml by hand? Snap! projects have a "custom" name for the stage. Even, if you don't customize it, it store that "default". You will see something like <stage name="Stage"...> But if your project has not that name (is only <stage width=....>) then it takes the default name depending the language you are using. But then, all your blocks like "((left) of (Stage))" will be wrong... because your stage has other name (Escenario).

Then, add that tag (name = "Stage") or just open and save the project from the IDE.

Joan

maryfries commented 8 months ago

Hi Joan! I hope spring is coming along in Barcelona. :)

Thanks for responding. I don't believe I edited the XML on this one by hand, and interestingly, it's loading fine today (even if I have Snap set to Spanish). I'll let you know if it happens again.

(BTW, I had the URL wrong when I posted this issue, but I've corrected it now.)

Thanks and happy almost spring, Mary

jguille2 commented 8 months ago

Hi Mary. I don't know which URL you have change (I guess you are creating the Spanish version of Sparks) but I see the same I reported:

Joan