Voting starts in March for the Drupal Association Board election.
On a regular page load in Drupal 8, the system currently never enters a new context. However, the config context system starts out with a blank slate and if locale module is enabled, it reacts to the Kernel request event and take the language negotiation results into the context. It does not clear the context's override cache, so any config loaded prior to that will not be override-able. Such as the site name for a very trivial example.
- Install http://drupal.org/project/config_translation
- Add at least one foreign language
- Translate your site name (Regional and language > Configuration translation > Site information > Translate) to the desired language
- Switch the page to said desired language
- Site name will not be translated
1. Re-initialize the context when such a crucial thing changes about it as its language. The user context already re-initializes the context when an account is set on it.
2. Make re-initializing the context clear the existing overrides cache on the context.
Note that this also let us remove some duplicate code, since we can actually reuse the existing configContext() response logic, which re-initializing the context will fire.
FAILED: [[SimpleTest]]: [MySQL] 53,181 pass(es), 1 fail(s), and 0 exception(s). View
PASSED: [[SimpleTest]]: [MySQL] 53,236 pass(es). View
FAILED: [[SimpleTest]]: [MySQL] 53,090 pass(es), 1 fail(s), and 0 exception(s). View