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:
Eike Ziller
2023-05-26 10:30:29 +02:00
parent ba21749832
commit 14fe48dff7
2 changed files with 7 additions and 7 deletions

View File

@@ -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);