PandaWood / ExceptionReporter.NET

ExceptionReporter is a .NET component that gathers detailed information on an Exception and the application/system running it. It allows the user to copy, save or send a custom-formatted report to the developer
MIT License
51 stars 32 forks source link

Localization via resx #17 #50

Closed makeProjectGreatAgain closed 3 years ago

makeProjectGreatAgain commented 3 years ago

Added localization Made buttons a little bigger Tried not to change anything else

PandaWood commented 3 years ago

Thanks looks good, I'll try to run it up and give it a quick test shortly

makeProjectGreatAgain commented 3 years ago

I also added this test, you can use it

                [Test]
        [Ignore("UI")]
        public static void TestRunManually()
        {
            var thread = new Thread(() =>
            {
              Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfoByIetfLanguageTag("ru");
              Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfoByIetfLanguageTag("ru");
              var er = new ExceptionReporter
                {
                    Config =
                    {
                        AppName = "PhotoFuzz",
                        AppVersion = "1.0",
                        CompanyName = "photofuzz",
                        SendMethod = ReportSendMethod.SimpleMAPI,
                        EmailReportAddress = "PhotoFuzz@gmail.com",
                        ShowLessDetailButton = true,
                        TakeScreenshot = true,
                        ReportTemplateFormat = TemplateFormat.Markdown,
                        ReportCustomTemplate = "Done!",
                        AttachmentFilename = $"{DateTime.UtcNow.ToString("dd-MM-yy_HH-mm")}_report",
                        FilesToAttach = new[] {"app.log"}
                    }
                };
                var ex = new Exception("Test Exception");
                er.Show(ex);
            });
            thread.SetApartmentState(ApartmentState.STA);
            thread.Start();
            thread.Join();
        }
PandaWood commented 3 years ago

I noticed the whole thing doesn't work (including test) if you open the solution ExceptionReport.NET-traditional.sln So we might have to ditch that one at the same time - if that's reasonable...