diff --git a/classes/EventRegistry.php b/classes/EventRegistry.php index f2edb8a..705beae 100644 --- a/classes/EventRegistry.php +++ b/classes/EventRegistry.php @@ -176,6 +176,15 @@ protected function getWidgetLongName($widget) */ protected function processFormMLFields($fields, $model, $parent = null) { + if ($parent) { + $nameArray = HtmlHelper::nameToArray($parent); + $topArrayName = array_shift($nameArray); + if ($topArrayName && $model->isJsonable($topArrayName)) { + // make jsonable field translatable so its value can be localized + $model->addTranslatableAttributes($topArrayName); + } + } + $typesMap = [ 'markdown' => 'mlmarkdowneditor', 'mediafinder' => 'mlmediafinder',