aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2023-10-20 13:03:05 +0200
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2023-10-24 08:01:13 +0000
commit1d64d764acfd110c1717ba1602f194bd46a2e550 (patch)
treeba5189fc36b47361b5d051e98c82fc6dd02fecd3
parent176be6a563da09817d7a195b5d22866602af639b (diff)
Clangd: Edit tooltip text for "Header/source switch mode" field
Use the phrasing "tends to find false positives" instead of "has some bugs". Add </p> at the ends of paragraph elements. Change-Id: Ie524f2615625b52bf2de5b66b8938f49e3d0255f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--share/qtcreator/translations/qtcreator_fr.ts4
-rw-r--r--src/plugins/cppeditor/cppcodemodelsettingspage.cpp20
2 files changed, 12 insertions, 12 deletions
diff --git a/share/qtcreator/translations/qtcreator_fr.ts b/share/qtcreator/translations/qtcreator_fr.ts
index 059f2e80e9..673d54af1e 100644
--- a/share/qtcreator/translations/qtcreator_fr.ts
+++ b/share/qtcreator/translations/qtcreator_fr.ts
@@ -20281,8 +20281,8 @@ Double-cliquez pour modifier l’élément.</translation>
<translation>C++</translation>
</message>
<message>
- <source>&lt;p&gt;If background indexing is enabled, global symbol searches will yield more accurate results, at the cost of additional CPU load when the project is first opened. The indexing result is persisted in the project&apos;s build directory. If you disable background indexing, a faster, but less accurate, built-in indexer is used instead. The thread priority for building the background index can be adjusted since clangd 15.&lt;/p&gt;&lt;p&gt;Background Priority: Minimum priority, runs on idle CPUs. May leave &apos;performance&apos; cores unused.&lt;/p&gt;&lt;p&gt;Normal Priority: Reduced priority compared to interactive work.&lt;/p&gt;Low Priority: Same priority as other clangd work.</source>
- <translation>&lt;p&gt;Si l’indexation en arrière-plan est activée, les recherches globales de symboles donneront des résultats plus précis, au prix d’une charge de travail supplémentaire du CPU lors de la première ouverture du projet. Le résultat de l’indexation est conservé dans le répertoire de construction du projet. Si vous désactivez l’indexation en arrière-plan, un indexeur intégré plus rapide, mais moins précis, est utilisé à la place. La priorité des threads pour la construction de l’index d’arrière-plan peut être ajustée depuis clangd 15.&lt;/p&gt;&lt;p&gt;Priorité d’arrière-plan : priorité minimale, s’exécute sur les processeurs inactifs. Peut laisser les cœurs de «&#xa0;performance&#xa0;» inutilisés.&lt;/p&gt;&lt;p&gt;Priorité normale : priorité réduite par rapport au travail interactif.&lt;/p&gt;Priorité basse : même priorité que les autres travaux de clangd.</translation>
+ <source>&lt;p&gt;If background indexing is enabled, global symbol searches will yield more accurate results, at the cost of additional CPU load when the project is first opened. The indexing result is persisted in the project&apos;s build directory. If you disable background indexing, a faster, but less accurate, built-in indexer is used instead. The thread priority for building the background index can be adjusted since clangd 15.&lt;/p&gt;&lt;p&gt;Background Priority: Minimum priority, runs on idle CPUs. May leave &apos;performance&apos; cores unused.&lt;/p&gt;&lt;p&gt;Normal Priority: Reduced priority compared to interactive work.&lt;/p&gt;&lt;p&gt;Low Priority: Same priority as other clangd work.&lt;/p&gt;</source>
+ <translation>&lt;p&gt;Si l’indexation en arrière-plan est activée, les recherches globales de symboles donneront des résultats plus précis, au prix d’une charge de travail supplémentaire du CPU lors de la première ouverture du projet. Le résultat de l’indexation est conservé dans le répertoire de construction du projet. Si vous désactivez l’indexation en arrière-plan, un indexeur intégré plus rapide, mais moins précis, est utilisé à la place. La priorité des threads pour la construction de l’index d’arrière-plan peut être ajustée depuis clangd 15.&lt;/p&gt;&lt;p&gt;Priorité d’arrière-plan : priorité minimale, s’exécute sur les processeurs inactifs. Peut laisser les cœurs de «&#xa0;performance&#xa0;» inutilisés.&lt;/p&gt;&lt;p&gt;Priorité normale : priorité réduite par rapport au travail interactif.&lt;/p&gt;&lt;p&gt;Priorité basse : même priorité que les autres travaux de clangd.&lt;/p&gt;</translation>
</message>
<message>
<source>&lt;p&gt;Which C/C++ backend to use when switching between header and source file.&lt;p&gt;The clangd implementation has more capabilities, but also has some bugs not present in the built-in variant.&lt;p&gt;When &quot;Try Both&quot; is selected, clangd will be employed only if the built-in variant does not find anything.</source>
diff --git a/src/plugins/cppeditor/cppcodemodelsettingspage.cpp b/src/plugins/cppeditor/cppcodemodelsettingspage.cpp
index 1c8ff05fee..2c46504f17 100644
--- a/src/plugins/cppeditor/cppcodemodelsettingspage.cpp
+++ b/src/plugins/cppeditor/cppcodemodelsettingspage.cpp
@@ -223,21 +223,21 @@ ClangdSettingsWidget::ClangdSettingsWidget(const ClangdSettings::Data &settingsD
"<p>Background Priority: Minimum priority, runs on idle CPUs. May leave 'performance' "
"cores unused.</p>"
"<p>Normal Priority: Reduced priority compared to interactive work.</p>"
- "Low Priority: Same priority as other clangd work.");
+ "<p>Low Priority: Same priority as other clangd work.</p>");
const QString headerSourceSwitchToolTip = Tr::tr(
- "<p>Which C/C++ backend to use when switching between header and source file."
- "<p>The clangd implementation has more capabilities, but also has some bugs not present "
- "in the built-in variant."
- "<p>When \"Try Both\" is selected, clangd will be employed only if the built-in variant "
- "does not find anything.");
+ "<p>The C/C++ backend to use for switching between header and source files.</p>"
+ "<p>While the clangd implementation has more capabilities than the built-in "
+ "code model, it tends to find false positives.</p>"
+ "<p>When \"Try Both\" is selected, clangd is used only if the built-in variant "
+ "does not find anything.</p>");
using RankingModel = ClangdSettings::CompletionRankingModel;
const QString completionRankingModelToolTip = Tr::tr(
- "<p>Which model clangd should use to rank possible completions."
- "<p>This determines the order of candidates in the combo box when doing code completion."
+ "<p>Which model clangd should use to rank possible completions.</p>"
+ "<p>This determines the order of candidates in the combo box when doing code completion.</p>"
"<p>The \"%1\" model used by default results from (pre-trained) machine learning and "
- "provides superior results on average."
+ "provides superior results on average.</p>"
"<p>If you feel that its suggestions stray too much from your expectations for your "
- "code base, you can try switching to the hand-crafted \"%2\" model.").arg(
+ "code base, you can try switching to the hand-crafted \"%2\" model.</p>").arg(
ClangdSettings::rankingModelToDisplayString(RankingModel::DecisionForest),
ClangdSettings::rankingModelToDisplayString(RankingModel::Heuristics));
const QString workerThreadsToolTip = Tr::tr(