From 3e27c8c8d15f3c4c9354a43000fd5d5af2c2976c Mon Sep 17 00:00:00 2001 From: kanaxx Date: Mon, 28 Jun 2021 22:28:20 +0900 Subject: [PATCH 1/3] localize toast config menu and step tool into Japanese --- .../Properties/Resources.Designer.cs | 173 +++++++++++++++++- .../Properties/Resources.ja-JP.resx | 79 ++++++++ ShareX.HelpersLib/Properties/Resources.resx | 57 ++++++ 3 files changed, 308 insertions(+), 1 deletion(-) diff --git a/ShareX.HelpersLib/Properties/Resources.Designer.cs b/ShareX.HelpersLib/Properties/Resources.Designer.cs index e7fb66a87..af9b8d914 100644 --- a/ShareX.HelpersLib/Properties/Resources.Designer.cs +++ b/ShareX.HelpersLib/Properties/Resources.Designer.cs @@ -78,7 +78,7 @@ internal class Resources { "me_extension_", resourceCulture); } } - + /// /// Looks up a localized string similar to abandoned ///able @@ -575,6 +575,87 @@ internal class Resources { } } + /// + /// Looks up a localized string similar to BottomCenter. + /// + internal static string ContentAlignment_BottomCenter { + get { + return ResourceManager.GetString("ContentAlignment_BottomCenter", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to BottomLeft. + /// + internal static string ContentAlignment_BottomLeft { + get { + return ResourceManager.GetString("ContentAlignment_BottomLeft", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to BottomRight. + /// + internal static string ContentAlignment_BottomRight { + get { + return ResourceManager.GetString("ContentAlignment_BottomRight", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to MiddleCenter. + /// + internal static string ContentAlignment_MiddleCenter { + get { + return ResourceManager.GetString("ContentAlignment_MiddleCenter", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to MiddleLeft. + /// + internal static string ContentAlignment_MiddleLeft { + get { + return ResourceManager.GetString("ContentAlignment_MiddleLeft", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to MiddleRight. + /// + internal static string ContentAlignment_MiddleRight { + get { + return ResourceManager.GetString("ContentAlignment_MiddleRight", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to TopCenter. + /// + internal static string ContentAlignment_TopCenter { + get { + return ResourceManager.GetString("ContentAlignment_TopCenter", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to TopLeft. + /// + internal static string ContentAlignment_TopLeft { + get { + return ResourceManager.GetString("ContentAlignment_TopLeft", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to TopRight. + /// + internal static string ContentAlignment_TopRight { + get { + return ResourceManager.GetString("ContentAlignment_TopRight", resourceCulture); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -3593,6 +3674,96 @@ internal class Resources { } } + /// + /// Looks up a localized string similar to Annotate image. + /// + internal static string ToastClickAction_AnnotateImage { + get { + return ResourceManager.GetString("ToastClickAction_AnnotateImage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Close notification. + /// + internal static string ToastClickAction_CloseNotification { + get { + return ResourceManager.GetString("ToastClickAction_CloseNotification", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Copy file. + /// + internal static string ToastClickAction_CopyFile { + get { + return ResourceManager.GetString("ToastClickAction_CopyFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Copy file path. + /// + internal static string ToastClickAction_CopyFilePath { + get { + return ResourceManager.GetString("ToastClickAction_CopyFilePath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Copy image. + /// + internal static string ToastClickAction_CopyImageToClipboard { + get { + return ResourceManager.GetString("ToastClickAction_CopyImageToClipboard", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Copy link. + /// + internal static string ToastClickAction_CopyUrl { + get { + return ResourceManager.GetString("ToastClickAction_CopyUrl", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Open file. + /// + internal static string ToastClickAction_OpenFile { + get { + return ResourceManager.GetString("ToastClickAction_OpenFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Open folder. + /// + internal static string ToastClickAction_OpenFolder { + get { + return ResourceManager.GetString("ToastClickAction_OpenFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Open link. + /// + internal static string ToastClickAction_OpenUrl { + get { + return ResourceManager.GetString("ToastClickAction_OpenUrl", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Upload file. + /// + internal static string ToastClickAction_Upload { + get { + return ResourceManager.GetString("ToastClickAction_Upload", resourceCulture); + } + } + /// /// Looks up a localized string similar to A newer version of {0} is available. /// diff --git a/ShareX.HelpersLib/Properties/Resources.ja-JP.resx b/ShareX.HelpersLib/Properties/Resources.ja-JP.resx index cb4d42e07..0e1e1f61c 100644 --- a/ShareX.HelpersLib/Properties/Resources.ja-JP.resx +++ b/ShareX.HelpersLib/Properties/Resources.ja-JP.resx @@ -1213,4 +1213,83 @@ 二点鎖線 + + 通知を閉じる + + + 画像編集 + + + + 通知を閉じる + + + 画像エディタを開く + + + 画像をコピー + + + ファイルをコピー + + + ファイルパスをコピー + + + URLをコピー + + + ファイルを開く + + + フォルダを開く + + + URLを開く + + + ファイルをアップロード + + + 左上 + + + + + + 右上 + + + + + + 中央 + + + + + + 左下 + + + + + + 右下 + + + 英字(小) + + + 英字(大) + + + 数字 + + + ローマ数字(小) + + + ローマ数字(大) + \ No newline at end of file diff --git a/ShareX.HelpersLib/Properties/Resources.resx b/ShareX.HelpersLib/Properties/Resources.resx index 09bcffe55..b7cc97d1d 100644 --- a/ShareX.HelpersLib/Properties/Resources.resx +++ b/ShareX.HelpersLib/Properties/Resources.resx @@ -1313,4 +1313,61 @@ Would you like to download and install it? DashDotDot + + Close notification + + + Annotate image + + + Copy image + + + Copy file + + + Copy file path + + + Copy link + + + Open file + + + Open folder + + + Open link + + + Upload file + + + TopLeft + + + TopCenter + + + TopRight + + + MiddleLeft + + + MiddleCenter + + + MiddleRight + + + BottomLeft + + + BottomCenter + + + BottomRight + \ No newline at end of file From a2a8e8101759e663fa9410efc77b6002d30f013a Mon Sep 17 00:00:00 2001 From: kanaxx Date: Mon, 28 Jun 2021 22:31:33 +0900 Subject: [PATCH 2/3] add resource file --- ShareX.ScreenCaptureLib/Properties/Resources.ja-JP.resx | 3 +++ ShareX/Enums.cs | 2 +- ShareX/Forms/TaskSettingsForm.cs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ShareX.ScreenCaptureLib/Properties/Resources.ja-JP.resx b/ShareX.ScreenCaptureLib/Properties/Resources.ja-JP.resx index f7be646d5..1c836a1f4 100644 --- a/ShareX.ScreenCaptureLib/Properties/Resources.ja-JP.resx +++ b/ShareX.ScreenCaptureLib/Properties/Resources.ja-JP.resx @@ -440,4 +440,7 @@ 線の形式: + + 文字の種類: + \ No newline at end of file diff --git a/ShareX/Enums.cs b/ShareX/Enums.cs index b14c5c86e..1df3b41eb 100644 --- a/ShareX/Enums.cs +++ b/ShareX/Enums.cs @@ -241,7 +241,7 @@ public enum PopUpNotificationType // Localized ToastNotification } - public enum ToastClickAction + public enum ToastClickAction // Localized { [Description("Close notification")] CloseNotification, diff --git a/ShareX/Forms/TaskSettingsForm.cs b/ShareX/Forms/TaskSettingsForm.cs index 3ef10b836..14bfd38d9 100644 --- a/ShareX/Forms/TaskSettingsForm.cs +++ b/ShareX/Forms/TaskSettingsForm.cs @@ -196,7 +196,7 @@ public TaskSettingsForm(TaskSettings hotkeySetting, bool isDefault = false) gbToastWindow.Enabled = TaskSettings.GeneralSettings.ShowToastNotificationAfterTaskCompleted; nudToastWindowDuration.SetValue((decimal)TaskSettings.GeneralSettings.ToastWindowDuration); nudToastWindowFadeDuration.SetValue((decimal)TaskSettings.GeneralSettings.ToastWindowFadeDuration); - cbToastWindowPlacement.Items.AddRange(Helpers.GetEnumNamesProper()); + cbToastWindowPlacement.Items.AddRange(Helpers.GetLocalizedEnumDescriptions()); cbToastWindowPlacement.SelectedIndex = TaskSettings.GeneralSettings.ToastWindowPlacement.GetIndex(); nudToastWindowSizeWidth.SetValue(TaskSettings.GeneralSettings.ToastWindowSize.Width); nudToastWindowSizeHeight.SetValue(TaskSettings.GeneralSettings.ToastWindowSize.Height); From 8f721e339ba03d68be7537c6e732c8cb0e591373 Mon Sep 17 00:00:00 2001 From: kanaxx Date: Tue, 29 Jun 2021 12:34:08 +0900 Subject: [PATCH 3/3] change the selection name of notification --- .../Properties/Resources.ja-JP.resx | 1 - ShareX.HelpersLib/Properties/Resources.resx | 18 +++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ShareX.HelpersLib/Properties/Resources.ja-JP.resx b/ShareX.HelpersLib/Properties/Resources.ja-JP.resx index 0e1e1f61c..18647ca5a 100644 --- a/ShareX.HelpersLib/Properties/Resources.ja-JP.resx +++ b/ShareX.HelpersLib/Properties/Resources.ja-JP.resx @@ -1219,7 +1219,6 @@ 画像編集 - 通知を閉じる diff --git a/ShareX.HelpersLib/Properties/Resources.resx b/ShareX.HelpersLib/Properties/Resources.resx index b7cc97d1d..130c2b633 100644 --- a/ShareX.HelpersLib/Properties/Resources.resx +++ b/ShareX.HelpersLib/Properties/Resources.resx @@ -1344,30 +1344,30 @@ Would you like to download and install it? Upload file - TopLeft + Top left - TopCenter + Top center - TopRight + Top right - MiddleLeft + Middle left - MiddleCenter + Middle center - MiddleRight + Middle right - BottomLeft + Bottom left - BottomCenter + Bottom center - BottomRight + Bottom right \ No newline at end of file