瀏覽代碼

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.)
Developer 4 年之前
父節點
當前提交
4e4c460829
共有 3 個文件被更改,包括 17 次插入0 次删除
  1. 1 0
      UI/data/locale/en-US.ini
  2. 8 0
      UI/window-basic-auto-config.cpp
  3. 8 0
      UI/window-basic-settings-stream.cpp

+ 1 - 0
UI/data/locale/en-US.ini

@@ -184,6 +184,7 @@ Basic.AutoConfig.StreamPage.Service.Custom="Custom..."
 Basic.AutoConfig.StreamPage.Server="Server"
 Basic.AutoConfig.StreamPage.Server="Server"
 Basic.AutoConfig.StreamPage.StreamKey="Stream Key"
 Basic.AutoConfig.StreamPage.StreamKey="Stream Key"
 Basic.AutoConfig.StreamPage.StreamKey.LinkToSite="(Link)"
 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.PerformBandwidthTest="Estimate bitrate with bandwidth test (may take a few minutes)"
 Basic.AutoConfig.StreamPage.PreferHardwareEncoding="Prefer hardware encoding"
 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."
 Basic.AutoConfig.StreamPage.PreferHardwareEncoding.ToolTip="Hardware Encoding eliminates most CPU usage, but may require more bitrate to obtain the same level of quality."

+ 8 - 0
UI/window-basic-auto-config.cpp

@@ -650,6 +650,14 @@ void AutoConfigStreamPage::UpdateKeyLink()
 		streamKeyLink = "https://brimelive.com/obs-stream-key-link";
 		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()) {
 	if (QString(streamKeyLink).isNull()) {
 		ui->streamKeyButton->hide();
 		ui->streamKeyButton->hide();
 	} else {
 	} else {

+ 8 - 0
UI/window-basic-settings-stream.cpp

@@ -302,6 +302,14 @@ void OBSBasicSettings::UpdateKeyLink()
 		streamKeyLink = "https://brimelive.com/obs-stream-key-link";
 		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()) {
 	if (QString(streamKeyLink).isNull()) {
 		ui->getStreamKeyButton->hide();
 		ui->getStreamKeyButton->hide();
 	} else {
 	} else {