Skip to content
Snippets Groups Projects
Commit df525695 authored by Allen Shaw's avatar Allen Shaw Committed by colemanw
Browse files

Added support for 'localize' param in CRM_Core_PseudoConstant::get(). CRM-12464

----------------------------------------
* CRM-12464: Search improvements in 4.4
  http://issues.civicrm.org/jira/browse/CRM-12464
parent ecc63dd6
No related branches found
No related tags found
No related merge requests found
......@@ -470,6 +470,10 @@ class CRM_Core_PseudoConstant {
while ($dao->fetch()) {
self::$cache[$cacheKey][$dao->id] = $dao->label;
}
if (CRM_Utils_Array::value('localize', $params)) {
$i18n = CRM_Core_I18n::singleton();
$i18n->localizeArray(self::$cache[$cacheKey]);
}
return self::$cache[$cacheKey];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment