Closed (fixed)
Project:
Drupal for Facebook
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2011 at 05:13 UTC
Updated:
3 Jan 2013 at 20:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
szantog commentedand patch.
Comment #2
mrf commentedYes, the global $language variable should be the first and often the only source of language information on a Drupal site. If that doesn't return anything useful other sources like user language or the provided language from the Facebook signed request should be consulted.
I think there is another bug with the different available language options being set by FB, but wasn't able to pin down where that was supposed to happen so had to variable_set the options myself.
This patch is a crucial part of fixing language selection though, I came up with an identical patch in order to get language negotiation working correctly locally.
Comment #3
Dave Cohen commentedThanks for reviewing and bringing back to my attention.