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

@@ -40211,8 +40211,8 @@ fails because Clang does not understand the target architecture.</source>
<translation>Python Language Server benutzen</translation> <translation>Python Language Server benutzen</translation>
</message> </message>
<message> <message>
<source>For a complete list of available options, consult the &lt;a href=&quot;https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md&quot;&gt;Python LSP Server configuration documentation&lt;/a&gt;.</source> <source>For a complete list of available options, consult the [Python LSP Server configuration documentation](%1).</source>
<translation>Für eine vollständige Liste der verfügbaren Optionen siehe auch die &lt;a href=&quot;https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md&quot;&gt;Dokumentation zur Python LSP-Server-Konfiguration&lt;/a&gt;.</translation> <translation>Für eine vollständige Liste der verfügbaren Optionen siehe auch die [Dokumentation zur Python LSP-Server-Konfiguration](%1).</translation>
</message> </message>
<message> <message>
<source>Advanced</source> <source>Advanced</source>

View File

@@ -414,11 +414,11 @@ public:
mainGroupLayout->addWidget(m_pluginsGroup); mainGroupLayout->addWidget(m_pluginsGroup);
const QString labelText = Tr::tr( const QString labelText = Tr::tr("For a complete list of available options, consult the "
"For a complete list of available options, consult the <a " "[Python LSP Server configuration documentation](%1).")
"href=\"https://github.com/python-lsp/python-lsp-server/blob/develop/" .arg("https://github.com/python-lsp/python-lsp-server/blob/"
"CONFIGURATION.md\">Python LSP Server configuration documentation</a>."); "develop/CONFIGURATION.md");
m_advancedLabel->setTextFormat(Qt::MarkdownText);
m_advancedLabel->setText(labelText); m_advancedLabel->setText(labelText);
m_advancedLabel->setOpenExternalLinks(true); m_advancedLabel->setOpenExternalLinks(true);
mainGroupLayout->addWidget(m_advancedLabel); mainGroupLayout->addWidget(m_advancedLabel);