mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Move lines to resx
This commit is contained in:
parent
5e7dbd23fa
commit
39d56ea3c5
8 changed files with 81 additions and 8 deletions
|
@ -29,6 +29,7 @@ You should have received a copy of the GNU General Public License
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using ShareX.MediaLib.Properties;
|
||||||
|
|
||||||
namespace ShareX.MediaLib
|
namespace ShareX.MediaLib
|
||||||
{
|
{
|
||||||
|
@ -305,8 +306,7 @@ private async void btnBackgroundImageFilePathBrowse_Click(object sender, EventAr
|
||||||
|
|
||||||
private async void btnResetOptions_Click(object sender, EventArgs e)
|
private async void btnResetOptions_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// TODO: Translate
|
if (MessageBox.Show(Resources.WouldYouLikeToResetOptions, "ShareX - " + Resources.Confirmation, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
|
||||||
if (MessageBox.Show("Would you like to reset options?", "ShareX - " + "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
|
|
||||||
{
|
{
|
||||||
Options.ResetOptions();
|
Options.ResetOptions();
|
||||||
LoadOptions();
|
LoadOptions();
|
||||||
|
|
18
ShareX.MediaLib/Properties/Resources.Designer.cs
generated
18
ShareX.MediaLib/Properties/Resources.Designer.cs
generated
|
@ -114,6 +114,15 @@ internal static string AlignmentVerticalCenter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Confirmation.
|
||||||
|
/// </summary>
|
||||||
|
internal static string Confirmation {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Confirmation", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -226,5 +235,14 @@ internal static string VideoThumbnailerForm_btnBrowse_Click_Browse_for_media_fil
|
||||||
return ResourceManager.GetString("VideoThumbnailerForm_btnBrowse_Click_Browse_for_media_file", resourceCulture);
|
return ResourceManager.GetString("VideoThumbnailerForm_btnBrowse_Click_Browse_for_media_file", resourceCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Would you like to reset options?.
|
||||||
|
/// </summary>
|
||||||
|
internal static string WouldYouLikeToResetOptions {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("WouldYouLikeToResetOptions", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,4 +172,10 @@
|
||||||
<data name="printer" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="printer" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\printer.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\printer.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Confirmation" xml:space="preserve">
|
||||||
|
<value>Confirmation</value>
|
||||||
|
</data>
|
||||||
|
<data name="WouldYouLikeToResetOptions" xml:space="preserve">
|
||||||
|
<value>Would you like to reset options?</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -1248,8 +1248,7 @@ public void ForceClose()
|
||||||
{
|
{
|
||||||
if (ScreenRecordManager.IsRecording)
|
if (ScreenRecordManager.IsRecording)
|
||||||
{
|
{
|
||||||
// TODO: Translate
|
if (MessageBox.Show(Resources.ShareXCannotBeClosedWhileScreenRecordingIsActive, "ShareX",
|
||||||
if (MessageBox.Show("ShareX cannot be closed while screen recording is active.\r\n\r\nDo you want to abort the active screen recording?", "ShareX",
|
|
||||||
MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
|
MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
ScreenRecordManager.AbortRecording();
|
ScreenRecordManager.AbortRecording();
|
||||||
|
|
38
ShareX/Properties/Resources.Designer.cs
generated
38
ShareX/Properties/Resources.Designer.cs
generated
|
@ -1039,6 +1039,15 @@ public static string ClipboardFormatForm_ClipboardFormatForm_Supported_variables
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Clipboard upload.
|
||||||
|
/// </summary>
|
||||||
|
public static string ClipboardUpload {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("ClipboardUpload", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -2520,6 +2529,17 @@ public static System.Drawing.Bitmap script__minus {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to ShareX cannot be closed while screen recording is active.
|
||||||
|
///
|
||||||
|
///Do you want to abort the active screen recording?.
|
||||||
|
/// </summary>
|
||||||
|
public static string ShareXCannotBeClosedWhileScreenRecordingIsActive {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("ShareXCannotBeClosedWhileScreenRecordingIsActive", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to ShareX - Confirmation.
|
/// Looks up a localized string similar to ShareX - Confirmation.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -2538,6 +2558,15 @@ public static string ShareXIsMinimizedToTheSystemTray {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to ShareX is up to date!.
|
||||||
|
/// </summary>
|
||||||
|
public static string ShareXIsUpToDate {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("ShareXIsUpToDate", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to ShareX needs to be restarted for the personal folder changes to apply.
|
/// Looks up a localized string similar to ShareX needs to be restarted for the personal folder changes to apply.
|
||||||
///
|
///
|
||||||
|
@ -3194,6 +3223,15 @@ public static string WouldYouLikeToResetThemes {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Would you like to retry clipboard upload?.
|
||||||
|
/// </summary>
|
||||||
|
public static string WouldYouLikeToRetryClipboardUpload {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("WouldYouLikeToRetryClipboardUpload", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1128,4 +1128,18 @@ Middle click to close</value>
|
||||||
<data name="picture-sunset" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="picture-sunset" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\picture-sunset.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\picture-sunset.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="ShareXCannotBeClosedWhileScreenRecordingIsActive" xml:space="preserve">
|
||||||
|
<value>ShareX cannot be closed while screen recording is active.
|
||||||
|
|
||||||
|
Do you want to abort the active screen recording?</value>
|
||||||
|
</data>
|
||||||
|
<data name="ShareXIsUpToDate" xml:space="preserve">
|
||||||
|
<value>ShareX is up to date!</value>
|
||||||
|
</data>
|
||||||
|
<data name="ClipboardUpload" xml:space="preserve">
|
||||||
|
<value>Clipboard upload</value>
|
||||||
|
</data>
|
||||||
|
<data name="WouldYouLikeToRetryClipboardUpload" xml:space="preserve">
|
||||||
|
<value>Would you like to retry clipboard upload?</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -1936,8 +1936,7 @@ public static async Task DownloadDevBuild()
|
||||||
}
|
}
|
||||||
else if (updateChecker.Status == UpdateStatus.UpToDate)
|
else if (updateChecker.Status == UpdateStatus.UpToDate)
|
||||||
{
|
{
|
||||||
// TODO: Translate
|
MessageBox.Show(Resources.ShareXIsUpToDate, "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
MessageBox.Show("ShareX is up to date!", "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -241,8 +241,7 @@ public static void ClipboardUpload(TaskSettings taskSettings = null)
|
||||||
{
|
{
|
||||||
DebugHelper.WriteException(e);
|
DebugHelper.WriteException(e);
|
||||||
|
|
||||||
// TODO: Translate
|
if (MessageBox.Show("\"" + e.Message + "\"\r\n\r\n" + Resources.WouldYouLikeToRetryClipboardUpload, "ShareX - " + Resources.ClipboardUpload,
|
||||||
if (MessageBox.Show("\"" + e.Message + "\"\r\n\r\n" + "Would you like to retry clipboard upload?", "ShareX - " + "Clipboard upload",
|
|
||||||
MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
|
MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
ClipboardUpload(taskSettings);
|
ClipboardUpload(taskSettings);
|
||||||
|
|
Loading…
Reference in a new issue