Skip to content

Commit 4c96067

Browse files
authored
Merge pull request #25 from EnesEfeTokta/Develop
The documents have been translated into professional English.
2 parents d9c476e + d38af83 commit 4c96067

14 files changed

+928
-67
lines changed

FinTrack/App.xaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected override async void OnStartup(StartupEventArgs e)
110110
await _host.StartAsync();
111111

112112
var logger = _host.Services.GetRequiredService<ILogger<App>>();
113-
logger.LogInformation("Uygulama başlatıldı ve Host çalışıyor.");
113+
logger.LogInformation("Application started and Host is running.");
114114

115115
var window = _host.Services.GetRequiredService<AuthenticatorWindow>();
116116
window.Show();
@@ -123,17 +123,17 @@ private void SetupGlobalExceptionHandling()
123123
DispatcherUnhandledException += (sender, e) =>
124124
{
125125
var logger = _host.Services.GetRequiredService<ILogger<App>>();
126-
logger.LogCritical(e.Exception, "YAKALANAMAYAN UI HATASI!");
126+
logger.LogCritical(e.Exception, "UNHANDLED UI EXCEPTION!");
127127

128-
MessageBox.Show("Beklenmedik bir hata oluştu. Uygulama kapanacak. Detaylar log dosyasına yazıldı.", "Kritik Hata", MessageBoxButton.OK, MessageBoxImage.Error);
128+
MessageBox.Show("An unexpected error occurred. The application will close. Details have been written to the log file.", "Critical Error", MessageBoxButton.OK, MessageBoxImage.Error);
129129
e.Handled = true;
130130
Shutdown();
131131
};
132132

133133
AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
134134
{
135135
var logger = _host.Services.GetRequiredService<ILogger<App>>();
136-
logger.LogCritical(e.ExceptionObject as Exception, "YAKALANAMAYAN ARKA PLAN HATASI!");
136+
logger.LogCritical(e.ExceptionObject as Exception, "UNHANDLED BACKGROUND EXCEPTION!");
137137
};
138138
}
139139

0 commit comments

Comments
 (0)