forked from qt-creator/qt-creator
Autotest: Convert to Tr::tr
Change-Id: Ifd4b6ace78d02804ec3b3c1d60c5418081cad6c4 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "catchtestsettings.h"
|
||||
|
||||
#include "../autotestconstants.h"
|
||||
#include "../autotesttr.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
@@ -56,7 +57,7 @@ CatchTestSettings::CatchTestSettings()
|
||||
benchmarkResamples.setSettingsKey("BenchResamples");
|
||||
benchmarkResamples.setRange(1, 9999999);
|
||||
benchmarkResamples.setDefaultValue(100000);
|
||||
benchmarkResamples.setToolTip(tr("Number of resamples for bootstrapping."));
|
||||
benchmarkResamples.setToolTip(Tr::tr("Number of resamples for bootstrapping."));
|
||||
benchmarkResamples.setEnabler(&resamplesChecked);
|
||||
|
||||
registerAspect(&confidenceInterval);
|
||||
@@ -68,65 +69,65 @@ CatchTestSettings::CatchTestSettings()
|
||||
|
||||
registerAspect(&benchmarkWarmupTime);
|
||||
benchmarkWarmupTime.setSettingsKey("BenchWarmup");
|
||||
benchmarkWarmupTime.setSuffix(tr(" ms"));
|
||||
benchmarkWarmupTime.setSuffix(Tr::tr(" ms"));
|
||||
benchmarkWarmupTime.setRange(0, 10000);
|
||||
benchmarkWarmupTime.setEnabler(&warmupChecked);
|
||||
|
||||
registerAspect(&abortAfterChecked);
|
||||
abortAfterChecked.setSettingsKey("AbortChecked");
|
||||
abortAfterChecked.setLabelText(tr("Abort after"));
|
||||
abortAfterChecked.setToolTip(tr("Aborts after the specified number of failures."));
|
||||
abortAfterChecked.setLabelText(Tr::tr("Abort after"));
|
||||
abortAfterChecked.setToolTip(Tr::tr("Aborts after the specified number of failures."));
|
||||
|
||||
registerAspect(&samplesChecked);
|
||||
samplesChecked.setSettingsKey("SamplesChecked");
|
||||
samplesChecked.setLabelText(tr("Benchmark samples"));
|
||||
samplesChecked.setToolTip(tr("Number of samples to collect while running benchmarks."));
|
||||
samplesChecked.setLabelText(Tr::tr("Benchmark samples"));
|
||||
samplesChecked.setToolTip(Tr::tr("Number of samples to collect while running benchmarks."));
|
||||
|
||||
registerAspect(&resamplesChecked);
|
||||
resamplesChecked.setSettingsKey("ResamplesChecked");
|
||||
resamplesChecked.setLabelText(tr("Benchmark resamples"));
|
||||
resamplesChecked.setToolTip(tr("Number of resamples used for statistical bootstrapping."));
|
||||
resamplesChecked.setLabelText(Tr::tr("Benchmark resamples"));
|
||||
resamplesChecked.setToolTip(Tr::tr("Number of resamples used for statistical bootstrapping."));
|
||||
|
||||
registerAspect(&confidenceIntervalChecked);
|
||||
confidenceIntervalChecked.setSettingsKey("ConfIntChecked");
|
||||
confidenceIntervalChecked.setToolTip(tr("Confidence interval used for statistical bootstrapping."));
|
||||
confidenceIntervalChecked.setLabelText(tr("Benchmark confidence interval"));
|
||||
confidenceIntervalChecked.setToolTip(Tr::tr("Confidence interval used for statistical bootstrapping."));
|
||||
confidenceIntervalChecked.setLabelText(Tr::tr("Benchmark confidence interval"));
|
||||
|
||||
registerAspect(&warmupChecked);
|
||||
warmupChecked.setSettingsKey("WarmupChecked");
|
||||
warmupChecked.setLabelText(tr("Benchmark warmup time"));
|
||||
warmupChecked.setToolTip(tr("Warmup time for each test."));
|
||||
warmupChecked.setLabelText(Tr::tr("Benchmark warmup time"));
|
||||
warmupChecked.setToolTip(Tr::tr("Warmup time for each test."));
|
||||
|
||||
registerAspect(&noAnalysis);
|
||||
noAnalysis.setSettingsKey("NoAnalysis");
|
||||
noAnalysis.setLabelText(tr("Disable analysis"));
|
||||
noAnalysis.setToolTip(tr("Disables statistical analysis and bootstrapping."));
|
||||
noAnalysis.setLabelText(Tr::tr("Disable analysis"));
|
||||
noAnalysis.setToolTip(Tr::tr("Disables statistical analysis and bootstrapping."));
|
||||
|
||||
registerAspect(&showSuccess);
|
||||
showSuccess.setSettingsKey("ShowSuccess");
|
||||
showSuccess.setLabelText(tr("Show success"));
|
||||
showSuccess.setToolTip(tr("Show success for tests."));
|
||||
showSuccess.setLabelText(Tr::tr("Show success"));
|
||||
showSuccess.setToolTip(Tr::tr("Show success for tests."));
|
||||
|
||||
registerAspect(&breakOnFailure);
|
||||
breakOnFailure.setSettingsKey("BreakOnFailure");
|
||||
breakOnFailure.setDefaultValue(true);
|
||||
breakOnFailure.setLabelText(tr("Break on failure while debugging"));
|
||||
breakOnFailure.setToolTip(tr("Turns failures into debugger breakpoints."));
|
||||
breakOnFailure.setLabelText(Tr::tr("Break on failure while debugging"));
|
||||
breakOnFailure.setToolTip(Tr::tr("Turns failures into debugger breakpoints."));
|
||||
|
||||
registerAspect(&noThrow);
|
||||
noThrow.setSettingsKey("NoThrow");
|
||||
noThrow.setLabelText(tr("Skip throwing assertions"));
|
||||
noThrow.setToolTip(tr("Skips all assertions that test for thrown exceptions."));
|
||||
noThrow.setLabelText(Tr::tr("Skip throwing assertions"));
|
||||
noThrow.setToolTip(Tr::tr("Skips all assertions that test for thrown exceptions."));
|
||||
|
||||
registerAspect(&visibleWhitespace);
|
||||
visibleWhitespace.setSettingsKey("VisibleWS");
|
||||
visibleWhitespace.setLabelText(tr("Visualize whitespace"));
|
||||
visibleWhitespace.setToolTip(tr("Makes whitespace visible."));
|
||||
visibleWhitespace.setLabelText(Tr::tr("Visualize whitespace"));
|
||||
visibleWhitespace.setToolTip(Tr::tr("Makes whitespace visible."));
|
||||
|
||||
registerAspect(&warnOnEmpty);
|
||||
warnOnEmpty.setSettingsKey("WarnEmpty");
|
||||
warnOnEmpty.setLabelText(tr("Warn on empty tests"));
|
||||
warnOnEmpty.setToolTip(tr("Warns if a test section does not check any assertion."));
|
||||
warnOnEmpty.setLabelText(Tr::tr("Warn on empty tests"));
|
||||
warnOnEmpty.setToolTip(Tr::tr("Warns if a test section does not check any assertion."));
|
||||
|
||||
forEachAspect([](BaseAspect *aspect) {
|
||||
// FIXME: Make the positioning part of the LayoutBuilder later
|
||||
@@ -139,7 +140,7 @@ CatchTestSettingsPage::CatchTestSettingsPage(CatchTestSettings *settings, Utils:
|
||||
{
|
||||
setId(settingsId);
|
||||
setCategory(Constants::AUTOTEST_SETTINGS_CATEGORY);
|
||||
setDisplayName(QCoreApplication::translate("CatchTestFramework", "Catch Test"));
|
||||
setDisplayName(Tr::tr("Catch Test"));
|
||||
setSettings(settings);
|
||||
|
||||
setLayouter([settings](QWidget *widget) {
|
||||
|
||||
Reference in New Issue
Block a user