zooniverse / penguinwatch

Deprecated - moved to www.zooniverse.org/projects/penguintom79/penguin-watch
http://www.penguinwatch.org
Apache License 2.0
3 stars 2 forks source link

Task details popups are always in English #79

Closed eatyourgreens closed 9 years ago

eatyourgreens commented 9 years ago

Task detail language strings don't refresh when the language changes, so details popups eg. 'Other animals' are always in the default language, en-US.

yshish commented 9 years ago

Just a suggestion, but couldn't it be the same problem as was in the PP? There was the pop-up in the classification in English too. I think @srallen solved it?

srallen commented 9 years ago

It's was a race condition in Plankton Portal. The DOM was being loaded before the translations. The t7e library does have a refresh method, so I called that after the render to fix it for the inline tutorial. Check out https://github.com/zooniverse/plankton/commit/76f12461f8714b0de8bcd83496077900d275c3c3#diff-673b8cdd3d405beaed45e508b5d74e54R126

eatyourgreens commented 9 years ago

Thanks. It's more-or-less the same problem here. Those strings are stored in the project config, so they aren't in the DOM when the language changes. Calling t7e.refresh() after the popup opens fixes it.