private function addInputScreenTranslations(StaticTranslator $translator, $inputScreen, $containerName)
    {
        $currentLocale = $GLOBALS['TL_LANGUAGE'];

        foreach ($inputScreen['legends'] as $legendName => $legendInfo) {
            foreach ($legendInfo['label'] as $langCode => $label) {
                $translator->setValue(
                    $legendName . '_legend',
                    $label,
                    $containerName,
                    $langCode
                );
                if ($currentLocale === $langCode) {
                    $translator->setValue(
                        $legendName . '_legend',
                        $label,
                        $containerName
                    );
                }
            }
        }
    }