Postponed (maintainer needs more info)
Project:
Drupal core
Version:
main
Component:
language system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2011 at 09:52 UTC
Updated:
6 Jan 2026 at 19:31 UTC
Jump to comment: Most recent
Comments
Comment #1
gábor hojtsyActually marking postponed.
Comment #2
damienmckennaTag.
Comment #3
attiks commentedsub
Comment #4
podaroksubscribe
Comment #5
lsmith77 commentedFYI: you guys might want to have a look at this PR and throw in your POV
https://github.com/symfony/symfony/pull/2227
Comment #6
gábor hojtsyOnce #1279942: Create Http context handler lands, we'll have a getValue('http:languages') to get the language list, our selection logic is still needed since there is no comparable solution in Symfony. Retitling for that. #1260918: Convert language globals to contexts is also related.
Comment #7
plach@Gabor:
Do you mean we will have to retain the logic actually implemented in http://api.drupal.org/api/drupal/includes--locale.inc/function/locale_la... but get the list of accepted languages from the HTTP context handler?
Comment #8
gábor hojtsyYes, since Symfony does not seem to have comparable logic. Unless we submit our logic to symfony that is and get it committed upstream. I'm assuming we work off of what we have so far, in which case, we should just use the information from the http context.
Comment #9
lsmith77 commented@Gabor: I see 3 solutions:
1) if you can make the case that the Drupal correct and the current Symfony2 approach violates the HTTP spec, we will certainly need to have a look at how to fix that in Symfony2
2) if not you can check if it would be possible to migrate to the Symfony2 approach (from my understanding both approaches are "valid")
3) you could simple extend the Request from Symfony2 and override that specific method with your parsing rules
In any case I would move the logic to the Request, either by getting it changed upstream, by adopting the current upstream approach or by extending upstream.
Comment #10
gábor hojtsy@lsmith77: well, we are getting that data from the HTTP context in #1279942: Create Http context handler, so the responsibility of providing that data is there. I think we discussed and made clear earlier that Drupal is *much* closer to the W3C / HTML5 standards than Symfony. As a web based system, we consider the W3C / HTML5 language codes to adhere to and using UNIX language codes seem like backwards to the web environment where we are. I'm not seeing that where would be a good case to go against W3C / HTML5 recommendations.
Comment #11
lsmith77 commented@Gabor: could you open a ticket on the symfony repository and state your case there. then we can look with the other symfony developers how we can best improve things.
Comment #12
gábor hojtsy@lsmith77: Submitted https://github.com/symfony/symfony/issues/2468.
Comment #13
gábor hojtsyTagging for base language system.
Comment #14
gábor hojtsyTagging for language negotiation too.
Comment #14.0
gábor hojtsyAdd parent issue link
Comment #15
mgiffordThis shouldn't be postponed any longer as far as I understand, since #1279942: Create Http context handler is in.
Comment #16
Crell commentedRefiling. May be won't fix at this point, since this issue goes all the way back to the ill-fated "context API". I defer to Gabor on what to do with it.
Comment #31
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #32
smustgrave commentedwanted to bump this one more time :)