Bloom.ToPalaso.BetterToolTip.GetAllLocalizingInfoObjects C# (CSharp) Method

GetAllLocalizingInfoObjects() public method

Allows the BetterToolTip to give L10NSharp the information it needs to put strings into the localization UI to be localized.
public GetAllLocalizingInfoObjects ( L10NSharpExtender extender ) : IEnumerable
extender L10NSharpExtender
return IEnumerable
        public IEnumerable<LocalizingInfo> GetAllLocalizingInfoObjects(L10NSharpExtender extender)
        {
            var result = new List<LocalizingInfo>();
            foreach (var ctrl in _allControlsHavingToolTips)
            {
                var idPrefix = extender.GetLocalizingId(ctrl);
                var normalTip = GetToolTip(ctrl);
                if (!string.IsNullOrEmpty(normalTip))
                {
                    var liNormal = new LocalizingInfo(ctrl, idPrefix + NORMAL_TIP)
                        { Text = normalTip, Category = LocalizationCategory.LocalizableComponent };
                    result.Add(liNormal);
                }
                var disabledTip = GetToolTipWhenDisabled(ctrl);
                if (!string.IsNullOrEmpty(disabledTip))
                {
                    var liDisabled = new LocalizingInfo(ctrl, idPrefix + DISABLED_TIP)
                        { Text = disabledTip, Category = LocalizationCategory.LocalizableComponent };
                    result.Add(liDisabled);
                }
            }
            return result;
        }