mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 22:11:18 +12:00
Additional localization fixes (#966)
This commit is contained in:
parent
c66ab0c51a
commit
96800c6f97
16 changed files with 68 additions and 123 deletions
|
@ -445,7 +445,7 @@ void GraphicPacksWindow2::OnTreeSelectionChanged(wxTreeEvent& event)
|
|||
m_graphic_pack_name->SetLabel(wxHelper::FromUtf8(m_gp_name));
|
||||
|
||||
if (gp->GetDescription().empty())
|
||||
m_gp_description = _("This graphic pack has no description");
|
||||
m_gp_description = _("This graphic pack has no description").utf8_string();
|
||||
else
|
||||
m_gp_description = gp->GetDescription();
|
||||
|
||||
|
@ -609,7 +609,7 @@ void GraphicPacksWindow2::OnCheckForUpdates(wxCommandEvent& event)
|
|||
|
||||
// check if enabled graphic packs are lost:
|
||||
const auto& new_packs = GraphicPack2::GetGraphicPacks();
|
||||
std::stringstream str;
|
||||
std::stringstream lost_packs;
|
||||
for(const auto& p : old_packs)
|
||||
{
|
||||
if (!p->IsEnabled())
|
||||
|
@ -622,15 +622,16 @@ void GraphicPacksWindow2::OnCheckForUpdates(wxCommandEvent& event)
|
|||
|
||||
if(it == new_packs.cend())
|
||||
{
|
||||
str << p->GetPath() << std::endl;
|
||||
lost_packs << p->GetPath() << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
const auto packs = str.str();
|
||||
if(!packs.empty())
|
||||
const auto lost_packs_str = lost_packs.str();
|
||||
if (!lost_packs_str.empty())
|
||||
{
|
||||
wxMessageBox(fmt::format("{}\n \n{} \n{}", _("This update removed or renamed the following graphic packs:").utf8_string(), packs, _("You may need to set them up again.").utf8_string()),
|
||||
_("Warning"), wxOK | wxCENTRE | wxICON_INFORMATION, this);
|
||||
wxString message = _("This update removed or renamed the following graphic packs:");
|
||||
message << "\n \n" << lost_packs_str << " \n" << _("You may need to set them up again.");
|
||||
wxMessageBox(message, _("Warning"), wxOK | wxCENTRE | wxICON_INFORMATION, this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue