Open matholt opened 9 years ago
I didn't get it, the bundles are not being loaded at the first time you acess a page?
This seems to be a race condition and only a few places in Mamute are affected by this. The problem:
messages.js
)affected components:
tags-manager.js
(we could pass it as data-attribute inside the JSP/tags and make the JS not use Messages.get() for this)question-warnings.js
shows an error message at the topEverything else seems to be inside an event, which means that these places will work if they are called after message loading has finished (obviously there will be that fallback text shown while the messages are still loading - but that's expected).
I would assume that in @matholt's case some network / server configuration issue prevented it from working correctly (he clicked a button with class .requires-karma is handled by links-behaviour.js
which calls Messages.get() only inside an event).
We've seen a couple cases where a mamute-messages.properties value is not evaluated until you refresh the page.
We think this may occur after first starting the app.
An example would be the up-vote arrow for a user with no reputation showing: ???need.to_have??? 10 ???repuation_score???!