From 0da933a0146a0689546b21231e14f2dfc2bc14e8 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 23 Feb 2022 23:36:37 +0100 Subject: Switched to use ContentBundle's GetText --- Stars45/MsnObjDlg.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Stars45/MsnObjDlg.cpp') diff --git a/Stars45/MsnObjDlg.cpp b/Stars45/MsnObjDlg.cpp index 3052495..3089c91 100644 --- a/Stars45/MsnObjDlg.cpp +++ b/Stars45/MsnObjDlg.cpp @@ -22,6 +22,7 @@ #include "StarSystem.h" #include "Game.h" +#include "ContentBundle.h" #include "Mouse.h" #include "Button.h" #include "ComboBox.h" @@ -141,7 +142,7 @@ MsnObjDlg::Show() objectives->SetText(""); } else { - objectives->SetText(Game::GetInstance()->GetText("MsnDlg.no-mission")); + objectives->SetText(ContentBundle::GetInstance()->GetText("MsnDlg.no-mission")); } } @@ -150,11 +151,11 @@ MsnObjDlg::Show() if (mission->IsOK()) sitrep->SetText(mission->Situation()); else - sitrep->SetText(Game::GetInstance()->GetText("MsnDlg.found-errors") + + sitrep->SetText(ContentBundle::GetInstance()->GetText("MsnDlg.found-errors") + mission->ErrorMessage()); } else { - sitrep->SetText(Game::GetInstance()->GetText("MsnDlg.no-mission")); + sitrep->SetText(ContentBundle::GetInstance()->GetText("MsnDlg.no-mission")); } } @@ -220,7 +221,7 @@ MsnObjDlg::Show() if (cmb_skin && design && design->skins.size()) { cmb_skin->Show(); - cmb_skin->AddItem(Game::GetInstance()->GetText("MsnDlg.default")); + cmb_skin->AddItem(ContentBundle::GetInstance()->GetText("MsnDlg.default")); cmb_skin->SetSelection(0); ListIter iter = ((ShipDesign*) design)->skins; -- cgit v1.1