From 9a50e7ea99c53698aab761c2c433dc100a541597 Mon Sep 17 00:00:00 2001 From: RedDevilus Date: Tue, 15 Sep 2020 19:11:03 +0200 Subject: [PATCH] pcsx2-gui: Further improve with adding punctation,tooltip and formatting. --- pcsx2/SourceLog.cpp | 12 +++++----- pcsx2/gui/AppInit.cpp | 4 ++-- pcsx2/gui/ConsoleLogger.cpp | 26 +++++++++++----------- pcsx2/gui/MainFrame.cpp | 16 ++++++------- plugins/GSdx/Renderers/OpenGL/GLLoader.cpp | 4 ++-- 5 files changed, 31 insertions(+), 31 deletions(-) diff --git a/pcsx2/SourceLog.cpp b/pcsx2/SourceLog.cpp index 483edbef5a..4d5bdc2145 100644 --- a/pcsx2/SourceLog.cpp +++ b/pcsx2/SourceLog.cpp @@ -103,17 +103,17 @@ TLD_eeRecPerf = { TLD_eeConsole = { L"EEout", L"EE C&onsole", - pxDt("Shows the game developer's logging text (EE processor)") + pxDt("Shows the game developer's logging text (EE processor).") }, TLD_iopConsole = { L"IOPout", L"&IOP Console", - pxDt("Shows the game developer's logging text (IOP processor)") + pxDt("Shows the game developer's logging text (IOP processor).") }, TLD_deci2 = { L"DECI2", L"DECI&2 Console", - pxDt("Shows DECI2 debugging logs (EE processor)") + pxDt("Shows DECI2 debugging logs (EE processor).") }, TLD_sysoutConsole = { @@ -124,12 +124,12 @@ TLD_sysoutConsole = { #ifndef DISABLE_RECORDING ,TLD_recordingConsole = { L"Input Recording", L"Input Recording Console", - pxDt("Shows recording related logs and information") + pxDt("Shows recording related logs and information.") }, TLD_controlInfo = { L"Controller Info", L"Controller Info", - pxDt("Shows detailed controller input values for port 1, every frame") + pxDt("Shows detailed controller input values for port 1, every frame.") } #endif ; // End init of TraceLogDescriptors @@ -243,7 +243,7 @@ TLD_EE_VIFcode = { TLD_EE_MSKPATH3 = { L"MSKPATH3", L"MSKPATH3", - pxDt("All processing involved in Path3 Masking"), + pxDt("All processing involved in Path3 Masking."), "MSKPATH3" }, diff --git a/pcsx2/gui/AppInit.cpp b/pcsx2/gui/AppInit.cpp index 9f23c232ce..750ef5cb93 100644 --- a/pcsx2/gui/AppInit.cpp +++ b/pcsx2/gui/AppInit.cpp @@ -530,7 +530,7 @@ bool Pcsx2App::OnInit() } catch( Exception::HardwareDeficiency& ex ) { - Msgbox::Alert( ex.FormatDisplayMessage() + L"\n\n" + AddAppName(_("Press OK to close %s.")), _("PCSX2 Error: Hardware Deficiency") ); + Msgbox::Alert( ex.FormatDisplayMessage() + L"\n\n" + AddAppName(_("Press OK to close %s.")), _("PCSX2 Error: Hardware Deficiency.") ); CleanupOnExit(); return false; } @@ -726,7 +726,7 @@ Pcsx2App::Pcsx2App() _("&Help"); _("&Home"); - _("Show about dialog") + _("Show about dialog.") } #endif diff --git a/pcsx2/gui/ConsoleLogger.cpp b/pcsx2/gui/ConsoleLogger.cpp index 6469564a02..5e43787c01 100644 --- a/pcsx2/gui/ConsoleLogger.cpp +++ b/pcsx2/gui/ConsoleLogger.cpp @@ -113,7 +113,7 @@ static bool OpenLogFile(wxFile& file, wxString& filename, wxWindow *parent) strMsg.Printf(L"Append log to file '%s' (choosing [No] will overwrite it)?", filename.c_str()); - switch ( Msgbox::ShowModal( _("Save log question"), strMsg, MsgButtons().YesNo().Cancel() ) ) + switch ( Msgbox::ShowModal( _("Save log question."), strMsg, MsgButtons().YesNo().Cancel() ) ) { case wxID_YES: bAppend = true; @@ -127,7 +127,7 @@ static bool OpenLogFile(wxFile& file, wxString& filename, wxWindow *parent) return false; default: - pxFailDev( "invalid message box return value" ); + pxFailDev( "Invalid message box return value." ); } return ( bAppend ) ? @@ -419,13 +419,13 @@ ConsoleLogFrame::ConsoleLogFrame( MainEmuFrame *parent, const wxString& title, A // create Appearance menu and submenus - menuFontSizes.Append( MenuId_FontSize_Small, _("&Small"), _t("Fits a lot of log in a microcosmically small area."), + menuFontSizes.Append( MenuId_FontSize_Small, _("&Small"), _t("7px font size."), wxITEM_RADIO )->Check( options.FontSize == 7 ); - menuFontSizes.Append( MenuId_FontSize_Normal, _("&Normal Font"),_t("It's what I use (the programmer guy)."), + menuFontSizes.Append( MenuId_FontSize_Normal, _("&Normal Font"),_t("8px font size."), wxITEM_RADIO )->Check( options.FontSize == 8 ); - menuFontSizes.Append( MenuId_FontSize_Large, _("&Large"), _t("Its nice and readable."), + menuFontSizes.Append( MenuId_FontSize_Large, _("&Large"), _t("10px font size."), wxITEM_RADIO )->Check( options.FontSize == 10 ); - menuFontSizes.Append( MenuId_FontSize_Huge, _("&Huge"), _t("In case you have a really high res display."), + menuFontSizes.Append( MenuId_FontSize_Huge, _("&Huge"), _t("12px font size."), wxITEM_RADIO )->Check( options.FontSize == 12 ); menuFontSizes.AppendSeparator(); @@ -437,21 +437,21 @@ ConsoleLogFrame::ConsoleLogFrame( MainEmuFrame *parent, const wxString& title, A //menuAppear.Append( wxID_ANY, _("Always on Top"), // _t("When checked the log window will be visible over other foreground windows."), wxITEM_CHECK ); - menuLog.Append(wxID_SAVE, _("&Save..."), _("Save log contents to file")); + menuLog.Append(wxID_SAVE, _("&Save..."), _("Save log contents to file.")); #ifdef PCSX2_DEVBUILD - menuLog.Append(MenuId_Log_Settings, _("&Settings..."), _("Open the logging settings dialog")); + menuLog.Append(MenuId_Log_Settings, _("&Settings..."), _("Open the logging settings dialog.")); #endif - menuLog.Append(wxID_CLEAR, _("C&lear"), _("Clear the log window contents")); + menuLog.Append(wxID_CLEAR, _("C&lear"), _("Clear the log window contents.")); menuLog.AppendSeparator(); - menuLog.AppendCheckItem(MenuId_AutoDock, _("Auto&dock"), _("Dock log window to main PCSX2 window"))->Check(m_conf.AutoDock); + menuLog.AppendCheckItem(MenuId_AutoDock, _("Auto&dock"), _("Dock log window to main PCSX2 window."))->Check(m_conf.AutoDock); menuLog.AppendSubMenu( &menuAppear, _("&Appearance") ); menuLog.AppendSeparator(); - menuLog.Append(wxID_CLOSE, _("&Close"), _("Close this log window; contents are preserved")); + menuLog.Append(wxID_CLOSE, _("&Close"), _("Close this log window; contents are preserved.")); // Source Selection/Toggle menu - menuSources.Append( MenuId_LogSource_Devel, _("Dev/&Verbose"), _("Shows PCSX2 developer logs"), wxITEM_CHECK ); - menuSources.Append( MenuId_LogSource_CDVD_Info, _("&CDVD reads"), _("Shows disk read activity"), wxITEM_CHECK ); + menuSources.Append( MenuId_LogSource_Devel, _("Dev/&Verbose"), _("Shows PCSX2 developer logs."), wxITEM_CHECK ); + menuSources.Append( MenuId_LogSource_CDVD_Info, _("&CDVD reads"), _("Shows disk read activity."), wxITEM_CHECK ); menuSources.AppendSeparator(); diff --git a/pcsx2/gui/MainFrame.cpp b/pcsx2/gui/MainFrame.cpp index 9503875b5f..9e6c4c77da 100644 --- a/pcsx2/gui/MainFrame.cpp +++ b/pcsx2/gui/MainFrame.cpp @@ -367,7 +367,7 @@ void MainEmuFrame::CreatePcsx2Menu() m_menuSys.FindItem(MenuId_Sys_Shutdown)->Enable(false); m_menuSys.Append(MenuId_Boot_ELF, _("&Run ELF..."), - _("For running raw PS2 binaries directly")); + _("For running raw PS2 binaries directly.")); m_menuSys.AppendSeparator(); @@ -379,20 +379,20 @@ void MainEmuFrame::CreatePcsx2Menu() m_menuSys.Append(MenuId_GameSettingsSubMenu, _("&Game Settings"), &m_GameSettingsSubmenu); m_GameSettingsSubmenu.Append(MenuId_EnablePatches, _("Automatic &Gamefixes"), - _("Automatically applies needed Gamefixes to known problematic games"), wxITEM_CHECK); + _("Automatically applies needed Gamefixes to known problematic games."), wxITEM_CHECK); m_GameSettingsSubmenu.Append(MenuId_EnableCheats, _("Enable &Cheats"), - wxEmptyString, wxITEM_CHECK); + _("Use cheats otherwise known as pnachs from the cheats folder."), wxITEM_CHECK); m_GameSettingsSubmenu.Append(MenuId_EnableIPC, _("Enable &IPC"), wxEmptyString, wxITEM_CHECK); m_GameSettingsSubmenu.Append(MenuId_EnableWideScreenPatches, _("Enable &Widescreen Patches"), - _("Enabling Widescreen Patches may occasionally cause issues."), wxITEM_CHECK); + _("Enabling Widescreen Patches may occasionally cause issues."), wxITEM_CHECK); #ifndef DISABLE_RECORDING m_GameSettingsSubmenu.Append(MenuId_EnableInputRecording, _("Enable &Input Recording"), - wxEmptyString, wxITEM_CHECK); + _("Input Recording for controller/keyboard presses, tools for automation and playback."), wxITEM_CHECK); #endif @@ -409,7 +409,7 @@ void MainEmuFrame::CreatePcsx2Menu() m_menuSys.AppendSeparator(); m_menuSys.Append(MenuId_Exit, _("E&xit"), - AddAppName(_("Closing %s may be hazardous to your health"))); + AddAppName(_("Closing %s may be hazardous to your health."))); } void MainEmuFrame::CreateCdvdMenu() @@ -733,7 +733,7 @@ void MainEmuFrame::ApplyCoreStatus() wxMenuItem* cdvd_menu = menubar.FindItem(MenuId_Boot_CDVD); wxString label; - wxString help_text = _("Use fast boot to skip PS2 startup and splash screens"); + wxString help_text = _("Use fast boot to skip PS2 startup and splash screens."); switch (Source) { @@ -843,7 +843,7 @@ void PerPluginMenuInfo::Populate(PluginsEnum_t pid) PluginId = pid; - MyMenu.Append(GetPluginMenuId_Name(PluginId), _("No plugin loaded"))->Enable(false); + MyMenu.Append(GetPluginMenuId_Name(PluginId), _("No plugins loaded."))->Enable(false); MyMenu.AppendSeparator(); if (PluginId == PluginId_GS) diff --git a/plugins/GSdx/Renderers/OpenGL/GLLoader.cpp b/plugins/GSdx/Renderers/OpenGL/GLLoader.cpp index de0a475cb7..a0987408a2 100644 --- a/plugins/GSdx/Renderers/OpenGL/GLLoader.cpp +++ b/plugins/GSdx/Renderers/OpenGL/GLLoader.cpp @@ -397,8 +397,8 @@ namespace GLLoader { // driver reports a compatible sparse format for depth texture but it isn't attachable to a frame buffer. found_compatible_sparse_depth = !vendor_id_amd && is_sparse2_compatible("GL_DEPTH32F_STENCIL8", GL_DEPTH32F_STENCIL8, 128, 128); - fprintf_once(stdout, "INFO sparse color texture is %s\n", found_compatible_GL_ARB_sparse_texture2 ? "available" : "NOT SUPPORTED"); - fprintf_once(stdout, "INFO sparse depth texture is %s\n", found_compatible_sparse_depth ? "available" : "NOT SUPPORTED"); + fprintf_once(stdout, "INFO: sparse color texture is %s\n", found_compatible_GL_ARB_sparse_texture2 ? "available" : "NOT SUPPORTED"); + fprintf_once(stdout, "INFO: sparse depth texture is %s\n", found_compatible_sparse_depth ? "available" : "NOT SUPPORTED"); } void check_gl_requirements()