UI: Remove tabs for About error statements

And change error statements to translation key
This commit is contained in:
田七不甜
2023-05-01 23:56:02 +08:00
committed by Ryan Foster
parent 3c28d3a2bc
commit e1b02e5b8a
2 changed files with 7 additions and 4 deletions
+6 -4
View File
@@ -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);