UI: Localize font picker window title

This commit is contained in:
gxalpha
2023-07-15 16:20:04 -07:00
committed by Lain
parent 8fa84e874b
commit f7d5d80b04
3 changed files with 13 additions and 6 deletions
+4 -2
View File
@@ -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;
}
+1
View File
@@ -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"
+8 -4
View File
@@ -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)