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;
}