forked from qt-creator/qt-creator
Tr/Python: Simplify UI text for translation
Parametrize link target, and use markdown for simpler link syntax. Change-Id: I6d1bae0431aa4e5bd7c7ad39b1219289eda40391 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -414,11 +414,11 @@ public:
|
||||
|
||||
mainGroupLayout->addWidget(m_pluginsGroup);
|
||||
|
||||
const QString labelText = Tr::tr(
|
||||
"For a complete list of available options, consult the <a "
|
||||
"href=\"https://github.com/python-lsp/python-lsp-server/blob/develop/"
|
||||
"CONFIGURATION.md\">Python LSP Server configuration documentation</a>.");
|
||||
|
||||
const QString labelText = Tr::tr("For a complete list of available options, consult the "
|
||||
"[Python LSP Server configuration documentation](%1).")
|
||||
.arg("https://github.com/python-lsp/python-lsp-server/blob/"
|
||||
"develop/CONFIGURATION.md");
|
||||
m_advancedLabel->setTextFormat(Qt::MarkdownText);
|
||||
m_advancedLabel->setText(labelText);
|
||||
m_advancedLabel->setOpenExternalLinks(true);
|
||||
mainGroupLayout->addWidget(m_advancedLabel);
|
||||
|
||||
Reference in New Issue
Block a user