UI: Fix some typo's and casing in UI

This commit is contained in:
refractionpcsx2 2023-06-22 17:32:44 +01:00
parent 2b7eeba55c
commit cc9b9a1935
9 changed files with 20 additions and 20 deletions

View File

@ -166,7 +166,7 @@
<item> <item>
<widget class="QLabel" name="label_7"> <widget class="QLabel" name="label_7">
<property name="text"> <property name="text">
<string>Low compatiblity warning: yes, it's very big, but may not work with many games.</string> <string>Low compatibility warning: yes, it's very big, but may not work with many games.</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>

View File

@ -678,7 +678,7 @@ GraphicsSettingsWidget::GraphicsSettingsWidget(SettingsDialog* dialog, QWidget*
tr("Displays various settings and the current values of those settings, useful for debugging.")); tr("Displays various settings and the current values of those settings, useful for debugging."));
dialog->registerWidgetHelp(m_ui.osdShowInputs, tr("Show Inputs"), tr("Unchecked"), dialog->registerWidgetHelp(m_ui.osdShowInputs, tr("Show Inputs"), tr("Unchecked"),
tr("Shows the current controler state of the system in the bottom left corner of the display.")); tr("Shows the current controller state of the system in the bottom left corner of the display."));
dialog->registerWidgetHelp( dialog->registerWidgetHelp(
m_ui.osdShowFrameTimes, tr("Show Frame Times"), tr("Unchecked"), tr("Displays a graph showing the average frametimes.")); m_ui.osdShowFrameTimes, tr("Show Frame Times"), tr("Unchecked"), tr("Displays a graph showing the average frametimes."));

View File

@ -237,7 +237,7 @@
<item row="6" column="1"> <item row="6" column="1">
<widget class="QSpinBox" name="stretchY"> <widget class="QSpinBox" name="stretchY">
<property name="suffix"> <property name="suffix">
<string extracomment="Percentage sign that shows next to a value. You might want to add a space before if you language requires it.">%</string> <string extracomment="Percentage sign that shows next to a value. You might want to add a space before if your language requires it.">%</string>
</property> </property>
<property name="minimum"> <property name="minimum">
<number>1</number> <number>1</number>

View File

@ -2481,7 +2481,7 @@ You cannot undo this action.</source>
</message> </message>
<message> <message>
<location filename="../Settings/CreateMemoryCardDialog.ui" line="169"/> <location filename="../Settings/CreateMemoryCardDialog.ui" line="169"/>
<source>Low compatiblity warning: yes, it&apos;s very big, but may not work with many games.</source> <source>Low compatibility warning: yes, it&apos;s very big, but may not work with many games.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
@ -4617,7 +4617,7 @@ Scanning recursively takes more time, but will identify files in subdirectories.
<location filename="../Settings/GraphicsSettingsWidget.ui" line="1413"/> <location filename="../Settings/GraphicsSettingsWidget.ui" line="1413"/>
<location filename="../Settings/GraphicsSettingsWidget.ui" line="1598"/> <location filename="../Settings/GraphicsSettingsWidget.ui" line="1598"/>
<source>%</source> <source>%</source>
<extracomment>Percentage sign that shows next to a value. You might want to add a space before if you language requires it. <extracomment>Percentage sign that shows next to a value. You might want to add a space before if your language requires it.
---------- ----------
Percentage sign that will appear next to a number. Add a space or whatever is needed before depending on your language.</extracomment> Percentage sign that will appear next to a number. Add a space or whatever is needed before depending on your language.</extracomment>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -5981,7 +5981,7 @@ Swap chain: see Microsoft&apos;s Terminology Portal.</extracomment>
</message> </message>
<message> <message>
<location filename="../Settings/GraphicsSettingsWidget.cpp" line="681"/> <location filename="../Settings/GraphicsSettingsWidget.cpp" line="681"/>
<source>Shows the current controler state of the system in the bottom left corner of the display.</source> <source>Shows the current controller state of the system in the bottom left corner of the display.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
@ -8320,22 +8320,22 @@ The saves will not be recoverable.</source>
<message> <message>
<location filename="../../pcsx2/MemoryCardFile.cpp" line="538"/> <location filename="../../pcsx2/MemoryCardFile.cpp" line="538"/>
<location filename="../../pcsx2/MemoryCardFolder.cpp" line="2362"/> <location filename="../../pcsx2/MemoryCardFolder.cpp" line="2362"/>
<source>Memory card &apos;{}&apos; was saved to storage.</source> <source>Memory Card &apos;{}&apos; was saved to storage.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../pcsx2/Sio.cpp" line="212"/> <location filename="../../pcsx2/Sio.cpp" line="212"/>
<source>Memory card in port %d / slot %d reinserted</source> <source>Memory Card in port %d / slot %d reinserted</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../pcsx2/Sio.cpp" line="594"/> <location filename="../../pcsx2/Sio.cpp" line="594"/>
<source>Memory card in port {} / slot {} reinserted.</source> <source>Memory Card in port {} / slot {} reinserted.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../pcsx2/Sio.cpp" line="934"/> <location filename="../../pcsx2/Sio.cpp" line="934"/>
<source>Force ejecting all memory cards.</source> <source>Force ejecting all Memory Cards.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>

View File

@ -3421,7 +3421,7 @@ void FullscreenUI::DrawMemoryCardSettingsPage()
DrawToggleSetting(bsi, ICON_FA_SEARCH " Folder Memory Card Filter", DrawToggleSetting(bsi, ICON_FA_SEARCH " Folder Memory Card Filter",
"Simulates a larger memory card by filtering saves only to the current game.", "EmuCore", "McdFolderAutoManage", true); "Simulates a larger memory card by filtering saves only to the current game.", "EmuCore", "McdFolderAutoManage", true);
DrawToggleSetting(bsi, ICON_FA_MAGIC " Auto Eject When Loading", DrawToggleSetting(bsi, ICON_FA_MAGIC " Auto Eject When Loading",
"Automatically ejects memory cards when they differ after loading a state.", "EmuCore", "McdEnableEjection", true); "Automatically ejects Memory Cards when they differ after loading a state.", "EmuCore", "McdEnableEjection", true);
for (u32 port = 0; port < NUM_MEMORY_CARD_PORTS; port++) for (u32 port = 0; port < NUM_MEMORY_CARD_PORTS; port++)
{ {
@ -3514,7 +3514,7 @@ void FullscreenUI::DrawCreateMemoryCardWindow()
if (ImGui::BeginPopupModal("Create Memory Card", &is_open, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize)) if (ImGui::BeginPopupModal("Create Memory Card", &is_open, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize))
{ {
ImGui::TextWrapped("Enter the name of the memory card you wish to create, and choose a size. We recommend either using 8MB memory " ImGui::TextWrapped("Enter the name of the memory card you wish to create, and choose a size. We recommend either using 8MB memory "
"cards, or folder memory cards for best compatibility."); "cards, or folder Memory Cards for best compatibility.");
ImGui::NewLine(); ImGui::NewLine();
static char memcard_name[256] = {}; static char memcard_name[256] = {};
@ -3550,7 +3550,7 @@ void FullscreenUI::DrawCreateMemoryCardWindow()
const auto& [type_title, type, file_type] = memcard_types[memcard_type]; const auto& [type_title, type, file_type] = memcard_types[memcard_type];
if (FileMcd_CreateNewCard(real_card_name, type, file_type)) if (FileMcd_CreateNewCard(real_card_name, type, file_type))
{ {
ShowToast(std::string(), fmt::format("Memory card '{}' created.", real_card_name)); ShowToast(std::string(), fmt::format("Memory Card '{}' created.", real_card_name));
std::memset(memcard_name, 0, sizeof(memcard_name)); std::memset(memcard_name, 0, sizeof(memcard_name));
memcard_type = 0; memcard_type = 0;

View File

@ -537,7 +537,7 @@ s32 FileMemoryCard::Save(uint slot, const u8* src, u32 adr, int size)
if (elapsed > std::chrono::seconds(5)) if (elapsed > std::chrono::seconds(5))
{ {
Host::AddIconOSDMessage(fmt::format("MemoryCardSave{}", slot), ICON_FA_SD_CARD, Host::AddIconOSDMessage(fmt::format("MemoryCardSave{}", slot), ICON_FA_SD_CARD,
fmt::format(TRANSLATE_SV("MemoryCard", "Memory card '{}' was saved to storage."), fmt::format(TRANSLATE_SV("MemoryCard", "Memory Card '{}' was saved to storage."),
Path::GetFileName(m_filenames[slot])), Path::GetFileName(m_filenames[slot])),
Host::OSD_INFO_DURATION); Host::OSD_INFO_DURATION);
last = std::chrono::system_clock::now(); last = std::chrono::system_clock::now();

View File

@ -1777,7 +1777,7 @@ void FolderMemoryCard::AttemptToRecreateIndexFile(const std::string& directory)
std::string FolderMemoryCard::GetDisabledMessage(uint slot) const std::string FolderMemoryCard::GetDisabledMessage(uint slot) const
{ {
return fmt::format("The PS2-slot {} has been automatically disabled. You can correct the problem\nand re-enable it at any time using Config:Memory cards from the main menu.", slot); //TODO: translate internal slot index to human-readable slot description return fmt::format("The PS2-slot {} has been automatically disabled. You can correct the problem\nand re-enable it at any time using Config:Memory Cards from the main menu.", slot); //TODO: translate internal slot index to human-readable slot description
} }
std::string FolderMemoryCard::GetCardFullMessage(const std::string& filePath) const std::string FolderMemoryCard::GetCardFullMessage(const std::string& filePath) const
@ -2359,7 +2359,7 @@ s32 FolderMemoryCardAggregator::Save(uint slot, const u8* src, u32 adr, int size
{ {
const std::string_view filename = Path::GetFileName(m_cards[slot].GetFolderName()); const std::string_view filename = Path::GetFileName(m_cards[slot].GetFolderName());
Host::AddIconOSDMessage(fmt::format("MemoryCardSave{}", slot), ICON_FA_SD_CARD, Host::AddIconOSDMessage(fmt::format("MemoryCardSave{}", slot), ICON_FA_SD_CARD,
fmt::format(TRANSLATE_SV("MemoryCard", "Memory card '{}' was saved to storage."), filename), fmt::format(TRANSLATE_SV("MemoryCard", "Memory Card '{}' was saved to storage."), filename),
Host::OSD_INFO_DURATION); Host::OSD_INFO_DURATION);
last = std::chrono::system_clock::now(); last = std::chrono::system_clock::now();

View File

@ -209,7 +209,7 @@ void Sio0::SetTxData(u8 value)
if (mcd->autoEjectTicks == 0) if (mcd->autoEjectTicks == 0)
{ {
Host::AddKeyedOSDMessage(fmt::format("AutoEjectSlotClear{}{}", port, slot), Host::AddKeyedOSDMessage(fmt::format("AutoEjectSlotClear{}{}", port, slot),
fmt::format(TRANSLATE_SV("MemoryCard", "Memory card in port %d / slot %d reinserted"), fmt::format(TRANSLATE_SV("MemoryCard", "Memory Card in port %d / slot %d reinserted"),
port + 1, slot + 1), port + 1, slot + 1),
Host::OSD_INFO_DURATION); Host::OSD_INFO_DURATION);
} }
@ -591,7 +591,7 @@ void Sio2::Memcard()
{ {
Host::AddKeyedOSDMessage(fmt::format("AutoEjectSlotClear{}{}", port, slot), Host::AddKeyedOSDMessage(fmt::format("AutoEjectSlotClear{}{}", port, slot),
fmt::format( fmt::format(
TRANSLATE_SV("MemoryCard", "Memory card in port {} / slot {} reinserted."), port + 1, slot + 1), TRANSLATE_SV("MemoryCard", "Memory Card in port {} / slot {} reinserted."), port + 1, slot + 1),
Host::OSD_INFO_DURATION); Host::OSD_INFO_DURATION);
} }
@ -931,7 +931,7 @@ void AutoEject::Clear(size_t port, size_t slot)
void AutoEject::SetAll() void AutoEject::SetAll()
{ {
Host::AddIconOSDMessage("AutoEjectAllSet", ICON_FA_SD_CARD, Host::AddIconOSDMessage("AutoEjectAllSet", ICON_FA_SD_CARD,
TRANSLATE_SV("MemoryCard", "Force ejecting all memory cards."), Host::OSD_INFO_DURATION); TRANSLATE_SV("MemoryCard", "Force ejecting all Memory Cards."), Host::OSD_INFO_DURATION);
for (size_t port = 0; port < SIO::PORTS; port++) for (size_t port = 0; port < SIO::PORTS; port++)
{ {

View File

@ -1143,7 +1143,7 @@ bool VMManager::Initialize(VMBootParameters boot_params)
// Must be before updating serial because of folder memcards. // Must be before updating serial because of folder memcards.
if (!GSDumpReplayer::IsReplayingDump()) if (!GSDumpReplayer::IsReplayingDump())
{ {
Console.WriteLn("Opening memory cards..."); Console.WriteLn("Opening Memory cards...");
FileMcd_EmuOpen(); FileMcd_EmuOpen();
} }
ScopedGuard close_memcards(&FileMcd_EmuClose); ScopedGuard close_memcards(&FileMcd_EmuClose);