private void AppendToolStripItemTranslation(ToolStripItem item) { if (!String.IsNullOrEmpty(item.Text)) { TemplateFile.WriteStringValue(item.Name, item.Text); } }
public void AppendFormTranslation(Form form) { TemplateFile.CurrentSection = form.Name; TemplateFile.WriteStringValue(KeyFormTitle, form.Text); foreach (Control control in form.Controls) { AppendControlTranslation(control); } }
public void AppendStringResourceTranslation(ResourceSet resourceSet) { TemplateFile.CurrentSection = SectionResource; foreach (DictionaryEntry dictionaryEntry in resourceSet) { if (dictionaryEntry.Value is string) { TemplateFile.WriteStringValue( dictionaryEntry.Key.ToString(), dictionaryEntry.Value.ToString()); } } }
private void AppendControlTranslation(Control control) { if (!String.IsNullOrEmpty(control.Text)) { TemplateFile.WriteStringValue(control.Name, control.Text); } foreach (Control subControl in control.Controls) { AppendControlTranslation(subControl); } ToolStrip toolStrip = control as ToolStrip; if (toolStrip != null) { foreach (ToolStripItem item in toolStrip.Items) { AppendToolStripItemTranslation(item); } } }