CRM-19896 - customTranslateFunction not mapped
authorfliespl <a.rzadkowolski@gmail.com>
Sun, 5 Feb 2017 12:19:02 +0000 (13:19 +0100)
committerGitHub <noreply@github.com>
Sun, 5 Feb 2017 12:19:02 +0000 (13:19 +0100)
`customTranslateFunction` is not defined in `getPropertyMap` method with `MagicMerge` class.
It causes Custom Translation Function to not be taken into consideration at all while translating strings.
Solution:
adding `customTranslateFunction' => array('setting'),` key to `getPropertyMap` array resolves the issue.

CRM/Core/Config/MagicMerge.php

index 72fe7827ed6ccad5b1f9f2edd91b1b7972c78455..7193f930072bf688684ccfb4cb7de8d64bbe7cdc 100644 (file)
@@ -124,6 +124,7 @@ class CRM_Core_Config_MagicMerge {
       'backtrace' => array('setting'),
       'contact_default_language' => array('setting'),
       'countryLimit' => array('setting'),
+      'customTranslateFunction' => array('setting'),
       'dateInputFormat' => array('setting'),
       'dateformatDatetime' => array('setting'),
       'dateformatFull' => array('setting'),