Bloom.Publish.PublishView.LocalizeSuperToolTip C# (CSharp) Method

LocalizeSuperToolTip() private method

private LocalizeSuperToolTip ( Control controlThatHasSuperTooltipAttached, string l10nIdOfControl ) : void
controlThatHasSuperTooltipAttached System.Windows.Forms.Control
l10nIdOfControl string
return void
        private void LocalizeSuperToolTip(Control controlThatHasSuperTooltipAttached, string l10nIdOfControl)
        {
            var tooltipinfo = _superToolTip.GetSuperStuff(controlThatHasSuperTooltipAttached);
            string english;
            if (!_originalSuperToolTips.TryGetValue(controlThatHasSuperTooltipAttached, out english))
            {
                english = tooltipinfo.SuperToolTipInfo.BodyText;
                _originalSuperToolTips[controlThatHasSuperTooltipAttached] = english;
            }
            //enhance: GetLocalizingId didn't work: var l10nidForTooltip = _L10NSharpExtender.GetLocalizingId(controlThatHasSuperTooltipAttached) + ".tooltip";
            var l10nidForTooltip = l10nIdOfControl + "-tooltip";
            tooltipinfo.SuperToolTipInfo.BodyText = LocalizationManager.GetDynamicString("Bloom", l10nidForTooltip, english);
            _superToolTip.SetSuperStuff(controlThatHasSuperTooltipAttached, tooltipinfo);
        }