mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Improve error message
This commit is contained in:
parent
fb7126504a
commit
a4b079f142
@ -948,10 +948,11 @@ namespace Nikse.SubtitleEdit.Forms.Translate
|
|||||||
engineType == typeof(LmStudioTranslate) ||
|
engineType == typeof(LmStudioTranslate) ||
|
||||||
engineType == typeof(OllamaTranslate))
|
engineType == typeof(OllamaTranslate))
|
||||||
{
|
{
|
||||||
|
var err = string.IsNullOrEmpty(_autoTranslator.Error) ? string.Empty : _autoTranslator.Error + Environment.NewLine;
|
||||||
var dr = MessageBox.Show(
|
var dr = MessageBox.Show(
|
||||||
string.Format(LanguageSettings.Current.GoogleTranslate.XRequiresALocalWebServer, _autoTranslator.Name)
|
string.Format(LanguageSettings.Current.GoogleTranslate.XRequiresALocalWebServer, _autoTranslator.Name)
|
||||||
+ Environment.NewLine
|
+ Environment.NewLine + err
|
||||||
+ Environment.NewLine + LanguageSettings.Current.GoogleTranslate.ReadMore,
|
+ Environment.NewLine + LanguageSettings.Current.GoogleTranslate.ReadMore + Environment.NewLine,
|
||||||
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Error);
|
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Error);
|
||||||
|
|
||||||
if (dr == DialogResult.Yes)
|
if (dr == DialogResult.Yes)
|
||||||
|
Loading…
Reference in New Issue
Block a user