Comments (13)
I'm not sure, maybe it should be deleted or maybe we should change the file names to energy-skate-park_*.json because when we do port that sim, we'll want these strings?
Maybe we should ask @samreid since he worked on these sims, or @jonathanolson since he originally brought the strings over from the Java.
from babel.
For now I think the directory should go. I would expect that once Energy Skate Park is ported (which could be a long while from now), the strings would be migrated and ESPB would draw them from ESP.
from babel.
I suspect that if there is ever a non-basics version ("Energy Skate Park"), then these strings and most of the JS code will move from energy-skate-park-basics to energy-skate-park, much like the relationship between other "basics" sims (e.g., ph-scale and ph-scale-basics), or sims that are a single screen from some other sim (e.g. beers-law-lab and concentration). What we don't want is a situation like we still have with fluid-pressure-and-flow and under-pressure (see phetsims/fluid-pressure-and-flow#266).
from babel.
@aaronsamuel137 What will be the repercussions of trying to move string files from energy-skate-park-basics to energy-skate-park in the future? Won't that cause problems? What happens if I'm translating the published version of energy-skate-park-basics, and it expects strings to be written to babel/energy-skate-park-basics/, but those strings have been moved to babel/energy-skate-park/ in master?
from babel.
Currently, the energy-skate-park
things can be deleted and we must keep the energy-skate-park-basics
things. When we create energy-skate-park in the future, we can decide where most strings will live.
from babel.
Removed energy-skate-park strings. Closing.
from babel.
Reopening. I'd like to hear about the question I asked in #6 (comment).
from babel.
I'd have to test this to know for sure, but I think it might work fine.
In phetsims/rosetta#69 I just made so Rosetta uses the same sha as the published sim when looking for the English string files, so even if these change in master, Rosetta will go back to look before the strings were moved.
Babel will continue to have strings for the old version until it is republished.
Again, I'd have to test this to be sure, there might be things I'm not thinking of.
from babel.
I'd have to test this to know for sure, but I think it might work fine.
Are you saying that Rosetta will somehow know that the strings have been moved from energy-skate-park-basics to energy-skate-park in 'master', and will put them in the correct file?
from babel.
Rosetta will put the strings back where it found them. So there will be cases where the strings in babel are different from the strings in ESPB master.
Here's a sequence of events that could happen:
- ESPB is published with all of the strings in ESPB.
- Strings are moved to from ESPB master to ESP master.
- Translator goes to translate ESPB. Because it uses the sha from the published version, it still sees the strings in ESPB, not ESP.
- Because Rosetta sees the old strings in the published version, those are the keys that are pushed to babel/energy-skate-park-basics. Now master and babel are out of sync.
- ESPB is republished. Strings are now pulled from ESP master. The next time it is translated, the translations are push to babel/energy-skate-park instead of babel/energy-skate-park-basics since that is where it pulled the strings from. Babel and master are back in sync.
Does that make sense/answer your question?
from babel.
Steps 4 & 5 are what concerns me. Unless someone (a PhET someone) moves all translations from energy-skate-park-basics to energy-skate-park, they will not appear in Rosetta and will need to be retranslated. If there are any near-term plans to port energy-skate-park, then perhaps it would be worth moving the strings sooner rather than later?
I'll label this for discussion at developer meeting.
from babel.
The issue mentioned in #6 (comment) is more general than sim-to-sim dependencies. Anytime that a string is moved from one repo to another, we will need to either (a) lose the translation, or (b) move all of its translations that currently exist, and that are added up to the time that the sim is republished. In the case of (b), this will be difficult to keep track for sims, very difficulty to keep track of for common-code strings.
from babel.
9/17/15 dev meeting
• Try to avoid having this happen
• Move things manually when we have to
• As part of S2105R milestone, identify any strings in sims that should move before the sim is redeployed. (DONE)
from babel.
Related Issues (17)
- create an example sim that shows representative string types HOT 7
- update values HOT 2
- What license should this repo have? HOT 1
- clean up autoport HOT 5
- Delete auto-ported strings, update checklist to reflect new process HOT 2
- branch: embedding-mark-fix HOT 2
- Fix for string patterns that were erroneously translated. HOT 12
- branch: tests HOT 5
- Unable to push to babel HOT 10
- Address some potential bugs in translations HOT 3
- move translations to babel HOT 7
- babel has no LICENSE file (even though the README links to it) HOT 1
- bogus files, probably due to testing HOT 2
- Can developers commit to babel? HOT 6
- Convention for string keys? HOT 16
- delete babel/autoport/ subdirectories for sims that have been published HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel.