UI: Isolate filter localization strings
To prevent from causing confusion/issues for our most awesome and respected locale editors, only localize and translate the relevant text rather than the extensions of the filter.
This commit is contained in:
parent
b72e68afe7
commit
bbd48c7bf2
2 changed files with 9 additions and 3 deletions
|
|
@ -1264,10 +1264,15 @@ void OBSBasicSettings::on_advOutRecPathBrowse_clicked()
|
|||
|
||||
void OBSBasicSettings::on_advOutFFPathBrowse_clicked()
|
||||
{
|
||||
QString filter;
|
||||
filter += QTStr("Basic.Settings.Output.Adv.FFmpeg.SaveFilter.Common");
|
||||
filter += " (*.avi *.mp4 *.flv *.ts *.mkv *.wav *.aac);;";
|
||||
filter += QTStr("Basic.Settings.Output.Adv.FFmpeg.SaveFilter.All");
|
||||
filter += " (*.*)";
|
||||
|
||||
QString file = QFileDialog::getSaveFileName(this,
|
||||
QTStr("Basic.Settings.Output.SelectFile"),
|
||||
ui->simpleOutputPath->text(),
|
||||
QTStr("Basic.Settings.Output.Adv.FFmpeg.SaveFilter"));
|
||||
ui->simpleOutputPath->text(), filter);
|
||||
if (file.isEmpty())
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue