Problem/Motivation
\Drupal\Core\Language\LanguageManager::getDefaultLockedLanguages
creates two language instances,
one for undefined, one for not specified. Sadly Language::__construct calls out to getStandardLanguageList() in order to figure out whether those langauges
have a direction, which is pointless, they will never have one.
Proposed resolution
Specify the default direction, LTR, for those two languages.
Remaining tasks
User interface changes
API changes
Data model changes
Beta phase evaluation
Issue category | Task because its not a feature or a strict bug |
---|---|
Issue priority | Normal because the impact is not that high performance wise |
Disruption | No disruption just doing a bit less work |
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff.txt | 1.1 KB | sorressean |
#9 | language-2542304-9.patch | 620 bytes | sorressean |
| |||
#4 | language-2542304-3.patch | 908 bytes | sorressean |
Comments
Comment #1
dawehnerYou could safe something like:
Comment #2
dawehnerNote: 245 \mu s out of 140ms for /node/1, its small but its a small step.
Comment #3
sorressean CreditAttribution: sorressean at Acquia commentedComment #4
sorressean CreditAttribution: sorressean at Acquia commentedAt this point "small" is still an improvement and I'm happy to take that.
With that said, here's a patch. :)
Comment #5
sorressean CreditAttribution: sorressean at Acquia commentedComment #6
dawehnerThank you!
Comment #7
alexpottLet's add this once to the $locked_language variable.
Comment #8
dawehnerGood catch alex!
Comment #9
sorressean CreditAttribution: sorressean at Acquia commentedDidn't even catch that, thanks!
Comment #10
sorressean CreditAttribution: sorressean at Acquia commentedComment #11
dawehnerPerfect
Comment #12
alexpottCommitted fe5ed1a and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to the issue summary.
Comment #14
Gábor Hojtsy