From 63321942a9407802a8840713486d6848b5e4b57b Mon Sep 17 00:00:00 2001 From: lukeIam <2lukeiam@gmail.com> Date: Sun, 28 Jan 2018 15:23:52 +0100 Subject: [PATCH] Workaround for the xml special char issue --- Output/Languages/English.xml | 2 +- Vocaluxe/Reporting/Reporter.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Output/Languages/English.xml b/Output/Languages/English.xml index 948080a0..63a4bad3 100644 --- a/Output/Languages/English.xml +++ b/Output/Languages/English.xml @@ -245,7 +245,7 @@ We are sorry that Vocaluxe run into an error and crashed.\r\nTo help us fix the problem please send us a report.\r\nEdit the following log before submitting to remove possibly sensitive information. that you experienced an error.\r\nTo help us fix the problem please send us a report.\r\nEdit the following log before submitting to remove possibly sensitive information. - Don\'t upload anything (you can still copy the error message above) + Do not upload anything (you can still copy the error message above) Upload and open an issue (publicly visible + requires a github account) Upload and get a link to your report (publicly visible) Submit diff --git a/Vocaluxe/Reporting/Reporter.cs b/Vocaluxe/Reporting/Reporter.cs index e6297e3a..51f6d297 100644 --- a/Vocaluxe/Reporting/Reporter.cs +++ b/Vocaluxe/Reporting/Reporter.cs @@ -31,8 +31,8 @@ namespace Vocaluxe.Reporting public partial class CReporter : Form { private readonly string _TitleText = CLanguage.Translate("TR_REPORTER_TITLE_TEXT"); - private readonly string _MessageCrashText = CLanguage.Translate("TR_REPORTER_MESSAGE_CRASH_TEXT"); - private readonly string _MessageNoCrashText = CLanguage.Translate("TR_REPORTER_MESSAGE_NO_CRASH_TEXT"); + private readonly string _MessageCrashText = CLanguage.Translate("TR_REPORTER_MESSAGE_CRASH_TEXT").Replace("\\n", "\n").Replace("\\r", "\r"); + private readonly string _MessageNoCrashText = CLanguage.Translate("TR_REPORTER_MESSAGE_NO_CRASH_TEXT").Replace("\\n", "\n").Replace("\\r", "\r"); private readonly string _NoUploadText = CLanguage.Translate("TR_REPORTER_NO_UPLOAD_TEXT"); private readonly string _GistAndIssueText = CLanguage.Translate("TR_REPORTER_GIST_AND_ISSUE_TEXT"); private readonly string _GistOnlyText = CLanguage.Translate("TR_REPORTER_GIST_ONLY_TEXT"); @@ -44,7 +44,7 @@ namespace Vocaluxe.Reporting private readonly string _LogUploadErrorText = CLanguage.Translate("TR_REPORTER_LOGUPLOAD_ERROR_TEXT"); private readonly string _LastErrorTitleText = CLanguage.Translate("TR_REPORTER_LAST_ERROR_TITLE_TEXT"); private readonly string _LastErrorNa = CLanguage.Translate("TR_REPORTER_LAST_ERROR_NA"); - private readonly string _IssueTemplate = CLanguage.Translate("TR_REPORTER_ISSUE_TEMPLATE"); + private readonly string _IssueTemplate = CLanguage.Translate("TR_REPORTER_ISSUE_TEMPLATE").Replace("\\n", "\n").Replace("\\r", "\r"); //CLanguage.Translate("TR_DEBUG_AUDIO_STREAMS")