-
Notifications
You must be signed in to change notification settings - Fork 1
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
publishing maintenance release of sim makes previous translations unavailable #101
Comments
Assigning to myself, since I will be taking over maintenance of Rosetta, and I will work with @aaronsamuel137 to resolve. |
Can someone summarize what's causing the problem? |
The problem is that grunt deploy-production by default causes build-server to build locales=en. Therefore, when a new version is deployed, "latest" is changed to point to the new version directory, which only has an english translation in it. However, we don't want to build locales=* because that will build everything that has strings in babel. We want it to build everything that has been translated already, which is what @jbphet and I implemented. We've changed the default of grunt deploy-production to have this behavior, however maintenance releases of sims that don't have the latest chipper will need to use This may not be the best solution, but it's the best we could think of to avoid sims having to patch the latest chipper. One of the main confusing points is that |
@aaronsamuel137 wrote:
Recommendations: |
@aaronsamuel137 said the new way to deploy to the production server is just "grunt deploy-production", it will automatically do all of the correct locales. @jbphet suggested patching old sims so they don't have different locales=* behavior, which was required by older versions of chipper. @pixelzoom said it would be a lot of work to update last 10 deployed sims to use latest chipper. @samreid asked: does grunt deploy-production just invoke the build server? The answer is yes, but it uses the local shas on your machine. So you build it once on your machine with @pixelzoom asked: why does grunt deploy-production need to know what locales to build? Can't it just build the appropriate locales? Or if no options provided, then build all of the locales on the site? @aaronsamuel137 said: the old behavior is just passing _en, so we could make a hack that makes it so _en builds all locales. But @jbphet and @aaronsamuel137 agreed that was too confusion, even though it would have the correct behavior. The locales=* would work perfectly for previous sims. Ultimately we could get rid of locales=* after all sims are "recent enough". @pixelzoom was wondering if you would ever want to just build a specific subset of locales? @jbphet not aware of a case where that is true. Cannot do that anymore, deploy-production means to deploy everything @jbphet points out that maintenance releases are rare, therefore it may not be worth the effort to retrofit old sims. Just use Consensus @pixelzoom reaffirms that we must document the --locales option in |
I've made this change. Want to review @jbphet? |
…bout the unique behavior of older versions of chipper, see phetsims/perennial#8 and phetsims/rosetta#101
Reviewed. Other issues have come up related to this, such as phetsims/perennial#8, but we have a workable solution. Closing. |
I published a maintenance release of Friction to add QA credits a few days ago. I just checked the translations, and several are not available. For instance, if I attempt to access the Danish translation, I see this:
If I change the URL to point to https://phet.colorado.edu/sims/html/friction/1.2.0/friction_da.html instead, the sim is found. So, it looks like translations are not being regenerated when a maintenance release is made.
The text was updated successfully, but these errors were encountered: