Пример #1
0
        public static void ApplyI18nToProperties(this ToolStripStatusLabel label, I18n i18n)
        {
            ToolStrip       ts     = label.Owner;
            II18nCompatible parent = ts.GetI18nCompatibleParent();

            label.Text = i18n.Get(label.Text, parent.Name, label.Name, nameof(ToolStripStatusLabel.Text));
        }
Пример #2
0
        public static void ApplyI18nToProperties(this ToolStripMenuItem item, I18n i18n)
        {
            ToolStrip       ms     = item.Owner;
            II18nCompatible parent = ms.GetI18nCompatibleParent();

            item.Text = i18n.Get(item.Text, parent.Name, item.Name, nameof(ToolStripMenuItem.Text));
        }