From c34d7b7114ac389e36c90c0e96643d175e9e61c6 Mon Sep 17 00:00:00 2001 From: Jaex Date: Tue, 11 Aug 2015 20:33:30 +0300 Subject: [PATCH] Added missing hard coded strings to resx, Updated Turkish translations --- .../Properties/Resources.tr.resx | 159 ++++++++ ShareX.MediaLib/Forms/VideoThumbnailerForm.cs | 4 +- .../Properties/Resources.Designer.cs | 72 ++++ ShareX.MediaLib/Properties/Resources.resx | 104 +++++ ShareX.MediaLib/Properties/Resources.tr.resx | 123 ++++++ ShareX.MediaLib/ShareX.MediaLib.csproj | 11 + .../ShareX.MediaLib.csproj.DotSettings | 2 + .../Forms/RectangleRegion.cs | 72 ++-- .../Properties/Resources.Designer.cs | 358 +++++++++++++++++- .../Properties/Resources.resx | 117 ++++++ .../Screencast/FFmpegOptionsForm.resx | 2 +- .../Screencast/FFmpegOptionsForm.tr.resx | 21 + ShareX.UploadersLib/Enums.cs | 2 - .../Forms/UploadersConfigForm.resx | 104 ++--- .../Forms/UploadersConfigForm.tr.resx | 33 ++ .../Forms/UploadersConfigFormHelper.cs | 6 +- .../ImageUploaders/HizliResim.cs | 54 --- .../Properties/Resources.Designer.cs | 18 + ShareX.UploadersLib/Properties/Resources.resx | 6 + .../Properties/Resources.tr.resx | 9 +- .../ShareX.UploadersLib.csproj | 1 - ShareX.sln.DotSettings | 2 + ShareX/ApplicationConfig.cs | 1 - ShareX/Controls/BeforeUploadControl.cs | 5 +- ShareX/Forms/AboutForm.resx | 8 +- ShareX/Forms/AboutForm.tr.resx | 4 + ShareX/Forms/MainForm.Designer.cs | 33 -- ShareX/Forms/MainForm.cs | 28 +- ShareX/Forms/MainForm.fr.resx | 7 - ShareX/Forms/MainForm.resx | 94 +---- ShareX/Forms/MainForm.tr.resx | 16 +- ShareX/Forms/TaskSettingsForm.resx | 8 +- ShareX/Forms/TaskSettingsForm.tr.resx | 8 +- ShareX/Forms/WebpageCaptureForm.cs | 3 +- ShareX/Forms/WebpageCaptureForm.tr.resx | 138 +++++++ ShareX/Properties/Resources.Designer.cs | 73 ++++ ShareX/Properties/Resources.fr.resx | 3 - ShareX/Properties/Resources.nl-NL.resx | 3 - ShareX/Properties/Resources.resx | 24 ++ ShareX/Properties/Resources.tr.resx | 27 +- ShareX/ShareX.csproj | 3 + ShareX/TaskHelpers.cs | 3 +- ShareX/UploadTask.cs | 6 - 43 files changed, 1432 insertions(+), 343 deletions(-) create mode 100644 ShareX.MediaLib/Properties/Resources.Designer.cs create mode 100644 ShareX.MediaLib/Properties/Resources.resx create mode 100644 ShareX.MediaLib/Properties/Resources.tr.resx create mode 100644 ShareX.MediaLib/ShareX.MediaLib.csproj.DotSettings delete mode 100644 ShareX.UploadersLib/ImageUploaders/HizliResim.cs create mode 100644 ShareX/Forms/WebpageCaptureForm.tr.resx diff --git a/ShareX.HelpersLib/Properties/Resources.tr.resx b/ShareX.HelpersLib/Properties/Resources.tr.resx index fd92bb286..e4913a0bb 100644 --- a/ShareX.HelpersLib/Properties/Resources.tr.resx +++ b/ShareX.HelpersLib/Properties/Resources.tr.resx @@ -603,4 +603,163 @@ Dosya boyutu: {2:n0} / {3:n0} KB Özel bölge yakala + + FFmpeg (İyi kalite) + + + .NET (Kötü kalite) + + + Octree nicemleyici (Orta kalite) + + + Ekran yakalama + + + Ekran yakalama + + + Ekran yakalama + + + Ekran yakalama + + + Ekran yakalama + + + Ekran yakalama + + + Ekran yakalama + + + Ekran yakalama + + + Ekran yakalama + + + Ekran yakalama + + + Ekran yakalama + + + Ekran yakalama + + + Ekran yakalama + + + Ekran yakalama + + + Araçlar + + + Araçlar + + + Araçlar + + + Araçlar + + + Araçlar + + + Araçlar + + + Araçlar + + + Araçlar + + + Araçlar + + + Araçlar + + + Araçlar + + + Araçlar + + + Ekran yakalama + + + Ekran kaydetme + + + Ekran kaydetme + + + Ekran kaydetme + + + Ekran kaydetme + + + Ekran kaydetme + + + Ekran kaydetme + + + Araçlar + + + Yükle + + + Yükle + + + Yükle + + + Yükle + + + Yükle + + + Yükle + + + Yükle + + + Diğer + + + Diğer + + + Devre dışı bırak/Aktif et kısayolları + + + Web sayfası yakala + + + DNS değiştirici + + + Resim düzenleyici + + + Monitör testi + + + Aktif pencere alanıyla ekran kaydetme başlat + + + Aktif pencere alanıyla ekran kaydetme (GIF) başlat + \ No newline at end of file diff --git a/ShareX.MediaLib/Forms/VideoThumbnailerForm.cs b/ShareX.MediaLib/Forms/VideoThumbnailerForm.cs index d1d19cf97..1e3461d61 100644 --- a/ShareX.MediaLib/Forms/VideoThumbnailerForm.cs +++ b/ShareX.MediaLib/Forms/VideoThumbnailerForm.cs @@ -24,6 +24,7 @@ #endregion License Information (GPL v3) using ShareX.HelpersLib; +using ShareX.MediaLib.Properties; using System; using System.Collections.Generic; using System.IO; @@ -108,8 +109,7 @@ protected void OnThumbnailsTaken(List thumbnails) private void btnBrowse_Click(object sender, EventArgs e) { - // TODO: Translate - Helpers.BrowseFile("Browse for media file", txtMediaPath); + Helpers.BrowseFile(Resources.VideoThumbnailerForm_btnBrowse_Click_Browse_for_media_file, txtMediaPath); } } } \ No newline at end of file diff --git a/ShareX.MediaLib/Properties/Resources.Designer.cs b/ShareX.MediaLib/Properties/Resources.Designer.cs new file mode 100644 index 000000000..01673b965 --- /dev/null +++ b/ShareX.MediaLib/Properties/Resources.Designer.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ShareX.MediaLib.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ShareX.MediaLib.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Browse for media file. + /// + internal static string VideoThumbnailerForm_btnBrowse_Click_Browse_for_media_file { + get { + return ResourceManager.GetString("VideoThumbnailerForm_btnBrowse_Click_Browse_for_media_file", resourceCulture); + } + } + } +} diff --git a/ShareX.MediaLib/Properties/Resources.resx b/ShareX.MediaLib/Properties/Resources.resx new file mode 100644 index 000000000..836281672 --- /dev/null +++ b/ShareX.MediaLib/Properties/Resources.resx @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Browse for media file + + \ No newline at end of file diff --git a/ShareX.MediaLib/Properties/Resources.tr.resx b/ShareX.MediaLib/Properties/Resources.tr.resx new file mode 100644 index 000000000..03d1dc899 --- /dev/null +++ b/ShareX.MediaLib/Properties/Resources.tr.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Video için gözat... + + \ No newline at end of file diff --git a/ShareX.MediaLib/ShareX.MediaLib.csproj b/ShareX.MediaLib/ShareX.MediaLib.csproj index bc0fd9a42..f8f2d1112 100644 --- a/ShareX.MediaLib/ShareX.MediaLib.csproj +++ b/ShareX.MediaLib/ShareX.MediaLib.csproj @@ -34,6 +34,7 @@ + @@ -51,6 +52,11 @@ VideoThumbnailerForm.cs + + True + True + Resources.resx + @@ -67,6 +73,11 @@ VideoThumbnailerForm.cs + + ResXFileCodeGenerator + Resources.Designer.cs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ShareX - Web sayfası yakala + + + Yakala + + + Kopyala + + + Yükle + + + Gecikme: + + + Tarayıcı boyutu: + + \ No newline at end of file diff --git a/ShareX/Properties/Resources.Designer.cs b/ShareX/Properties/Resources.Designer.cs index bb16e74be..d3b79cc40 100644 --- a/ShareX/Properties/Resources.Designer.cs +++ b/ShareX/Properties/Resources.Designer.cs @@ -317,6 +317,15 @@ public class Resources { } } + /// + /// Looks up a localized string similar to Custom. + /// + public static string BeforeUploadControl_AddDestination_Custom { + get { + return ResourceManager.GetString("BeforeUploadControl_AddDestination_Custom", resourceCulture); + } + } + /// /// Looks up a localized string similar to {0} is about to be uploaded to {1}. You may choose a different destination.. /// @@ -1109,6 +1118,16 @@ public class Resources { } } + /// + /// Looks up a localized string similar to You can single left click the ShareX tray icon to start region capture.. + /// + public static string MainForm_AfterShownJobs_You_can_single_left_click_the_ShareX_tray_icon_to_start_region_capture_ { + get { + return ResourceManager.GetString("MainForm_AfterShownJobs_You_can_single_left_click_the_ShareX_tray_icon_to_start_r" + + "egion_capture_", resourceCulture); + } + } + /// /// Looks up a localized string similar to Do you really want to delete this file?. /// @@ -1172,6 +1191,24 @@ public class Resources { } } + /// + /// Looks up a localized string similar to Disable hotkeys. + /// + public static string MainForm_UpdateToggleHotkeyButton_Disable_hotkeys { + get { + return ResourceManager.GetString("MainForm_UpdateToggleHotkeyButton_Disable_hotkeys", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Enable hotkeys. + /// + public static string MainForm_UpdateToggleHotkeyButton_Enable_hotkeys { + get { + return ResourceManager.GetString("MainForm_UpdateToggleHotkeyButton_Enable_hotkeys", resourceCulture); + } + } + /// /// Looks up a localized string similar to You can add workflows from hotkey settings.... /// @@ -1542,6 +1579,24 @@ public class Resources { } } + /// + /// Looks up a localized string similar to Hotkeys disabled.. + /// + public static string TaskHelpers_ToggleHotkeys_Hotkeys_disabled_ { + get { + return ResourceManager.GetString("TaskHelpers_ToggleHotkeys_Hotkeys_disabled_", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Hotkeys enabled.. + /// + public static string TaskHelpers_ToggleHotkeys_Hotkeys_enabled_ { + get { + return ResourceManager.GetString("TaskHelpers_ToggleHotkeys_Hotkeys_enabled_", resourceCulture); + } + } + /// /// Looks up a localized string similar to Tweet successfully sent.. /// @@ -1966,6 +2021,24 @@ public class Resources { } } + /// + /// Looks up a localized string similar to Capture. + /// + public static string WebpageCaptureForm_UpdateControls_Capture { + get { + return ResourceManager.GetString("WebpageCaptureForm_UpdateControls_Capture", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Stop. + /// + public static string WebpageCaptureForm_UpdateControls_Stop { + get { + return ResourceManager.GetString("WebpageCaptureForm_UpdateControls_Stop", resourceCulture); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/ShareX/Properties/Resources.fr.resx b/ShareX/Properties/Resources.fr.resx index b8d99c784..4276df313 100644 --- a/ShareX/Properties/Resources.fr.resx +++ b/ShareX/Properties/Resources.fr.resx @@ -407,9 +407,6 @@ Merci de sélectionner un raccourci différent ou quitter l'application en confl Vous pouvez glisser et déposer des fichiers dans cette fenêtre. - - Vous pouvez cliquer avec la molette l'icône de ShareX pour commencer une capture rectangulaire. - Clic gauche pour copier l'URL dans le presse-papier. Clic droit pour l'ouvrir. diff --git a/ShareX/Properties/Resources.nl-NL.resx b/ShareX/Properties/Resources.nl-NL.resx index 33b1cd27f..41ac541ff 100644 --- a/ShareX/Properties/Resources.nl-NL.resx +++ b/ShareX/Properties/Resources.nl-NL.resx @@ -419,9 +419,6 @@ Klik op "Nee" om de huidige upload te annuleren en het automatisch uploaden uit Kan geen geldig Twitter account vinden. - - Middelklik het ShareX tray icoon om de schermopname te beginnen. - Links klikken om de link naar het klembord te kopiëren. Rechtsklikken om de link te openen. diff --git a/ShareX/Properties/Resources.resx b/ShareX/Properties/Resources.resx index 286b77acb..b2c6ad22e 100644 --- a/ShareX/Properties/Resources.resx +++ b/ShareX/Properties/Resources.resx @@ -733,4 +733,28 @@ Would you like to restart ShareX? ..\Resources\images-stack.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Custom + + + You can single left click the ShareX tray icon to start region capture. + + + Enable hotkeys + + + Disable hotkeys + + + Stop + + + Capture + + + Hotkeys disabled. + + + Hotkeys enabled. + \ No newline at end of file diff --git a/ShareX/Properties/Resources.tr.resx b/ShareX/Properties/Resources.tr.resx index 353e568ce..c2aa38d06 100644 --- a/ShareX/Properties/Resources.tr.resx +++ b/ShareX/Properties/Resources.tr.resx @@ -419,10 +419,31 @@ Lütfen başka bir kısayol seçin veya çakışan uygulamayı kapatın ve Share Geçerli Twitter hesabı bulunamadı. - - Bildirim alanındaki ShareX simgesine orta tuş ile tıklıyarak dikdörtgen yakalama başlatabilirsiniz. - Adresi kopyalamak için sol tıklayın. Adresi açmak için sağ tıklayın. + + Bildirim alanındaki ShareX simgesine sol tuş ile bir kere tıklıyara bölge yakalama başlatabilirsiniz. + + + Kısayolları devre dışı bırak + + + Kısayolları aktif et + + + Kısayollar devre dışı kaldı. + + + Kısayollar aktif edildi. + + + Özel + + + Yakala + + + Durdur + \ No newline at end of file diff --git a/ShareX/ShareX.csproj b/ShareX/ShareX.csproj index 6389a112f..53748d469 100644 --- a/ShareX/ShareX.csproj +++ b/ShareX/ShareX.csproj @@ -728,6 +728,9 @@ WebpageCaptureForm.cs + + WebpageCaptureForm.cs + diff --git a/ShareX/TaskHelpers.cs b/ShareX/TaskHelpers.cs index bb5ff88d9..ddde6016a 100644 --- a/ShareX/TaskHelpers.cs +++ b/ShareX/TaskHelpers.cs @@ -788,8 +788,7 @@ public static bool ToggleHotkeys() if (Program.MainForm.niTray.Visible) { Program.MainForm.niTray.Tag = null; - // TODO: Translate - string balloonTipText = result ? "Hotkeys disabled." : "Hotkeys enabled."; + string balloonTipText = result ? Resources.TaskHelpers_ToggleHotkeys_Hotkeys_disabled_ : Resources.TaskHelpers_ToggleHotkeys_Hotkeys_enabled_; Program.MainForm.niTray.ShowBalloonTip(3000, "ShareX", balloonTipText, ToolTipIcon.Info); } diff --git a/ShareX/UploadTask.cs b/ShareX/UploadTask.cs index 0897fb90e..e65c42042 100644 --- a/ShareX/UploadTask.cs +++ b/ShareX/UploadTask.cs @@ -744,12 +744,6 @@ public UploadResult UploadImage(Stream stream, string fileName) DirectURL = Program.UploadersConfig.CheveretoDirectURL }; break; - case ImageDestination.HizliResim: - imageUploader = new HizliResim() - { - DirectURL = true - }; - break; case ImageDestination.Vgyme: imageUploader = new VgymeUploader(); break;