From 4b6946dcecc278c6f32406c015a31b4a5abfabd3 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 19 Mar 2014 09:19:20 -0700 Subject: [PATCH] Reinitialize the crash error message after the UI language is selected --- src/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 179ec6377..05a7672b9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -104,6 +104,9 @@ AegisubApp::AegisubApp() { wxDEFINE_EVENT(EVT_CALL_THUNK, wxThreadEvent); +/// Message displayed when an exception has occurred. +static wxString exception_message = "Oops, Aegisub has crashed!\n\nAn attempt has been made to save a copy of your file to:\n\n%s\n\nAegisub will now close."; + /// @brief Gets called when application starts. /// @return bool bool AegisubApp::OnInit() { @@ -233,6 +236,8 @@ bool AegisubApp::OnInit() { } locale.Init(lang); + exception_message = _("Oops, Aegisub has crashed!\n\nAn attempt has been made to save a copy of your file to:\n\n%s\n\nAegisub will now close."); + // Load plugins RegisterBuiltInPlugins(); @@ -310,9 +315,6 @@ int AegisubApp::OnExit() { return wxApp::OnExit(); } -/// Message displayed when an exception has occurred. -const static wxString exception_message = _("Oops, Aegisub has crashed!\n\nAn attempt has been made to save a copy of your file to:\n\n%s\n\nAegisub will now close."); - static void UnhandledExeception(bool stackWalk, agi::Context *c) { #if (!defined(_DEBUG) || defined(WITH_EXCEPTIONS)) && (wxUSE_ON_FATAL_EXCEPTION+0) if (c->ass && c->subsController) {