From 47ca8443a1a8ba185171783fc8ec8d1981b36916 Mon Sep 17 00:00:00 2001 From: Jaex Date: Thu, 21 Apr 2022 22:12:57 +0300 Subject: [PATCH] Set Localizable true --- ShareX/Forms/OCRForm.Designer.cs | 32 ++------ ShareX/Forms/OCRForm.resx | 132 +++++++++++++++++++++++++++++++ 2 files changed, 138 insertions(+), 26 deletions(-) diff --git a/ShareX/Forms/OCRForm.Designer.cs b/ShareX/Forms/OCRForm.Designer.cs index 7e121489b..397d390b7 100644 --- a/ShareX/Forms/OCRForm.Designer.cs +++ b/ShareX/Forms/OCRForm.Designer.cs @@ -28,6 +28,7 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OCRForm)); this.lblLanguage = new System.Windows.Forms.Label(); this.cbLanguages = new System.Windows.Forms.ComboBox(); this.lblResult = new System.Windows.Forms.Label(); @@ -36,58 +37,37 @@ private void InitializeComponent() // // lblLanguage // - this.lblLanguage.AutoSize = true; - this.lblLanguage.Location = new System.Drawing.Point(13, 16); + resources.ApplyResources(this.lblLanguage, "lblLanguage"); this.lblLanguage.Name = "lblLanguage"; - this.lblLanguage.Size = new System.Drawing.Size(58, 13); - this.lblLanguage.TabIndex = 2; - this.lblLanguage.Text = "Language:"; // // cbLanguages // this.cbLanguages.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbLanguages.FormattingEnabled = true; - this.cbLanguages.Location = new System.Drawing.Point(16, 32); + resources.ApplyResources(this.cbLanguages, "cbLanguages"); this.cbLanguages.Name = "cbLanguages"; - this.cbLanguages.Size = new System.Drawing.Size(216, 21); - this.cbLanguages.TabIndex = 3; this.cbLanguages.SelectedIndexChanged += new System.EventHandler(this.cbLanguages_SelectedIndexChanged); // // lblResult // - this.lblResult.AutoSize = true; - this.lblResult.Location = new System.Drawing.Point(13, 64); + resources.ApplyResources(this.lblResult, "lblResult"); this.lblResult.Name = "lblResult"; - this.lblResult.Size = new System.Drawing.Size(40, 13); - this.lblResult.TabIndex = 0; - this.lblResult.Text = "Result:"; // // txtResult // - this.txtResult.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtResult.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtResult.Location = new System.Drawing.Point(16, 80); - this.txtResult.Multiline = true; + resources.ApplyResources(this.txtResult, "txtResult"); this.txtResult.Name = "txtResult"; - this.txtResult.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.txtResult.Size = new System.Drawing.Size(592, 376); - this.txtResult.TabIndex = 1; // // OCRForm // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(624, 471); this.Controls.Add(this.txtResult); this.Controls.Add(this.lblResult); this.Controls.Add(this.cbLanguages); this.Controls.Add(this.lblLanguage); this.Name = "OCRForm"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "ShareX - Optical character recognition"; this.Shown += new System.EventHandler(this.OCRForm_Shown); this.ResumeLayout(false); this.PerformLayout(); diff --git a/ShareX/Forms/OCRForm.resx b/ShareX/Forms/OCRForm.resx index 1af7de150..94bf6995e 100644 --- a/ShareX/Forms/OCRForm.resx +++ b/ShareX/Forms/OCRForm.resx @@ -117,4 +117,136 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + + 13, 16 + + + 58, 13 + + + 2 + + + Language: + + + lblLanguage + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 3 + + + 16, 32 + + + 216, 21 + + + 3 + + + cbLanguages + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 2 + + + True + + + 13, 64 + + + 40, 13 + + + 0 + + + Result: + + + lblResult + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 1 + + + + Top, Bottom, Left, Right + + + Microsoft Sans Serif, 9.75pt + + + 16, 80 + + + True + + + Both + + + 592, 376 + + + 1 + + + txtResult + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 0 + + + True + + + 6, 13 + + + 624, 471 + + + CenterScreen + + + ShareX - Optical character recognition + + + OCRForm + + + System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file