$currentSection = '-';
$sections = [$currentSection => []];
+ $locations = $translate->getStringToTranslateLocations();
foreach ($translate->getStringToTranslate() as $sectionLabel => $strings) {
$toTranslate = [];
$label = '??';
}
+ $loc = '';
+ if (isset($locations[$string])) {
+ $loc = implode("\n", $locations[$string]);
+ }
$sections[$currentSection][] = ['name' => $key,
'label' => $label,
'type' => Textarea::class,
'rows' => 1,
'translatable' => true,
'store_in' => 'content',
+ 'hint' => $loc,
'fake' => true];
}
}