Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-7191

Inherit CMS Language not working with multilingual installation

    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...

        Attachments

          Activity

            People

            • Assignee:
              sushant Sushant Paste
              Reporter:
              thomas.feichter Thomas Feichter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: