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

Add support for dynamic locale #140

Closed
pixelzoom opened this issue Aug 30, 2022 · 10 comments
Closed

Add support for dynamic locale #140

pixelzoom opened this issue Aug 30, 2022 · 10 comments

Comments

@pixelzoom
Copy link
Contributor

... similar to what was done in phetsims/natural-selection#319.

@pixelzoom
Copy link
Contributor Author

This sim is next on the priority list, so labeling as high.

@pixelzoom
Copy link
Contributor Author

I published 1.3.0-dev.1 for brands=phet,phet-io as a baseline before starting this work.

pixelzoom added a commit that referenced this issue Aug 30, 2022
pixelzoom added a commit that referenced this issue Aug 30, 2022
pixelzoom added a commit that referenced this issue Aug 30, 2022
pixelzoom added a commit that referenced this issue Aug 30, 2022
pixelzoom added a commit that referenced this issue Aug 30, 2022
pixelzoom added a commit that referenced this issue Aug 30, 2022
pixelzoom added a commit that referenced this issue Aug 30, 2022
pixelzoom added a commit that referenced this issue Aug 30, 2022
pixelzoom added a commit that referenced this issue Aug 30, 2022
pixelzoom added a commit that referenced this issue Aug 30, 2022
pixelzoom added a commit that referenced this issue Aug 31, 2022
@pixelzoom
Copy link
Contributor Author

Good progress on this today. Remaining work is indicated by TODO comments in the code.

@pixelzoom
Copy link
Contributor Author

@arouinfar this is ready for review. Unlike Natural Selection and Geometric, I did not instrument additional Text/RichText nodes, and all translated StringProperties are therefore not discoverable by inspecting Text/RichText elements in Studio. If you want additional Text/RichText instrumented, please identify them.

@pixelzoom
Copy link
Contributor Author

Oops, I still have some layout work to do here. Assigning back to me.

pixelzoom added a commit that referenced this issue Sep 1, 2022
pixelzoom added a commit that referenced this issue Sep 1, 2022
@pixelzoom
Copy link
Contributor Author

OK, ready for review.

@arouinfar
Copy link
Contributor

@pixelzoom I reviewed the tree in master, and things are looking good. I see linked properties back to StringProperties where I would expect, and the dynamic layout seems good.

The only odd case I found was the screen icons. The atom name can spill outside of the bounds in the iconic version, but that doesn't happen to the atoms in the play area.

image

@pixelzoom
Copy link
Contributor Author

Fixed, back to @arouinfar to verify. Feel free to close if it looks OK.

@pixelzoom pixelzoom assigned arouinfar and unassigned pixelzoom Sep 12, 2022
@arouinfar
Copy link
Contributor

Thanks @pixelzoom, looks good!

image

@pixelzoom
Copy link
Contributor Author

Commits above were incorrectly tagged for this issue, and should have been tagged for #141.

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

No branches or pull requests

2 participants