/// <summary> /// Changes localized text and messages /// </summary> /// <param name="locale"></param> /// <param name="firstTime"></param> protected virtual void ChangeUILanguage(string locale) { //string imageProperties = this.toolStripStatusLabelDimValue.Text; // retain values of image properties in statusbar //string totalPage = this.toolStripLabelPageNum.Text; FormLocalizer localizer = new FormLocalizer(this, typeof(Gui)); localizer.ApplyCulture(new CultureInfo(locale)); this.statusLabel.Content = null; foreach (Window dlg in this.OwnedWindows) { HtmlHelpDialog helpForm = dlg as HtmlHelpDialog; if (helpForm != null) { helpForm.Title = Properties.Resources.VietOCR_Help; } } //this.contextMenuStrip1.ChangeUILanguage(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Gui)); //this.toolTip1.SetToolTip(this.buttonCollapseExpand, resources.GetString("buttonCollapseExpand.ToolTipText")); //this.toolStripStatusLabelDimValue.Text = imageProperties; // restore prior values //this.toolStripLabelPageNum.Text = totalPage; }
private void helpToolStripMenuItem1_Click(object sender, RoutedEventArgs e) { HtmlHelpDialog dlg = new HtmlHelpDialog(Properties.Resources.readme, "VietOCR"); dlg.Show(); }