From 4e4c460829e031b5b6a70231f09e730ef542f3a4 Mon Sep 17 00:00:00 2001 From: Developer Date: Wed, 14 Apr 2021 16:22:34 +0530 Subject: [PATCH] rtmp-service: Rename "stream key" for dacast (Additional note by Jim: Apparently, dacast doesn't use "stream key" for whatever reason on its website, so this commit apparently changes the text "Stream Key" to "Encoder Key" or whatever for whatever reason I'll never know. I guess we need arbitrary names for things these days because services can't get their names in order or something. Whatever. I'm seriously tired of dealing with this sort of stuff. Seriously, this is just dumb. This is dumb, and I wish I wasn't merging it, but at this point, I'm like, whatever. I don't care. I've stopped caring. Why should I care anymore? I'm losing it. I am absolutely losing it.) --- UI/data/locale/en-US.ini | 1 + UI/window-basic-auto-config.cpp | 8 ++++++++ UI/window-basic-settings-stream.cpp | 8 ++++++++ 3 files changed, 17 insertions(+) diff --git a/UI/data/locale/en-US.ini b/UI/data/locale/en-US.ini index b196a78cc..d7aa40bbf 100644 --- a/UI/data/locale/en-US.ini +++ b/UI/data/locale/en-US.ini @@ -184,6 +184,7 @@ Basic.AutoConfig.StreamPage.Service.Custom="Custom..." Basic.AutoConfig.StreamPage.Server="Server" Basic.AutoConfig.StreamPage.StreamKey="Stream Key" Basic.AutoConfig.StreamPage.StreamKey.LinkToSite="(Link)" +Basic.AutoConfig.StreamPage.EncoderKey="Encoder Key" Basic.AutoConfig.StreamPage.PerformBandwidthTest="Estimate bitrate with bandwidth test (may take a few minutes)" Basic.AutoConfig.StreamPage.PreferHardwareEncoding="Prefer hardware encoding" Basic.AutoConfig.StreamPage.PreferHardwareEncoding.ToolTip="Hardware Encoding eliminates most CPU usage, but may require more bitrate to obtain the same level of quality." diff --git a/UI/window-basic-auto-config.cpp b/UI/window-basic-auto-config.cpp index 4d4a7e6c6..452c91b5f 100644 --- a/UI/window-basic-auto-config.cpp +++ b/UI/window-basic-auto-config.cpp @@ -650,6 +650,14 @@ void AutoConfigStreamPage::UpdateKeyLink() streamKeyLink = "https://brimelive.com/obs-stream-key-link"; } + if (serviceName == "Dacast") { + ui->streamKeyLabel->setText( + QTStr("Basic.AutoConfig.StreamPage.EncoderKey")); + } else { + ui->streamKeyLabel->setText( + QTStr("Basic.AutoConfig.StreamPage.StreamKey")); + } + if (QString(streamKeyLink).isNull()) { ui->streamKeyButton->hide(); } else { diff --git a/UI/window-basic-settings-stream.cpp b/UI/window-basic-settings-stream.cpp index 1d580cd75..200badc8b 100644 --- a/UI/window-basic-settings-stream.cpp +++ b/UI/window-basic-settings-stream.cpp @@ -302,6 +302,14 @@ void OBSBasicSettings::UpdateKeyLink() streamKeyLink = "https://brimelive.com/obs-stream-key-link"; } + if (serviceName == "Dacast") { + ui->streamKeyLabel->setText( + QTStr("Basic.AutoConfig.StreamPage.EncoderKey")); + } else { + ui->streamKeyLabel->setText( + QTStr("Basic.AutoConfig.StreamPage.StreamKey")); + } + if (QString(streamKeyLink).isNull()) { ui->getStreamKeyButton->hide(); } else {