Problem/Motivation
install_begin_request()
checks for the existance of $GLOBALS['config']['locale.settings']['translation.path']
to set up the correct string translation service.
This, however, is not the correct way to specify a global configuration override. I.e. even if you set that global, \Drupal::config('locale.settings')->get('translation.path')
will return the default value.
Proposed resolution
Check for $GLOBALS['config']['locale.settings']['translation']['path']
instead.
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#5 | 2360841-5.patch | 730 bytes | tstoeckler |
Comments
Comment #1
tstoecklerIn theory something this weird would certainly require tests but I'm not sure we can test that to be honest. Here's a patch for starters.
Comment #3
tstoecklerRolling patches is hard... :-/
Comment #5
tstoecklerIs there a Guiness Book of World Records entry for failing hardest at life? I would like to put my name in...
Comment #6
tstoecklerSo in theory, since the container was set up before this, this should be able to use \Drupal::config() properly, but I couldn't be bothered to investigate that. Let's just fix the bug first.
Comment #7
dawehnerTesting that here is just damn hard, if not impossible.
Let's get this fixed so people can use it.
Comment #8
alexpottYep testing this is damn hard.
Committed f866905 and pushed to 8.0.x. Thanks!
Comment #10
Gábor Hojtsy