From 9d2f5245f49a7bdcc265001c420bc9f61e629a34 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 28 Jul 2024 14:24:38 +0200 Subject: [PATCH] i18n: Add comments and improve source strings Most of these changes are to improve consistency in capitalization. --- .../DolphinQt/Achievements/AchievementBox.cpp | 1 + .../AchievementSettingsWidget.cpp | 2 + .../DolphinQt/Config/FilesystemWidget.cpp | 5 +- Source/Core/DolphinQt/ConvertDialog.cpp | 4 +- .../DolphinQt/Debugger/AssemblerWidget.cpp | 2 +- .../DolphinQt/Debugger/BranchWatchDialog.cpp | 12 ++-- .../DolphinQt/Debugger/CodeViewWidget.cpp | 60 +++++++++---------- .../Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp | 4 +- Source/Core/DolphinQt/GCMemcardManager.cpp | 4 +- Source/Core/DolphinQt/MainWindow.cpp | 4 +- Source/Core/DolphinQt/MenuBar.cpp | 24 ++++---- .../Core/DolphinQt/Settings/GameCubePane.cpp | 7 +-- .../Core/DolphinQt/Settings/GeneralPane.cpp | 6 +- .../Core/DolphinQt/Settings/InterfacePane.cpp | 24 ++++---- Source/Core/DolphinQt/Settings/WiiPane.cpp | 4 +- 15 files changed, 84 insertions(+), 79 deletions(-) diff --git a/Source/Core/DolphinQt/Achievements/AchievementBox.cpp b/Source/Core/DolphinQt/Achievements/AchievementBox.cpp index 63562f2573..2b73ba83b0 100644 --- a/Source/Core/DolphinQt/Achievements/AchievementBox.cpp +++ b/Source/Core/DolphinQt/Achievements/AchievementBox.cpp @@ -97,6 +97,7 @@ void AchievementBox::UpdateData() if (m_achievement->unlock_time != 0) { m_status->setText( + // i18n: %1 is a date/time. tr("Unlocked at %1") .arg(QDateTime::fromSecsSinceEpoch(m_achievement->unlock_time).toString())); } diff --git a/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp b/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp index fe83fe9146..6359fd1900 100644 --- a/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp +++ b/Source/Core/DolphinQt/Achievements/AchievementSettingsWidget.cpp @@ -114,11 +114,13 @@ void AchievementSettingsWidget::CreateLayout() m_common_layout->addWidget(m_common_login_button); m_common_layout->addWidget(m_common_logout_button); m_common_layout->addWidget(m_common_login_failed); + // i18n: Settings that affect the functionality of unlocking achievements. m_common_layout->addWidget(new QLabel(tr("Function Settings"))); m_common_layout->addWidget(m_common_hardcore_enabled_input); m_common_layout->addWidget(m_common_unofficial_enabled_input); m_common_layout->addWidget(m_common_encore_enabled_input); m_common_layout->addWidget(m_common_spectator_enabled_input); + // i18n: Settings that affect how achievements are displayed while playing. m_common_layout->addWidget(new QLabel(tr("Display Settings"))); #ifdef USE_DISCORD_PRESENCE m_common_layout->addWidget(m_common_discord_presence_enabled_input); diff --git a/Source/Core/DolphinQt/Config/FilesystemWidget.cpp b/Source/Core/DolphinQt/Config/FilesystemWidget.cpp index de8b366310..8a78981f5e 100644 --- a/Source/Core/DolphinQt/Config/FilesystemWidget.cpp +++ b/Source/Core/DolphinQt/Config/FilesystemWidget.cpp @@ -213,8 +213,7 @@ void FilesystemWidget::PopulateDirectory(int partition_id, QStandardItem* root, QString FilesystemWidget::SelectFolder() { - return DolphinFileDialog::getExistingDirectory(this, - QObject::tr("Choose the folder to extract to")); + return DolphinFileDialog::getExistingDirectory(this, QObject::tr("Choose Folder to Extract To")); } void FilesystemWidget::ShowContextMenu(const QPoint&) @@ -300,7 +299,7 @@ void FilesystemWidget::ShowContextMenu(const QPoint&) case EntryType::File: menu->addAction(tr("Extract File..."), this, [this, partition, path] { auto dest = - DolphinFileDialog::getSaveFileName(this, tr("Save File to"), QFileInfo(path).fileName()); + DolphinFileDialog::getSaveFileName(this, tr("Save File To"), QFileInfo(path).fileName()); if (!dest.isEmpty()) ExtractFile(partition, path, dest); diff --git a/Source/Core/DolphinQt/ConvertDialog.cpp b/Source/Core/DolphinQt/ConvertDialog.cpp index 4ed7536c52..1e9d5ef46d 100644 --- a/Source/Core/DolphinQt/ConvertDialog.cpp +++ b/Source/Core/DolphinQt/ConvertDialog.cpp @@ -367,7 +367,7 @@ void ConvertDialog::Convert() if (m_files.size() > 1) { dst_dir = DolphinFileDialog::getExistingDirectory( - this, tr("Select where you want to save the converted images"), + this, tr("Save Converted Image"), QFileInfo(QString::fromStdString(m_files[0]->GetFilePath())).dir().absolutePath()); if (dst_dir.isEmpty()) @@ -376,7 +376,7 @@ void ConvertDialog::Convert() else { dst_path = DolphinFileDialog::getSaveFileName( - this, tr("Select where you want to save the converted image"), + this, tr("Save Converted Image"), QFileInfo(QString::fromStdString(m_files[0]->GetFilePath())) .dir() .absoluteFilePath( diff --git a/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp b/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp index 8dba286c01..d62c5c447f 100644 --- a/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp @@ -770,7 +770,7 @@ bool AssemblerWidget::SaveEditor(AsmEditor* editor) QString selected_filter; save_path = DolphinFileDialog::getSaveFileName( - this, tr("Save File to"), QString::fromStdString(default_dir), + this, tr("Save File To"), QString::fromStdString(default_dir), QStringLiteral("%1;;%2").arg(asm_filter).arg(all_filter), &selected_filter); if (save_path.isEmpty()) diff --git a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp index 4b6233678c..3a8aaf479a 100644 --- a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp @@ -595,7 +595,7 @@ void BranchWatchDialog::OnSaveAs() } const QString filepath = DolphinFileDialog::getSaveFileName( - this, tr("Save Branch Watch snapshot"), + this, tr("Save Branch Watch Snapshot"), QString::fromStdString(File::GetUserPath(D_DUMPDEBUG_BRANCHWATCH_IDX)), tr("Text file (*.txt);;All Files (*)")); if (filepath.isEmpty()) @@ -612,7 +612,7 @@ void BranchWatchDialog::OnLoad() void BranchWatchDialog::OnLoadFrom() { const QString filepath = DolphinFileDialog::getOpenFileName( - this, tr("Load Branch Watch snapshot"), + this, tr("Load Branch Watch Snapshot"), QString::fromStdString(File::GetUserPath(D_DUMPDEBUG_BRANCHWATCH_IDX)), tr("Text file (*.txt);;All Files (*)"), nullptr, QFileDialog::Option::ReadOnly); if (filepath.isEmpty()) @@ -775,7 +775,7 @@ void BranchWatchDialog::OnToggleAutoSave(bool checked) const QString filepath = DolphinFileDialog::getSaveFileName( // i18n: If the user selects a file, Branch Watch will save to that file. // If the user presses Cancel, Branch Watch will save to a file in the user folder. - this, tr("Select Branch Watch snapshot auto-save file (for user folder location, cancel)"), + this, tr("Select Branch Watch Snapshot Auto-Save File (for user folder location, cancel)"), QString::fromStdString(File::GetUserPath(D_DUMPDEBUG_BRANCHWATCH_IDX)), tr("Text file (*.txt);;All Files (*)")); if (filepath.isEmpty()) @@ -1042,11 +1042,11 @@ QMenu* BranchWatchDialog::GetTableContextMenu(const QModelIndex& index) m_mnu_set_breakpoint = new QMenu(tr("Set Brea&kpoint")); m_act_break_on_hit = m_mnu_set_breakpoint->addAction( - tr("&Break On Hit"), this, &BranchWatchDialog::OnTableSetBreakpointBreak); - m_act_log_on_hit = m_mnu_set_breakpoint->addAction(tr("&Log On Hit"), this, + tr("&Break on Hit"), this, &BranchWatchDialog::OnTableSetBreakpointBreak); + m_act_log_on_hit = m_mnu_set_breakpoint->addAction(tr("&Log on Hit"), this, &BranchWatchDialog::OnTableSetBreakpointLog); m_act_both_on_hit = m_mnu_set_breakpoint->addAction( - tr("Break &And Log On Hit"), this, &BranchWatchDialog::OnTableSetBreakpointBoth); + tr("Break &and Log on Hit"), this, &BranchWatchDialog::OnTableSetBreakpointBoth); m_mnu_table_context->addMenu(m_mnu_set_breakpoint); } diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp index 6e7e12dcd2..c6ca41d64c 100644 --- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp @@ -156,6 +156,7 @@ CodeViewWidget::CodeViewWidget() horizontalHeader()->setStretchLastSection(true); setHorizontalHeaderItem(CODE_VIEW_COLUMN_BREAKPOINT, new QTableWidgetItem()); setHorizontalHeaderItem(CODE_VIEW_COLUMN_ADDRESS, new QTableWidgetItem(tr("Address"))); + // i18n: Short for "Instruction" setHorizontalHeaderItem(CODE_VIEW_COLUMN_INSTRUCTION, new QTableWidgetItem(tr("Instr."))); setHorizontalHeaderItem(CODE_VIEW_COLUMN_PARAMETERS, new QTableWidgetItem(tr("Parameters"))); setHorizontalHeaderItem(CODE_VIEW_COLUMN_DESCRIPTION, new QTableWidgetItem(tr("Symbols"))); @@ -569,44 +570,44 @@ void CodeViewWidget::OnContextMenu() const bool has_symbol = m_ppc_symbol_db.GetSymbolFromAddr(addr); auto* follow_branch_action = - menu->addAction(tr("Follow &branch"), this, &CodeViewWidget::OnFollowBranch); + menu->addAction(tr("Follow &Branch"), this, &CodeViewWidget::OnFollowBranch); menu->addSeparator(); - menu->addAction(tr("&Copy address"), this, &CodeViewWidget::OnCopyAddress); + menu->addAction(tr("&Copy Address"), this, &CodeViewWidget::OnCopyAddress); auto* copy_address_action = - menu->addAction(tr("Copy &function"), this, &CodeViewWidget::OnCopyFunction); + menu->addAction(tr("Copy &Function"), this, &CodeViewWidget::OnCopyFunction); auto* copy_line_action = - menu->addAction(tr("Copy code &line"), this, &CodeViewWidget::OnCopyCode); - auto* copy_hex_action = menu->addAction(tr("Copy &hex"), this, &CodeViewWidget::OnCopyHex); + menu->addAction(tr("Copy Code &Line"), this, &CodeViewWidget::OnCopyCode); + auto* copy_hex_action = menu->addAction(tr("Copy &Hex"), this, &CodeViewWidget::OnCopyHex); - menu->addAction(tr("Show in &memory"), this, &CodeViewWidget::OnShowInMemory); + menu->addAction(tr("Show in &Memory"), this, &CodeViewWidget::OnShowInMemory); auto* show_target_memory = - menu->addAction(tr("Show target in memor&y"), this, &CodeViewWidget::OnShowTargetInMemory); + menu->addAction(tr("Show Target in Memor&y"), this, &CodeViewWidget::OnShowTargetInMemory); auto* copy_target_memory = - menu->addAction(tr("Copy tar&get address"), this, &CodeViewWidget::OnCopyTargetAddress); + menu->addAction(tr("Copy Tar&get Sddress"), this, &CodeViewWidget::OnCopyTargetAddress); menu->addSeparator(); auto* symbol_rename_action = - menu->addAction(tr("&Rename symbol"), this, &CodeViewWidget::OnRenameSymbol); + menu->addAction(tr("&Rename Symbol"), this, &CodeViewWidget::OnRenameSymbol); auto* symbol_size_action = - menu->addAction(tr("Set symbol &size"), this, &CodeViewWidget::OnSetSymbolSize); + menu->addAction(tr("Set Symbol &Size"), this, &CodeViewWidget::OnSetSymbolSize); auto* symbol_end_action = - menu->addAction(tr("Set symbol &end address"), this, &CodeViewWidget::OnSetSymbolEndAddress); + menu->addAction(tr("Set Symbol &End Address"), this, &CodeViewWidget::OnSetSymbolEndAddress); menu->addSeparator(); - auto* run_to_action = menu->addAction(tr("Run &To Here"), this, &CodeViewWidget::OnRunToHere); + auto* run_to_action = menu->addAction(tr("Run &to Here"), this, &CodeViewWidget::OnRunToHere); auto* function_action = - menu->addAction(tr("&Add function"), this, &CodeViewWidget::OnAddFunction); + menu->addAction(tr("&Add Function"), this, &CodeViewWidget::OnAddFunction); auto* ppc_action = menu->addAction(tr("PPC vs Host"), this, &CodeViewWidget::OnPPCComparison); - auto* insert_blr_action = menu->addAction(tr("&Insert blr"), this, &CodeViewWidget::OnInsertBLR); - auto* insert_nop_action = menu->addAction(tr("Insert &nop"), this, &CodeViewWidget::OnInsertNOP); + auto* insert_blr_action = menu->addAction(tr("&Insert BLR"), this, &CodeViewWidget::OnInsertBLR); + auto* insert_nop_action = menu->addAction(tr("Insert &NOP"), this, &CodeViewWidget::OnInsertNOP); auto* replace_action = - menu->addAction(tr("Re&place instruction"), this, &CodeViewWidget::OnReplaceInstruction); + menu->addAction(tr("Re&place Instruction"), this, &CodeViewWidget::OnReplaceInstruction); auto* assemble_action = - menu->addAction(tr("Assemble instruction"), this, &CodeViewWidget::OnAssembleInstruction); + menu->addAction(tr("Assemble Instruction"), this, &CodeViewWidget::OnAssembleInstruction); auto* restore_action = - menu->addAction(tr("Restore instruction"), this, &CodeViewWidget::OnRestoreInstruction); + menu->addAction(tr("Restore Instruction"), this, &CodeViewWidget::OnRestoreInstruction); QString target; bool valid_load_store = false; @@ -631,14 +632,14 @@ void CodeViewWidget::OnContextMenu() follow_branch_enabled = GetBranchFromAddress(guard, addr); } - auto* run_until_menu = menu->addMenu(tr("Run until (ignoring breakpoints)")); - // i18n: One of the options shown below "Run until (ignoring breakpoints)" + auto* run_until_menu = menu->addMenu(tr("Run Until (Ignoring Breakpoints)")); + // i18n: One of the options shown below "Run Until (Ignoring Breakpoints)" run_until_menu->addAction(tr("%1's value is hit").arg(target), this, [this] { AutoStep(CodeTrace::AutoStop::Always); }); - // i18n: One of the options shown below "Run until (ignoring breakpoints)" + // i18n: One of the options shown below "Run Until (Ignoring Breakpoints)" run_until_menu->addAction(tr("%1's value is used").arg(target), this, [this] { AutoStep(CodeTrace::AutoStop::Used); }); - // i18n: One of the options shown below "Run until (ignoring breakpoints)" + // i18n: One of the options shown below "Run Until (Ignoring Breakpoints)" run_until_menu->addAction(tr("%1's value is changed").arg(target), [this] { AutoStep(CodeTrace::AutoStop::Changed); }); @@ -677,7 +678,7 @@ void CodeViewWidget::AutoStep(CodeTrace::AutoStop option) CodeTrace code_trace; bool repeat = false; - QMessageBox msgbox(QMessageBox::NoIcon, tr("Run until"), {}, QMessageBox::Cancel); + QMessageBox msgbox(QMessageBox::NoIcon, tr("Run Until"), {}, QMessageBox::Cancel); QPushButton* run_button = msgbox.addButton(tr("Keep Running"), QMessageBox::AcceptRole); // Not sure if we want default to be cancel. Spacebar can let you quickly continue autostepping if // Yes. @@ -930,7 +931,7 @@ void CodeViewWidget::OnRenameSymbol() bool good; const QString name = - QInputDialog::getText(this, tr("Rename symbol"), tr("Symbol name:"), QLineEdit::Normal, + QInputDialog::getText(this, tr("Rename Symbol"), tr("Symbol Name:"), QLineEdit::Normal, QString::fromStdString(symbol->name), &good, Qt::WindowCloseButtonHint); if (good && !name.isEmpty()) @@ -963,10 +964,9 @@ void CodeViewWidget::OnSetSymbolSize() return; bool good; - const int size = - QInputDialog::getInt(this, tr("Rename symbol"), - tr("Set symbol size (%1):").arg(QString::fromStdString(symbol->name)), - symbol->size, 1, 0xFFFF, 1, &good, Qt::WindowCloseButtonHint); + const int size = QInputDialog::getInt( + this, tr("Rename Symbol"), tr("Symbol Size (%1):").arg(QString::fromStdString(symbol->name)), + symbol->size, 1, 0xFFFF, 1, &good, Qt::WindowCloseButtonHint); if (!good) return; @@ -988,8 +988,8 @@ void CodeViewWidget::OnSetSymbolEndAddress() bool good; const QString name = QInputDialog::getText( - this, tr("Set symbol end address"), - tr("Symbol (%1) end address:").arg(QString::fromStdString(symbol->name)), QLineEdit::Normal, + this, tr("Set Symbol End Address"), + tr("Symbol End Address (%1):").arg(QString::fromStdString(symbol->name)), QLineEdit::Normal, QStringLiteral("%1").arg(addr + symbol->size, 8, 16, QLatin1Char('0')), &good, Qt::WindowCloseButtonHint); diff --git a/Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp b/Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp index 4d2cadb6ca..c01381f9a6 100644 --- a/Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp +++ b/Source/Core/DolphinQt/FIFO/FIFOPlayerWindow.cpp @@ -214,7 +214,7 @@ void FIFOPlayerWindow::AddDescriptions() void FIFOPlayerWindow::LoadRecording() { - QString path = DolphinFileDialog::getOpenFileName(this, tr("Open FIFO log"), QString(), + QString path = DolphinFileDialog::getOpenFileName(this, tr("Open FIFO Log"), QString(), tr("Dolphin FIFO Log (*.dff)")); if (path.isEmpty()) @@ -225,7 +225,7 @@ void FIFOPlayerWindow::LoadRecording() void FIFOPlayerWindow::SaveRecording() { - QString path = DolphinFileDialog::getSaveFileName(this, tr("Save FIFO log"), QString(), + QString path = DolphinFileDialog::getSaveFileName(this, tr("Save FIFO Log"), QString(), tr("Dolphin FIFO Log (*.dff)")); if (path.isEmpty()) diff --git a/Source/Core/DolphinQt/GCMemcardManager.cpp b/Source/Core/DolphinQt/GCMemcardManager.cpp index 405bee200e..2bdca764ab 100644 --- a/Source/Core/DolphinQt/GCMemcardManager.cpp +++ b/Source/Core/DolphinQt/GCMemcardManager.cpp @@ -356,8 +356,8 @@ void GCMemcardManager::SetSlotFileInteractive(Slot slot) { QString path = QDir::toNativeSeparators( DolphinFileDialog::getOpenFileName(this, - slot == Slot::A ? tr("Set memory card file for Slot A") : - tr("Set memory card file for Slot B"), + slot == Slot::A ? tr("Set Memory Card File for Slot A") : + tr("Set Memory Card File for Slot B"), QString::fromStdString(File::GetUserPath(D_GCUSER_IDX)), QStringLiteral("%1 (*.raw *.gcp);;%2 (*)") .arg(tr("GameCube Memory Cards"), tr("All Files")))); diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index e68673a205..a02f26b7a9 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -1820,7 +1820,7 @@ void MainWindow::OnImportNANDBackup() return; QString file = - DolphinFileDialog::getOpenFileName(this, tr("Select the save file"), QDir::currentPath(), + DolphinFileDialog::getOpenFileName(this, tr("Select NAND Backup"), QDir::currentPath(), tr("BootMii NAND backup file (*.bin);;" "All Files (*)")); @@ -1846,7 +1846,7 @@ void MainWindow::OnImportNANDBackup() [this] { std::optional keys_file = RunOnObject(this, [this] { return DolphinFileDialog::getOpenFileName( - this, tr("Select the keys file (OTP/SEEPROM dump)"), QDir::currentPath(), + this, tr("Select Keys File (OTP/SEEPROM Dump)"), QDir::currentPath(), tr("BootMii keys file (*.bin);;" "All Files (*)")) .toStdString(); diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp index 22b109ce74..b7dac7c918 100644 --- a/Source/Core/DolphinQt/MenuBar.cpp +++ b/Source/Core/DolphinQt/MenuBar.cpp @@ -1097,8 +1097,8 @@ void MenuBar::UpdateToolsMenu(bool emulation_started) void MenuBar::InstallWAD() { - QString wad_file = DolphinFileDialog::getOpenFileName( - this, tr("Select a title to install to NAND"), QString(), tr("WAD files (*.wad)")); + QString wad_file = DolphinFileDialog::getOpenFileName(this, tr("Select Title to Install to NAND"), + QString(), tr("WAD files (*.wad)")); if (wad_file.isEmpty()) return; @@ -1118,7 +1118,7 @@ void MenuBar::InstallWAD() void MenuBar::ImportWiiSave() { QString file = - DolphinFileDialog::getOpenFileName(this, tr("Select the save file"), QDir::currentPath(), + DolphinFileDialog::getOpenFileName(this, tr("Select Save File"), QDir::currentPath(), tr("Wii save files (*.bin);;" "All Files (*)")); @@ -1586,7 +1586,7 @@ void MenuBar::SaveSymbolMap() void MenuBar::LoadOtherSymbolMap() { const QString file = DolphinFileDialog::getOpenFileName( - this, tr("Load map file"), QString::fromStdString(File::GetUserPath(D_MAPS_IDX)), + this, tr("Load Map File"), QString::fromStdString(File::GetUserPath(D_MAPS_IDX)), tr("Dolphin Map File (*.map)")); if (file.isEmpty()) @@ -1603,7 +1603,7 @@ void MenuBar::LoadOtherSymbolMap() void MenuBar::LoadBadSymbolMap() { const QString file = DolphinFileDialog::getOpenFileName( - this, tr("Load map file"), QString::fromStdString(File::GetUserPath(D_MAPS_IDX)), + this, tr("Load Map File"), QString::fromStdString(File::GetUserPath(D_MAPS_IDX)), tr("Dolphin Map File (*.map)")); if (file.isEmpty()) @@ -1621,7 +1621,7 @@ void MenuBar::SaveSymbolMapAs() { const std::string& title_id_str = SConfig::GetInstance().m_debugger_game_id; const QString file = DolphinFileDialog::getSaveFileName( - this, tr("Save map file"), + this, tr("Save Map File"), QString::fromStdString(File::GetUserPath(D_MAPS_IDX) + "/" + title_id_str + ".map"), tr("Dolphin Map File (*.map)")); @@ -1677,7 +1677,7 @@ void MenuBar::CreateSignatureFile() this, tr("Input"), tr("Only export symbols with prefix:\n(Blank for all symbols)"), QLineEdit::Normal, QString{}, nullptr, Qt::WindowCloseButtonHint); - const QString file = DolphinFileDialog::getSaveFileName(this, tr("Save signature file"), + const QString file = DolphinFileDialog::getSaveFileName(this, tr("Save Signature File"), QDir::homePath(), GetSignatureSelector()); if (file.isEmpty()) return; @@ -1702,7 +1702,7 @@ void MenuBar::AppendSignatureFile() this, tr("Input"), tr("Only append symbols with prefix:\n(Blank for all symbols)"), QLineEdit::Normal, QString{}, nullptr, Qt::WindowCloseButtonHint); - const QString file = DolphinFileDialog::getSaveFileName(this, tr("Append signature to"), + const QString file = DolphinFileDialog::getSaveFileName(this, tr("Append Signature To"), QDir::homePath(), GetSignatureSelector()); if (file.isEmpty()) return; @@ -1725,7 +1725,7 @@ void MenuBar::AppendSignatureFile() void MenuBar::ApplySignatureFile() { - const QString file = DolphinFileDialog::getOpenFileName(this, tr("Apply signature file"), + const QString file = DolphinFileDialog::getOpenFileName(this, tr("Apply Signature File"), QDir::homePath(), GetSignatureSelector()); if (file.isEmpty()) @@ -1745,17 +1745,17 @@ void MenuBar::ApplySignatureFile() void MenuBar::CombineSignatureFiles() { const QString priorityFile = DolphinFileDialog::getOpenFileName( - this, tr("Choose priority input file"), QDir::homePath(), GetSignatureSelector()); + this, tr("Choose Priority Input File"), QDir::homePath(), GetSignatureSelector()); if (priorityFile.isEmpty()) return; const QString secondaryFile = DolphinFileDialog::getOpenFileName( - this, tr("Choose secondary input file"), QDir::homePath(), GetSignatureSelector()); + this, tr("Choose Secondary Input File"), QDir::homePath(), GetSignatureSelector()); if (secondaryFile.isEmpty()) return; const QString saveFile = DolphinFileDialog::getSaveFileName( - this, tr("Save combined output file as"), QDir::homePath(), GetSignatureSelector()); + this, tr("Save Combined Output File As"), QDir::homePath(), GetSignatureSelector()); if (saveFile.isEmpty()) return; diff --git a/Source/Core/DolphinQt/Settings/GameCubePane.cpp b/Source/Core/DolphinQt/Settings/GameCubePane.cpp index 07abe76a65..806e0c7840 100644 --- a/Source/Core/DolphinQt/Settings/GameCubePane.cpp +++ b/Source/Core/DolphinQt/Settings/GameCubePane.cpp @@ -434,7 +434,7 @@ void GameCubePane::BrowseMemcard(ExpansionInterface::Slot slot) ASSERT(ExpansionInterface::IsMemcardSlot(slot)); const QString filename = DolphinFileDialog::getSaveFileName( - this, tr("Choose a file to open or create"), + this, tr("Choose a File to Open or Create"), QString::fromStdString(File::GetUserPath(D_GCUSER_IDX)), tr("GameCube Memory Cards (*.raw *.gcp)"), nullptr, QFileDialog::DontConfirmOverwrite); @@ -538,8 +538,7 @@ void GameCubePane::BrowseGCIFolder(ExpansionInterface::Slot slot) ASSERT(ExpansionInterface::IsMemcardSlot(slot)); const QString path = DolphinFileDialog::getExistingDirectory( - this, tr("Choose the GCI base folder"), - QString::fromStdString(File::GetUserPath(D_GCUSER_IDX))); + this, tr("Choose GCI Base Folder"), QString::fromStdString(File::GetUserPath(D_GCUSER_IDX))); if (!path.isEmpty()) SetGCIFolder(slot, path); @@ -645,7 +644,7 @@ void GameCubePane::BrowseAGPRom(ExpansionInterface::Slot slot) ASSERT(ExpansionInterface::IsMemcardSlot(slot)); QString filename = DolphinFileDialog::getSaveFileName( - this, tr("Choose a file to open"), QString::fromStdString(File::GetUserPath(D_GCUSER_IDX)), + this, tr("Choose a File to Open"), QString::fromStdString(File::GetUserPath(D_GCUSER_IDX)), tr("Game Boy Advance Carts (*.gba)"), nullptr, QFileDialog::DontConfirmOverwrite); if (!filename.isEmpty()) diff --git a/Source/Core/DolphinQt/Settings/GeneralPane.cpp b/Source/Core/DolphinQt/Settings/GeneralPane.cpp index 00f7c5ea17..05976e62b3 100644 --- a/Source/Core/DolphinQt/Settings/GeneralPane.cpp +++ b/Source/Core/DolphinQt/Settings/GeneralPane.cpp @@ -194,8 +194,12 @@ void GeneralPane::CreateAutoUpdate() auto_update_group_layout->addRow(tr("&Auto Update:"), m_combobox_update_track); for (const QString& option : - {tr("Don't Update"), tr("Releases (every few months)"), tr("Dev (multiple times a day)")}) + {tr("Don't Update"), + // i18n: Releases is a noun. + tr("Releases (every few months)"), tr("Dev (multiple times a day)")}) + { m_combobox_update_track->addItem(option); + } } void GeneralPane::CreateFallbackRegion() diff --git a/Source/Core/DolphinQt/Settings/InterfacePane.cpp b/Source/Core/DolphinQt/Settings/InterfacePane.cpp index 42f186abee..1fc0caea71 100644 --- a/Source/Core/DolphinQt/Settings/InterfacePane.cpp +++ b/Source/Core/DolphinQt/Settings/InterfacePane.cpp @@ -262,7 +262,7 @@ void InterfacePane::UpdateShowDebuggingCheckbox() ->setChecked(Settings::Instance().IsDebugModeEnabled()); static constexpr char TR_SHOW_DEBUGGING_UI_DESCRIPTION[] = QT_TR_NOOP( - "Shows Dolphin's debugging User Interface. This lets you view and modify a game's code and " + "Shows Dolphin's debugging user interface. This lets you view and modify a game's code and " "memory contents, set debugging breakpoints, examine network requests, and more." "

If unsure, leave this unchecked."); static constexpr char TR_DISABLED_IN_HARDCORE_DESCRIPTION[] = @@ -317,7 +317,7 @@ void InterfacePane::OnLanguageChanged() void InterfacePane::AddDescriptions() { static constexpr char TR_TITLE_DATABASE_DESCRIPTION[] = QT_TR_NOOP( - "Uses Dolphin's database of properly formatted names in the Game List Title column." + "Uses Dolphin's database of properly formatted names in the game list's Title column." "

If unsure, leave this checked."); static constexpr char TR_THEME_DESCRIPTION[] = QT_TR_NOOP("Changes the appearance and color of Dolphin's buttons." @@ -326,16 +326,16 @@ void InterfacePane::AddDescriptions() QT_TR_NOOP("Forces the render window to stay on top of other windows and applications." "

If unsure, leave this unchecked."); static constexpr char TR_LANGUAGE_DESCRIPTION[] = QT_TR_NOOP( - "Sets the language displayed by Dolphin's User Interface." + "Sets the language displayed by Dolphin's user interface." "

Changes to this setting only take effect once Dolphin is restarted." "

If unsure, select <System Language>."); static constexpr char TR_FOCUSED_HOTKEYS_DESCRIPTION[] = QT_TR_NOOP("Requires the render window to be focused for hotkeys to take effect." "

If unsure, leave this checked."); static constexpr char TR_USE_COVERS_DESCRIPTION[] = - QT_TR_NOOP("Downloads full game covers from GameTDB.com to display in the Game List's Grid " - "View. If this setting is unchecked the Game List displays a banner generated " - "from the game's save files, and if the game has no save file displays a generic " + QT_TR_NOOP("Downloads full game covers from GameTDB.com to display in the game list's Grid " + "View. If this setting is unchecked, the game list displays a banner from the " + "game's save data, and if the game has no save file, displays a generic " "banner instead." "

List View will always use the save file banners." "

If unsure, leave this checked."); @@ -361,22 +361,22 @@ void InterfacePane::AddDescriptions() QT_TR_NOOP("Pauses the game whenever the render window isn't focused." "

If unsure, leave this unchecked."); static constexpr char TR_LOCK_MOUSE_DESCRIPTION[] = - QT_TR_NOOP("Locks the Mouse Cursor to the Render Widget as long as it has focus. You can " + QT_TR_NOOP("Locks the mouse cursor to the Render Widget as long as it has focus. You can " "set a hotkey to unlock it." "

If unsure, leave this unchecked."); static constexpr char TR_CURSOR_VISIBLE_MOVEMENT_DESCRIPTION[] = - QT_TR_NOOP("Shows the Mouse Cursor briefly whenever it has recently moved, then hides it." + QT_TR_NOOP("Shows the mouse cursor briefly whenever it has recently moved, then hides it." "

If unsure, select this mode."); static constexpr char TR_CURSOR_VISIBLE_NEVER_DESCRIPTION[] = QT_TR_NOOP( - "Hides the Mouse Cursor whenever it is inside the render window and the render window is " + "Hides the mouse cursor whenever it is inside the render window and the render window is " "focused." "

If unsure, select "On Movement"."); static constexpr char TR_CURSOR_VISIBLE_ALWAYS_DESCRIPTION[] = QT_TR_NOOP( - "Shows the Mouse Cursor at all times." + "Shows the mouse cursor at all times." "

If unsure, select "On Movement"."); static constexpr char TR_USER_STYLE_DESCRIPTION[] = - QT_TR_NOOP("Sets the style of Dolphin's User Interface. Any Custom User Styles that you have " - "loaded will be presented here, allowing you to switch to them." + QT_TR_NOOP("Sets the style of Dolphin's user interface. Any custom styles that you have " + "added will be presented here, allowing you to switch to them." "

If unsure, select (System)."); m_checkbox_use_builtin_title_database->SetDescription(tr(TR_TITLE_DATABASE_DESCRIPTION)); diff --git a/Source/Core/DolphinQt/Settings/WiiPane.cpp b/Source/Core/DolphinQt/Settings/WiiPane.cpp index b6ad36654f..d7ae90b815 100644 --- a/Source/Core/DolphinQt/Settings/WiiPane.cpp +++ b/Source/Core/DolphinQt/Settings/WiiPane.cpp @@ -503,7 +503,7 @@ void WiiPane::PopulateUSBPassthroughListWidget() void WiiPane::BrowseSDRaw() { QString file = QDir::toNativeSeparators(DolphinFileDialog::getOpenFileName( - this, tr("Select a SD Card Image"), + this, tr("Select SD Card Image"), QString::fromStdString(Config::Get(Config::MAIN_WII_SD_CARD_IMAGE_PATH)), tr("SD Card Image (*.raw);;" "All Files (*)"))); @@ -520,7 +520,7 @@ void WiiPane::SetSDRaw(const QString& path) void WiiPane::BrowseSDSyncFolder() { QString file = QDir::toNativeSeparators(DolphinFileDialog::getExistingDirectory( - this, tr("Select a Folder to sync with the SD Card Image"), + this, tr("Select a Folder to Sync with the SD Card Image"), QString::fromStdString(Config::Get(Config::MAIN_WII_SD_CARD_SYNC_FOLDER_PATH)))); if (!file.isEmpty()) SetSDSyncFolder(file);