forked from qt-creator/qt-creator
Utils: Tr::tr
Change-Id: Ic03e20993f05fb5b49a12c891d86afb2c8e18e08 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
#include "mapreduce.h"
|
||||
#include "qtcassert.h"
|
||||
#include "stringutils.h"
|
||||
#include "utilstr.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QLoggingCategory>
|
||||
#include <QMutex>
|
||||
#include <QRegularExpression>
|
||||
@@ -23,16 +23,14 @@ using namespace Utils;
|
||||
|
||||
static inline QString msgCanceled(const QString &searchTerm, int numMatches, int numFilesSearched)
|
||||
{
|
||||
return QCoreApplication::translate("Utils::FileSearch",
|
||||
"%1: canceled. %n occurrences found in %2 files.",
|
||||
nullptr, numMatches).arg(searchTerm).arg(numFilesSearched);
|
||||
return Tr::tr("%1: canceled. %n occurrences found in %2 files.",
|
||||
nullptr, numMatches).arg(searchTerm).arg(numFilesSearched);
|
||||
}
|
||||
|
||||
static inline QString msgFound(const QString &searchTerm, int numMatches, int numFilesSearched)
|
||||
{
|
||||
return QCoreApplication::translate("Utils::FileSearch",
|
||||
"%1: %n occurrences found in %2 files.",
|
||||
nullptr, numMatches).arg(searchTerm).arg(numFilesSearched);
|
||||
return Tr::tr("%1: %n occurrences found in %2 files.",
|
||||
nullptr, numMatches).arg(searchTerm).arg(numFilesSearched);
|
||||
}
|
||||
|
||||
namespace {
|
||||
@@ -532,19 +530,18 @@ QStringList splitFilterUiText(const QString &text)
|
||||
|
||||
QString msgFilePatternLabel()
|
||||
{
|
||||
return QCoreApplication::translate("Utils::FileSearch", "Fi&le pattern:");
|
||||
return Tr::tr("Fi&le pattern:");
|
||||
}
|
||||
|
||||
QString msgExclusionPatternLabel()
|
||||
{
|
||||
return QCoreApplication::translate("Utils::FileSearch", "Excl&usion pattern:");
|
||||
return Tr::tr("Excl&usion pattern:");
|
||||
}
|
||||
|
||||
QString msgFilePatternToolTip()
|
||||
{
|
||||
return QCoreApplication::translate("Utils::FileSearch",
|
||||
"List of comma separated wildcard filters. "
|
||||
"Files with file name or full file path matching any filter are included.");
|
||||
return Tr::tr("List of comma separated wildcard filters. "
|
||||
"Files with file name or full file path matching any filter are included.");
|
||||
}
|
||||
|
||||
QString matchCaseReplacement(const QString &originalText, const QString &replaceText)
|
||||
|
||||
Reference in New Issue
Block a user