forked from qt-creator/qt-creator
Prefix Tr::tr contexts with ::
To make outliers better visible in Linguist Change-Id: Ic35ea2a858b7e3576d9a416fb494fddb616eaaa1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -11,7 +11,6 @@ namespace Constants {
|
||||
const char DIFF_EDITOR_PLUGIN[] = "DiffEditorPlugin";
|
||||
|
||||
const char DIFF_EDITOR_ID[] = "Diff Editor";
|
||||
const char DIFF_EDITOR_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("DiffEditor", "Diff Editor");
|
||||
const char DIFF_EDITOR_MIMETYPE[] = "text/x-patch";
|
||||
const char C_DIFF_EDITOR_DESCRIPTION[] = "DiffEditor.Description";
|
||||
const char SIDE_BY_SIDE_VIEW_ID[] = "DiffEditor.SideBySide";
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "diffeditorfactory.h"
|
||||
#include "diffeditor.h"
|
||||
#include "diffeditorconstants.h"
|
||||
#include "diffeditordocument.h"
|
||||
#include "diffeditorfactory.h"
|
||||
#include "diffeditortr.h"
|
||||
|
||||
#include "texteditor/texteditoractionhandler.h"
|
||||
|
||||
@@ -44,7 +45,7 @@ DiffEditorFactory::DiffEditorFactory() :
|
||||
}
|
||||
{
|
||||
setId(Constants::DIFF_EDITOR_ID);
|
||||
setDisplayName(QCoreApplication::translate("DiffEditorFactory", Constants::DIFF_EDITOR_DISPLAY_NAME));
|
||||
setDisplayName(Tr::tr("Diff Editor"));
|
||||
addMimeType(Constants::DIFF_EDITOR_MIMETYPE);
|
||||
setEditorCreator([] { return new DiffEditor(new DiffEditorDocument); });
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace DiffEditor {
|
||||
|
||||
struct Tr
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(DiffEditor)
|
||||
Q_DECLARE_TR_FUNCTIONS(::DiffEditor)
|
||||
};
|
||||
|
||||
} // namespace DiffEditor
|
||||
|
||||
Reference in New Issue
Block a user