mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
UI: Localize font picker window title
This commit is contained in:
@@ -654,8 +654,10 @@ void TextSourceToolbar::on_selectFont_clicked()
|
||||
options = QFontDialog::DontUseNativeDialog;
|
||||
#endif
|
||||
|
||||
font = QFontDialog::getFont(&success, font, this, "Pick a Font",
|
||||
options);
|
||||
font = QFontDialog::getFont(
|
||||
&success, font, this,
|
||||
QTStr("Basic.PropertiesWindow.SelectFont.WindowTitle"),
|
||||
options);
|
||||
if (!success) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -612,6 +612,7 @@ Basic.PropertiesWindow="Properties for '%1'"
|
||||
Basic.PropertiesWindow.AutoSelectFormat="%1 (autoselect: %2)"
|
||||
Basic.PropertiesWindow.SelectColor="Select color"
|
||||
Basic.PropertiesWindow.SelectFont="Select font"
|
||||
Basic.PropertiesWindow.SelectFont.WindowTitle="Pick a Font"
|
||||
Basic.PropertiesWindow.ConfirmTitle="Settings Changed"
|
||||
Basic.PropertiesWindow.Confirm="There are unsaved changes. Do you want to keep them?"
|
||||
Basic.PropertiesWindow.NoProperties="No properties available"
|
||||
|
||||
@@ -1953,12 +1953,16 @@ bool WidgetInfo::FontChanged(const char *setting)
|
||||
|
||||
if (!font_obj) {
|
||||
QFont initial;
|
||||
font = QFontDialog::getFont(&success, initial, view,
|
||||
"Pick a Font", options);
|
||||
font = QFontDialog::getFont(
|
||||
&success, initial, view,
|
||||
QTStr("Basic.PropertiesWindow.SelectFont.WindowTitle"),
|
||||
options);
|
||||
} else {
|
||||
MakeQFont(font_obj, font);
|
||||
font = QFontDialog::getFont(&success, font, view, "Pick a Font",
|
||||
options);
|
||||
font = QFontDialog::getFont(
|
||||
&success, font, view,
|
||||
QTStr("Basic.PropertiesWindow.SelectFont.WindowTitle"),
|
||||
options);
|
||||
}
|
||||
|
||||
if (!success)
|
||||
|
||||
Reference in New Issue
Block a user