From 890f96ed34d383de220086746394abe124894102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E4=B8=83=E4=B8=8D=E7=94=9C?= <1633557643@qq.com> Date: Mon, 1 May 2023 23:56:02 +0800 Subject: [PATCH] UI: Remove tabs for About error statements And change error statements to translation key --- UI/data/locale/en-US.ini | 1 + UI/window-basic-about.cpp | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/UI/data/locale/en-US.ini b/UI/data/locale/en-US.ini index a651c619e..d77475f47 100644 --- a/UI/data/locale/en-US.ini +++ b/UI/data/locale/en-US.ini @@ -1369,6 +1369,7 @@ About.Donate="Make a Contribution" About.GetInvolved="Get Involved" About.Authors="Authors" About.License="License" +About.Error="Error! File could not be read.\n\nGo to: %1" About.Contribute="Support the OBS Project" # Drag-drop URL diff --git a/UI/window-basic-about.cpp b/UI/window-basic-about.cpp index 2bbc216aa..90e146d34 100644 --- a/UI/window-basic-about.cpp +++ b/UI/window-basic-about.cpp @@ -133,8 +133,9 @@ void OBSAbout::ShowAbout() void OBSAbout::ShowAuthors() { std::string path; - QString error = "Error! File could not be read.\n\n \ - Go to: https://github.com/obsproject/obs-studio/blob/master/AUTHORS"; + QString error = + QTStr("About.Error") + .arg("https://github.com/obsproject/obs-studio/blob/master/AUTHORS"); #ifdef __APPLE__ if (!GetDataFilePath("AUTHORS", path)) { @@ -160,8 +161,9 @@ void OBSAbout::ShowAuthors() void OBSAbout::ShowLicense() { std::string path; - QString error = "Error! File could not be read.\n\n \ - Go to: https://github.com/obsproject/obs-studio/blob/master/COPYING"; + QString error = + QTStr("About.Error") + .arg("https://github.com/obsproject/obs-studio/blob/master/COPYING"); if (!GetDataFilePath("license/gplv2.txt", path)) { ui->textBrowser->setPlainText(error);