Core: Make some additional OSD messages translatable

This commit is contained in:
Albert Liu
2020-10-22 02:07:48 -07:00
parent 2b2e2f7854
commit f69889264d
6 changed files with 27 additions and 17 deletions

View File

@ -1663,8 +1663,9 @@ bool RemoveMediaPathFromPlaylist(u32 index)
if (GetMediaPlaylistIndex() == index)
{
g_host_interface->AddFormattedOSDMessage(10.0f,
"Removing current media from playlist, removing media from CD-ROM.");
g_host_interface->AddFormattedOSDMessage(
10.0f,
g_host_interface->TranslateString("System", "Removing current media from playlist, removing media from CD-ROM."));
g_cdrom.RemoveMedia();
}
@ -1679,7 +1680,9 @@ bool ReplaceMediaPathFromPlaylist(u32 index, const std::string_view& path)
if (GetMediaPlaylistIndex() == index)
{
g_host_interface->AddFormattedOSDMessage(10.0f, "Changing current media from playlist, replacing current media.");
g_host_interface->AddFormattedOSDMessage(
10.0f,
g_host_interface->TranslateString("System", "Changing current media from playlist, replacing current media."));
g_cdrom.RemoveMedia();
s_media_playlist[index] = path;