Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.3.0
-
Fix Version/s: 3.3.2
-
Component/s: Internationalisation
-
Labels:None
Description
I am running a multilingual CiviCRM installation (3.3.0) on Drupal 6.19 with the "Inherit CMS Language" option activated.
When switching Drupal to italian language, CiviCRM is showing content in the default language.
The problem is that CRM_Utils_System::getUFLocale() in CRM/Core/BAO/Setting.php does not return any value if it has to check the database for the proper xx_YY locale since $dbLocale is not set yet.
Setting $dbLocale to the default language before trying to get xx_YY locale and setting it to the correct value afterward is fixing this problem for me.
Since it seems that option_value.label and option_value.description are not used during this step, it shouldn't have any side effects.
see the attached patch file...