Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maryfries opened this issue Mar 12, 2024 · 3 comments
Open

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

maryfries opened this issue Mar 12, 2024 · 3 comments

Comments

@maryfries
Copy link

maryfries commented Mar 12, 2024

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants