From 14fe48dff7f0d144a39a2b366bbfec2700a3bee3 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 26 May 2023 10:30:29 +0200 Subject: [PATCH] Tr/Python: Simplify UI text for translation Parametrize link target, and use markdown for simpler link syntax. Change-Id: I6d1bae0431aa4e5bd7c7ad39b1219289eda40391 Reviewed-by: Leena Miettinen Reviewed-by: David Schulz --- share/qtcreator/translations/qtcreator_de.ts | 4 ++-- src/plugins/python/pythonsettings.cpp | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index ff71411c8ee..02f6592f1b6 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -40211,8 +40211,8 @@ fails because Clang does not understand the target architecture. Python Language Server benutzen - 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>. - Für eine vollständige Liste der verfügbaren Optionen siehe auch die <a href="https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md">Dokumentation zur Python LSP-Server-Konfiguration</a>. + For a complete list of available options, consult the [Python LSP Server configuration documentation](%1). + Für eine vollständige Liste der verfügbaren Optionen siehe auch die [Dokumentation zur Python LSP-Server-Konfiguration](%1). Advanced diff --git a/src/plugins/python/pythonsettings.cpp b/src/plugins/python/pythonsettings.cpp index 1de24a3061c..d33346b8af7 100644 --- a/src/plugins/python/pythonsettings.cpp +++ b/src/plugins/python/pythonsettings.cpp @@ -414,11 +414,11 @@ public: mainGroupLayout->addWidget(m_pluginsGroup); - const QString labelText = Tr::tr( - "For a complete list of available options, consult the Python LSP Server configuration documentation."); - + 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);