l10n.js - Reload when logging in as new user
authorColeman Watts <coleman@civicrm.org>
Thu, 31 Jan 2019 19:30:43 +0000 (14:30 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 31 Jan 2019 19:30:43 +0000 (14:30 -0500)
CRM/Core/Resources.php

index 600bb03e3adea158af6ed175fcc634a53c925cd5..21401e24e6a93fad0499ece7cf64dc669bb1785f 100644 (file)
@@ -603,7 +603,11 @@ class CRM_Core_Resources {
 
       $tsLocale = CRM_Core_I18n::getLocale();
       // Dynamic localization script
-      $this->addScriptUrl(CRM_Utils_System::url('civicrm/ajax/l10n-js/' . $tsLocale, array('r' => $this->getCacheCode())), $jsWeight++, $region);
+      $args = [
+        'r' => $this->getCacheCode(),
+        'cid' => CRM_Core_Session::getLoggedInContactID(),
+      ];
+      $this->addScriptUrl(CRM_Utils_System::url('civicrm/ajax/l10n-js/' . $tsLocale, $args, FALSE, NULL, FALSE), $jsWeight++, $region);
 
       // Add global settings
       $settings = array(