frontend-tools: Fix output-timer translation bug

Don't use tr() to translate, use obs_module_text().

Closes jp9000/obs-studio#735
This commit is contained in:
shiina424 2016-12-24 18:38:22 +09:00 committed by jp9000
parent 12f607523d
commit 5133353d92

View File

@ -88,7 +88,7 @@ void OutputTimer::StreamTimerStart()
streamingTimer->start();
streamingTimerDisplay->start(1000);
ui->outputTimerStream->setText(tr("Stop"));
ui->outputTimerStream->setText(obs_module_text("Stop"));
UpdateStreamTimerDisplay();
}
@ -122,7 +122,7 @@ void OutputTimer::RecordTimerStart()
recordingTimer->start();
recordingTimerDisplay->start(1000);
ui->outputTimerRecord->setText(tr("Stop"));
ui->outputTimerRecord->setText(obs_module_text("Stop"));
UpdateRecordTimerDisplay();
}
@ -137,7 +137,7 @@ void OutputTimer::StreamTimerStop()
if (streamingTimer->isActive())
streamingTimer->stop();
ui->outputTimerStream->setText(tr("Start"));
ui->outputTimerStream->setText(obs_module_text("Start"));
if (streamingTimerDisplay->isActive())
streamingTimerDisplay->stop();
@ -155,7 +155,7 @@ void OutputTimer::RecordTimerStop()
if (recordingTimer->isActive())
recordingTimer->stop();
ui->outputTimerRecord->setText(tr("Start"));
ui->outputTimerRecord->setText(obs_module_text("Start"));
if (recordingTimerDisplay->isActive())
recordingTimerDisplay->stop();