diff options
author | Aki <please@ignore.pl> | 2022-02-23 23:36:37 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-02-23 23:36:37 +0100 |
commit | 0da933a0146a0689546b21231e14f2dfc2bc14e8 (patch) | |
tree | b917762280e2094d77fae2a607d6ad3151174fce /Stars45/MsnObjDlg.cpp | |
parent | 8b778dda61c45f5d7a4dc416478c42ff4aa1de7f (diff) | |
download | starshatter-0da933a0146a0689546b21231e14f2dfc2bc14e8.zip starshatter-0da933a0146a0689546b21231e14f2dfc2bc14e8.tar.gz starshatter-0da933a0146a0689546b21231e14f2dfc2bc14e8.tar.bz2 |
Switched to use ContentBundle's GetText
Diffstat (limited to 'Stars45/MsnObjDlg.cpp')
-rw-r--r-- | Stars45/MsnObjDlg.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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<Skin> iter = ((ShipDesign*) design)->skins; |