From 15c53d40f5f23ff75924bb13c081a4a0fc5724cc Mon Sep 17 00:00:00 2001 From: sum2012 Date: Thu, 29 Jan 2015 22:59:05 +0800 Subject: [PATCH 1/2] Make "Failed to load state" translatable --- Core/SaveState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/SaveState.cpp b/Core/SaveState.cpp index 2d946067bf..af3200eda4 100644 --- a/Core/SaveState.cpp +++ b/Core/SaveState.cpp @@ -324,7 +324,7 @@ namespace SaveState Load(fn, callback, cbUserData); } else { I18NCategory *s = GetI18NCategory("Screen"); - osm.Show("Failed to load state. Error in the file system.", 2.0); + osm.Show(s->T("Failed to load state. Error in the file system."), 2.0); if (callback) callback(false, cbUserData); } From b7094c7e2acb7c56d396a16afe92d2947e384926 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Thu, 29 Jan 2015 23:32:13 +0800 Subject: [PATCH 2/2] Change to System section --- Core/SaveState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/SaveState.cpp b/Core/SaveState.cpp index af3200eda4..58cafbc602 100644 --- a/Core/SaveState.cpp +++ b/Core/SaveState.cpp @@ -323,8 +323,8 @@ namespace SaveState if (!fn.empty()) { Load(fn, callback, cbUserData); } else { - I18NCategory *s = GetI18NCategory("Screen"); - osm.Show(s->T("Failed to load state. Error in the file system."), 2.0); + I18NCategory *sy = GetI18NCategory("System"); + osm.Show(sy->T("Failed to load state. Error in the file system."), 2.0); if (callback) callback(false, cbUserData); }