CRM-13064
authorDonald A. Lobo <lobo@civicrm.org>
Fri, 2 Aug 2013 21:31:56 +0000 (14:31 -0700)
committerDonald A. Lobo <lobo@civicrm.org>
Sun, 11 Aug 2013 17:12:01 +0000 (10:12 -0700)
----------------------------------------
* CRM-13064: Localization is broken
  http://issues.civicrm.org/jira/browse/CRM-13064

CRM/Core/Config.php
CRM/Core/Config/Defaults.php
CRM/Core/I18n.php

index 6ee9c2f7b1ee81f584c84a0ae63b19f81322d115..f6442fb9e01451581744af6a31f91f1606d3e27d 100644 (file)
@@ -193,10 +193,16 @@ class CRM_Core_Config extends CRM_Core_Config_Variables {
         //initialize variables. for gencode we cannot load from the
         //db since the db might not be initialized
         if ($loadFromDB) {
+          // initialize stuff from the settings file
+          self::$_singleton->setCoreVariables();
+
           self::$_singleton->_initVariables();
 
-          // retrieve and overwrite stuff from the settings file
-          self::$_singleton->setCoreVariables();
+          // I dont think we need to do this twice
+          // however just keeping this commented for now in 4.4
+          // in case we hit any issues - CRM-13064
+          // We can safely delete this once we release 4.4.4
+          // self::$_singleton->setCoreVariables();
         }
         $cache->set('CRM_Core_Config' . CRM_Core_Config::domainID(), self::$_singleton);
       }
index 52d49deab8fc97bdf56d327339cbe43806a367a0..07156caae8f28239ab066325d4cac8ba27cdeeae 100644 (file)
@@ -41,6 +41,7 @@
  *
  */
 class CRM_Core_Config_Defaults {
+
   function setCoreVariables() {
     global $civicrm_root;
 
index 56f3b39ede2624828953e010d382373a9dd481e8..991dcd58ffe53c1b973adabdb5794e0b736ef52b 100644 (file)
@@ -35,7 +35,8 @@
 class CRM_Core_I18n {
 
   /**
-   * A PHP-gettext instance for string translation; should stay null if the strings are not to be translated (en_US).
+   * A PHP-gettext instance for string translation;
+   * should stay null if the strings are not to be translated (en_US).
    */
   private $_phpgettext = NULL;