* @return array
*/
private function _gettingStarted() {
- $value = Civi::cache('community_messages')->get('dashboard_gettingStarted');
+ $tsLocale = CRM_Core_I18n::getLocale();
+ $key = 'dashboard_gettingStarted_' . $tsLocale;
+ $value = Civi::cache('community_messages')->get($key);
if (!$value) {
$value = $this->_getHtml($this->gettingStartedUrl());
if ($value) {
- Civi::cache('community_messages')->set('dashboard_gettingStarted', $value, (60 * 60 * 24 * self::CACHE_DAYS));
+ Civi::cache('community_messages')->set($key, $value, (60 * 60 * 24 * self::CACHE_DAYS));
}
}
}
else {
$config = CRM_Core_Config::singleton();
+ $tsLocale = CRM_Core_I18n::getLocale();
$vars = [
'{ver}' => CRM_Utils_System::version(),
'{uf}' => $config->userFramework,
'{php}' => phpversion(),
'{sid}' => self::getSiteID(),
'{baseUrl}' => $config->userFrameworkBaseURL,
- '{lang}' => $config->lcMessages,
+ '{lang}' => $tsLocale,
'{co}' => $config->defaultContactCountry,
];
return strtr($url, array_map('urlencode', $vars));