diff --git a/ShareX.HistoryLib/Forms/HistoryForm.cs b/ShareX.HistoryLib/Forms/HistoryForm.cs index 4367668fd..f74812074 100644 --- a/ShareX.HistoryLib/Forms/HistoryForm.cs +++ b/ShareX.HistoryLib/Forms/HistoryForm.cs @@ -379,7 +379,7 @@ private string OutputStats(HistoryItem[] historyItems) sb.AppendLine(string.Join(Environment.NewLine, hosts)); sb.AppendLine(); - sb.AppendLine("Process names:"); // TODO: Translate + sb.AppendLine(Resources.ProcessNames); IEnumerable processNames = historyItems. GroupBy(x => string.IsNullOrWhiteSpace(x.TagsProcessName) ? empty : x.TagsProcessName). @@ -464,8 +464,7 @@ private void tsbToggleMoreInfo_Click(object sender, EventArgs e) private void tsbShowStats_Click(object sender, EventArgs e) { string stats = OutputStats(allHistoryItems); - // TODO: Translate - OutputBox.Show(stats, "History stats"); + OutputBox.Show(stats, Resources.HistoryStats); } private void tsbSettings_Click(object sender, EventArgs e) diff --git a/ShareX.HistoryLib/Properties/Resources.Designer.cs b/ShareX.HistoryLib/Properties/Resources.Designer.cs index 72676b9a0..b20669faa 100644 --- a/ShareX.HistoryLib/Properties/Resources.Designer.cs +++ b/ShareX.HistoryLib/Properties/Resources.Designer.cs @@ -397,6 +397,15 @@ internal class Resources { } } + /// + /// Looks up a localized string similar to History stats. + /// + internal static string HistoryStats { + get { + return ResourceManager.GetString("HistoryStats", resourceCulture); + } + } + /// /// Looks up a localized string similar to File extensions:. /// @@ -483,6 +492,15 @@ internal class Resources { } } + /// + /// Looks up a localized string similar to Process names:. + /// + internal static string ProcessNames { + get { + return ResourceManager.GetString("ProcessNames", resourceCulture); + } + } + /// /// Looks up a localized string similar to Total. /// diff --git a/ShareX.HistoryLib/Properties/Resources.resx b/ShareX.HistoryLib/Properties/Resources.resx index d7f576488..8b694b2e7 100644 --- a/ShareX.HistoryLib/Properties/Resources.resx +++ b/ShareX.HistoryLib/Properties/Resources.resx @@ -259,4 +259,10 @@ ..\Resources\chart.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Process names: + + + History stats + \ No newline at end of file diff --git a/ShareX.ScreenCaptureLib/Properties/Resources.Designer.cs b/ShareX.ScreenCaptureLib/Properties/Resources.Designer.cs index 85440b24c..205054b6e 100644 --- a/ShareX.ScreenCaptureLib/Properties/Resources.Designer.cs +++ b/ShareX.ScreenCaptureLib/Properties/Resources.Designer.cs @@ -100,6 +100,15 @@ internal class Resources { } } + /// + /// Looks up a localized string similar to Auto copy image to clipboard. + /// + internal static string AutoCopyImageToClipboard { + get { + return ResourceManager.GetString("AutoCopyImageToClipboard", resourceCulture); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -119,6 +128,15 @@ internal class Resources { } } + /// + /// Looks up a localized string similar to Blur. + /// + internal static string Blur { + get { + return ResourceManager.GetString("Blur", resourceCulture); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -651,6 +669,15 @@ internal class Resources { } } + /// + /// Looks up a localized string similar to Highlight. + /// + internal static string Highlight { + get { + return ResourceManager.GetString("Highlight", resourceCulture); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -1199,6 +1226,15 @@ internal class Resources { } } + /// + /// Looks up a localized string similar to Pixelate. + /// + internal static string Pixelate { + get { + return ResourceManager.GetString("Pixelate", resourceCulture); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -1209,6 +1245,15 @@ internal class Resources { } } + /// + /// Looks up a localized string similar to Processing.... + /// + internal static string Processing { + get { + return ResourceManager.GetString("Processing", resourceCulture); + } + } + /// /// Looks up a localized string similar to Rectangle capture light. /// diff --git a/ShareX.ScreenCaptureLib/Properties/Resources.resx b/ShareX.ScreenCaptureLib/Properties/Resources.resx index 3b4f372e0..98cf4babb 100644 --- a/ShareX.ScreenCaptureLib/Properties/Resources.resx +++ b/ShareX.ScreenCaptureLib/Properties/Resources.resx @@ -777,4 +777,19 @@ X: {4} Y: {5} Tool options + + Processing... + + + Blur + + + Highlight + + + Pixelate + + + Auto copy image to clipboard + \ No newline at end of file diff --git a/ShareX.ScreenCaptureLib/Shapes/Effect/BaseEffectShape.cs b/ShareX.ScreenCaptureLib/Shapes/Effect/BaseEffectShape.cs index 1cac0ff86..350fb49b7 100644 --- a/ShareX.ScreenCaptureLib/Shapes/Effect/BaseEffectShape.cs +++ b/ShareX.ScreenCaptureLib/Shapes/Effect/BaseEffectShape.cs @@ -24,6 +24,7 @@ #endregion License Information (GPL v3) using ShareX.HelpersLib; +using ShareX.ScreenCaptureLib.Properties; using System.Drawing; using System.Drawing.Drawing2D; using System.Threading.Tasks; @@ -64,8 +65,7 @@ public virtual void OnDraw(Graphics g) { if (drawCache && isEffectCaching) { - // TODO: Translate - OnDrawOverlay(g, "Processing..."); + OnDrawOverlay(g, Resources.Processing); } else if (drawCache && cachedEffect != null) { diff --git a/ShareX.ScreenCaptureLib/Shapes/Effect/BlurEffectShape.cs b/ShareX.ScreenCaptureLib/Shapes/Effect/BlurEffectShape.cs index 75d790289..a7dca35e9 100644 --- a/ShareX.ScreenCaptureLib/Shapes/Effect/BlurEffectShape.cs +++ b/ShareX.ScreenCaptureLib/Shapes/Effect/BlurEffectShape.cs @@ -24,6 +24,7 @@ #endregion License Information (GPL v3) using ShareX.HelpersLib; +using ShareX.ScreenCaptureLib.Properties; using System.Drawing; namespace ShareX.ScreenCaptureLib @@ -32,8 +33,7 @@ public class BlurEffectShape : BaseEffectShape { public override ShapeType ShapeType { get; } = ShapeType.EffectBlur; - // TODO: Translate - public override string OverlayText => "Blur" + $" [{BlurRadius}]"; + public override string OverlayText => Resources.Blur + $" [{BlurRadius}]"; public int BlurRadius { get; set; } diff --git a/ShareX.ScreenCaptureLib/Shapes/Effect/HighlightEffectShape.cs b/ShareX.ScreenCaptureLib/Shapes/Effect/HighlightEffectShape.cs index 9c4131c5f..5290967c0 100644 --- a/ShareX.ScreenCaptureLib/Shapes/Effect/HighlightEffectShape.cs +++ b/ShareX.ScreenCaptureLib/Shapes/Effect/HighlightEffectShape.cs @@ -24,6 +24,7 @@ #endregion License Information (GPL v3) using ShareX.HelpersLib; +using ShareX.ScreenCaptureLib.Properties; using System.Drawing; namespace ShareX.ScreenCaptureLib @@ -32,8 +33,7 @@ public class HighlightEffectShape : BaseEffectShape { public override ShapeType ShapeType { get; } = ShapeType.EffectHighlight; - // TODO: Translate - public override string OverlayText => "Highlight"; + public override string OverlayText => Resources.Highlight; public Color HighlightColor { get; set; } diff --git a/ShareX.ScreenCaptureLib/Shapes/Effect/PixelateEffectShape.cs b/ShareX.ScreenCaptureLib/Shapes/Effect/PixelateEffectShape.cs index e7400901f..5941117b7 100644 --- a/ShareX.ScreenCaptureLib/Shapes/Effect/PixelateEffectShape.cs +++ b/ShareX.ScreenCaptureLib/Shapes/Effect/PixelateEffectShape.cs @@ -24,6 +24,7 @@ #endregion License Information (GPL v3) using ShareX.HelpersLib; +using ShareX.ScreenCaptureLib.Properties; using System.Drawing; namespace ShareX.ScreenCaptureLib @@ -32,8 +33,7 @@ public class PixelateEffectShape : BaseEffectShape { public override ShapeType ShapeType { get; } = ShapeType.EffectPixelate; - // TODO: Translate - public override string OverlayText => "Pixelate" + $" [{PixelSize}]"; + public override string OverlayText => Resources.Pixelate + $" [{PixelSize}]"; public int PixelSize { get; set; } diff --git a/ShareX.ScreenCaptureLib/Shapes/ShapeManagerMenu.cs b/ShareX.ScreenCaptureLib/Shapes/ShapeManagerMenu.cs index d6b54df22..fd1b13128 100644 --- a/ShareX.ScreenCaptureLib/Shapes/ShapeManagerMenu.cs +++ b/ShareX.ScreenCaptureLib/Shapes/ShapeManagerMenu.cs @@ -885,8 +885,7 @@ internal void CreateToolbar() (sender, e) => Options.ImageEditorStartMode = (ImageEditorStartMode)tscbImageEditorStartMode.Content.SelectedIndex; tsddbOptions.DropDownItems.Add(tscbImageEditorStartMode); - // TODO: Translate - ToolStripMenuItem tsmiEditorAutoCopyImage = new ToolStripMenuItem("Auto copy image to clipboard"); + ToolStripMenuItem tsmiEditorAutoCopyImage = new ToolStripMenuItem(Resources.AutoCopyImageToClipboard); tsmiEditorAutoCopyImage.Checked = Options.EditorAutoCopyImage; tsmiEditorAutoCopyImage.CheckOnClick = true; tsmiEditorAutoCopyImage.Click += (sender, e) => Options.EditorAutoCopyImage = tsmiEditorAutoCopyImage.Checked; diff --git a/ShareX/BorderlessWindowManager.cs b/ShareX/BorderlessWindowManager.cs index da991c7b7..4eaf3f9ce 100644 --- a/ShareX/BorderlessWindowManager.cs +++ b/ShareX/BorderlessWindowManager.cs @@ -24,6 +24,7 @@ #endregion License Information (GPL v3) using ShareX.HelpersLib; +using ShareX.Properties; using System; using System.Diagnostics; using System.Drawing; @@ -42,8 +43,7 @@ public static bool MakeWindowBorderless(string windowTitle, bool useWorkingArea if (hWnd == IntPtr.Zero) { - // TODO: Translate - MessageBox.Show("Unable to find a window with specified window title.", "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information); + MessageBox.Show(Resources.UnableToFindAWindowWithSpecifiedWindowTitle, "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { diff --git a/ShareX/Properties/Resources.Designer.cs b/ShareX/Properties/Resources.Designer.cs index 41f6bb55e..d7f19c652 100644 --- a/ShareX/Properties/Resources.Designer.cs +++ b/ShareX/Properties/Resources.Designer.cs @@ -2744,6 +2744,15 @@ public class Resources { } } + /// + /// Looks up a localized string similar to Unable to find a window with specified window title.. + /// + public static string UnableToFindAWindowWithSpecifiedWindowTitle { + get { + return ResourceManager.GetString("UnableToFindAWindowWithSpecifiedWindowTitle", resourceCulture); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/ShareX/Properties/Resources.resx b/ShareX/Properties/Resources.resx index 8c753929d..e17a87214 100644 --- a/ShareX/Properties/Resources.resx +++ b/ShareX/Properties/Resources.resx @@ -1076,4 +1076,7 @@ Please run ShareX as administrator to change personal folder path. ..\resources\github.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Unable to find a window with specified window title. + \ No newline at end of file