forked from qt-creator/qt-creator
VcsBase: Convert to Tr::tr
To reduce the amount of duplicated strings for translators to handle. The problem is not very prominent in vcsbase, but that's where we are moving everywhere else. Change-Id: Icb11fad3bccfea8a1408420e729566a75adccb66 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "vcsbaseclientsettings.h"
|
||||
|
||||
#include "vcsbasetr.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/environment.h>
|
||||
#include <utils/fileutils.h>
|
||||
@@ -35,7 +37,7 @@ VcsBaseSettings::VcsBaseSettings()
|
||||
logCount.setSettingsKey("LogCount");
|
||||
logCount.setRange(0, 1000 * 1000);
|
||||
logCount.setDefaultValue(100);
|
||||
logCount.setLabelText(tr("Log count:"));
|
||||
logCount.setLabelText(Tr::tr("Log count:"));
|
||||
|
||||
registerAspect(&path);
|
||||
path.setSettingsKey("Path");
|
||||
@@ -44,8 +46,8 @@ VcsBaseSettings::VcsBaseSettings()
|
||||
timeout.setSettingsKey("Timeout");
|
||||
timeout.setRange(0, 3600 * 24 * 365);
|
||||
timeout.setDefaultValue(30);
|
||||
timeout.setLabelText(tr("Timeout:"));
|
||||
timeout.setSuffix(tr("s"));
|
||||
timeout.setLabelText(Tr::tr("Timeout:"));
|
||||
timeout.setSuffix(Tr::tr("s"));
|
||||
}
|
||||
|
||||
VcsBaseSettings::~VcsBaseSettings() = default;
|
||||
|
||||
Reference in New Issue
Block a user