You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MessageBoxAdv.Show(this,"The selected document doesn't exist (anymore).\r\n\r\nPlease select a new one.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
140
+
MessageBoxAdv2.Show("The selected document doesn't exist (anymore).\r\n\r\nPlease select a new one.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
MessageBoxAdv.Show(this,$"The selected document is too large.\r\n\r\nIt's {sizeMB:N2} MB, while the max is {Variables.AppSettings.DocumentMaxSizeMB} MB.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
158
+
MessageBoxAdv2.Show($"The selected document is too large.\r\n\r\nIt's {sizeMB:N2} MB, while the max is {Variables.AppSettings.DocumentMaxSizeMB} MB.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
Log.Fatal(ex,"[DOCUMENT] Error while checking document '{doc}': {err}",file,ex.Message);
199
-
MessageBoxAdv.Show(this,"Something went wrong while checking the document.\r\n\r\nPlease check the logs and try again.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
197
+
MessageBoxAdv2.Show("Something went wrong while checking the document.\r\n\r\nPlease check the logs and try again.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
MessageBoxAdv.Show(this,"The selected document doesn't exist (anymore).\r\n\r\nPlease select a new one.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
236
+
MessageBoxAdv2.Show("The selected document doesn't exist (anymore).\r\n\r\nPlease select a new one.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Exclamation);
Log.Fatal(ex,"[TEXT] Connection error while translating the text: {err}",ex.Message);
172
-
MessageBoxAdv.Show(this,"Unable to establish a connection to DeepL's servers.\r\n\r\nPlease try again later.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
170
+
MessageBoxAdv2.Show("Unable to establish a connection to DeepL's servers.\r\n\r\nPlease try again later.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
173
171
}
174
172
catch(DocumentTranslationExceptionex)
175
173
{
176
174
Log.Fatal(ex,"[TEXT] Error while translating the text: {err}",ex.Message);
177
-
MessageBoxAdv.Show(this,"Something went wrong on DeepL's end while translating the text.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
175
+
MessageBoxAdv2.Show("Something went wrong on DeepL's end while translating the text.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
178
176
}
179
177
catch(Exceptionex)
180
178
{
181
179
Log.Fatal(ex,"[TEXT] Error while attempting to translate the text: {err}",ex.Message);
182
-
MessageBoxAdv.Show(this,"Something went wrong on our end while translating the text.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
180
+
MessageBoxAdv2.Show("Something went wrong on our end while translating the text.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
MessageBoxAdv.Show(this,"Only .txt documents are supported here.\r\n\r\nFor other formats, use the 'documents' tab.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
258
+
MessageBoxAdv2.Show("Only .txt documents are supported here.\r\n\r\nFor other formats, use the 'documents' tab.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
varq=MessageBoxAdv.Show(this,"Page succesfully saved as a text file!\r\n\nClick 'ok' to open its folder.",Variables.MessageBoxTitle,MessageBoxButtons.OKCancel,MessageBoxIcon.Information);
453
+
varq=MessageBoxAdv2.Show("Page succesfully saved as a text file!\r\n\nClick 'ok' to open its folder.",Variables.MessageBoxTitle,MessageBoxButtons.OKCancel,MessageBoxIcon.Information);
Log.Fatal(ex,"[URL] Error while saving to pdf: {err}",ex.Message);
463
-
MessageBoxAdv.Show(this,"Something went wrong while saving the page to pdf.\r\n\r\nTry using the print method with Window's pdf printer.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
461
+
MessageBoxAdv2.Show("Something went wrong while saving the page to pdf.\r\n\r\nTry using the print method with Window's pdf printer.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
if(result)MessageBoxAdv.Show(this,"The translated text has been sent to your printer.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Information);
490
-
elseMessageBoxAdv.Show(this,"Something went wrong when trying to print the translated text.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
487
+
if(result)MessageBoxAdv2.Show("The translated text has been sent to your printer.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Information);
488
+
elseMessageBoxAdv2.Show("Something went wrong when trying to print the translated text.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
491
489
}
492
490
catch(Exceptionex)
493
491
{
494
492
Log.Fatal(ex,"[URL] Error while trying to print: {err}",ex.Message);
495
-
MessageBoxAdv.Show(this,"Something went wrong while trying to print.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
493
+
MessageBoxAdv2.Show("Something went wrong while trying to print.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
Log.Fatal(ex,"[URL] WebView2 runtime not found, unable to initialize: {err}",ex.Message);
118
113
119
-
varq=MessageBoxAdv.Show(this,"Microsoft's WebView2 runtime isn't found on your machine. This is a required component for showing your webpages.\r\n\r\n"+
114
+
varq=MessageBoxAdv2.Show("Microsoft's WebView2 runtime isn't found on your machine. This is a required component for showing your webpages.\r\n\r\n"+
120
115
"Usually this is handled by the installer, but you can still install it manually.\r\n\r\n"+
121
116
"Do you want to download the runtime installer?",Variables.MessageBoxTitle,MessageBoxButtons.YesNo,MessageBoxIcon.Error);
MessageBoxAdv.Show(this,"Something went wrong while saving the page to pdf.\r\n\r\nTry using the print method with Window's pdf printer.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
589
+
MessageBoxAdv2.Show("Something went wrong while saving the page to pdf.\r\n\r\nTry using the print method with Window's pdf printer.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
595
590
return;
596
591
}
597
592
598
-
varq=MessageBoxAdv.Show(this,"Page succesfully saved to pdf!\r\n\nClick 'ok' to open its folder.",Variables.MessageBoxTitle,MessageBoxButtons.OKCancel,MessageBoxIcon.Information);
593
+
varq=MessageBoxAdv2.Show("Page succesfully saved to pdf!\r\n\nClick 'ok' to open its folder.",Variables.MessageBoxTitle,MessageBoxButtons.OKCancel,MessageBoxIcon.Information);
Log.Fatal(ex,"[URL] Error while saving to pdf: {err}",ex.Message);
607
-
MessageBoxAdv.Show(this,"Something went wrong while saving the page to pdf.\r\n\r\nTry using the print method with Window's pdf printer.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
602
+
MessageBoxAdv2.Show("Something went wrong while saving the page to pdf.\r\n\r\nTry using the print method with Window's pdf printer.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
Log.Fatal(ex,"[URL] Error while opening in browser: {err}",ex.Message);
641
-
MessageBoxAdv.Show(this,"Something went wrong while opening the page in your browser.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
636
+
MessageBoxAdv2.Show("Something went wrong while opening the page in your browser.",Variables.MessageBoxTitle,MessageBoxButtons.OK,MessageBoxIcon.Error);
0 commit comments