Skip to content
Permalink
Browse files
Merge pull request #11113 from DivineWinds/translate_tooltip
DolphinQt/HacksWidget: Make backend name in GPU Texture Decoding/Bounding Box tooltip translatable
  • Loading branch information
AdmiralCurtiss committed Oct 1, 2022
2 parents 2f0358a + 37892a8 commit 6911e1b
Showing 1 changed file with 2 additions and 1 deletion.
@@ -132,7 +132,8 @@ void HacksWidget::OnBackendChanged(const QString& backend_name)
m_gpu_texture_decoding->setEnabled(gpu_texture_decoding);
m_disable_bounding_box->setEnabled(bbox);

const QString tooltip = tr("%1 doesn't support this feature on your system.").arg(backend_name);
const QString tooltip = tr("%1 doesn't support this feature on your system.")
.arg(tr(backend_name.toStdString().c_str()));

m_gpu_texture_decoding->setToolTip(!gpu_texture_decoding ? tooltip : QString{});
m_disable_bounding_box->setToolTip(!bbox ? tooltip : QString{});

0 comments on commit 6911e1b

Please sign in to comment.