forked from qt-creator/qt-creator
Translations: Add missing "::" prefixes to QT_TRANSLATE_NOOP
Change-Id: I7589a2d4003394e38e58c095b510f8eff33263b8 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -27,11 +27,11 @@ QRgb DebugMessagesModel::color(int index) const
|
||||
}
|
||||
|
||||
static const char *messageTypes[] = {
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Debug Message"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Warning Message"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Critical Message"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Fatal Message"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Info Message"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Debug Message"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Warning Message"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Critical Message"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Fatal Message"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Info Message"),
|
||||
};
|
||||
|
||||
QString DebugMessagesModel::messageType(uint i)
|
||||
|
||||
@@ -22,19 +22,19 @@
|
||||
namespace QmlProfiler {
|
||||
|
||||
static const char *ProfileFeatureNames[] = {
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "JavaScript"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Memory Usage"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Pixmap Cache"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Scene Graph"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Animations"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Painting"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Compiling"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Creating"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Binding"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Handling Signal"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Input Events"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Debug Messages"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Quick3D")
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "JavaScript"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Memory Usage"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Pixmap Cache"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Scene Graph"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Animations"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Painting"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Compiling"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Creating"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Binding"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Handling Signal"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Input Events"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Debug Messages"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Quick3D")
|
||||
};
|
||||
|
||||
Q_STATIC_ASSERT(sizeof(ProfileFeatureNames) == sizeof(char *) * MaximumProfileFeature);
|
||||
|
||||
@@ -30,27 +30,27 @@ QRgb Quick3DModel::color(int index) const
|
||||
}
|
||||
|
||||
static const char *messageTypes[] = {
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Render Frame"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Synchronize Frame"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Prepare Frame"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Mesh Load"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Custom Mesh Load"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Texture Load"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Generate Shader"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Load Shader"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Particle Update"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Render Call"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Render Pass"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Event Data"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Render Frame"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Synchronize Frame"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Prepare Frame"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Mesh Load"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Custom Mesh Load"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Texture Load"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Generate Shader"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Load Shader"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Particle Update"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Render Call"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Render Pass"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Event Data"),
|
||||
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Mesh Memory consumption"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Texture Memory consumption"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Mesh Memory consumption"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Texture Memory consumption"),
|
||||
};
|
||||
|
||||
static const char *unloadMessageTypes[] = {
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Mesh Unload"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Custom Mesh Unload"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Texture Unload"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Mesh Unload"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Custom Mesh Unload"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Texture Unload"),
|
||||
};
|
||||
|
||||
QString Quick3DModel::messageType(uint i)
|
||||
|
||||
@@ -15,32 +15,32 @@ namespace QmlProfiler {
|
||||
namespace Internal {
|
||||
|
||||
static const char *ThreadLabels[] = {
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "GUI Thread"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Render Thread"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Render Thread Details")
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "GUI Thread"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Render Thread"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Render Thread Details")
|
||||
};
|
||||
|
||||
static const char *StageLabels[] = {
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Polish"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Wait"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "GUI Thread Sync"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Animations"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Render Thread Sync"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Render"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Swap"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Render Preprocess"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Render Update"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Render Bind"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Render Render"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Material Compile"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Glyph Render"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Glyph Upload"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Texture Bind"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Texture Convert"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Texture Swizzle"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Texture Upload"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Texture Mipmap"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Texture Delete")
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Polish"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Wait"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "GUI Thread Sync"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Animations"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Render Thread Sync"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Render"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Swap"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Render Preprocess"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Render Update"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Render Bind"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Render Render"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Material Compile"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Glyph Render"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Glyph Upload"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Texture Bind"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Texture Convert"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Texture Swizzle"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Texture Upload"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Texture Mipmap"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Texture Delete")
|
||||
};
|
||||
|
||||
enum SceneGraphCategoryType {
|
||||
|
||||
@@ -50,11 +50,11 @@ void DebugMessagesModelTest::testColor()
|
||||
}
|
||||
|
||||
static const char *messageTypes[] = {
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Debug Message"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Warning Message"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Critical Message"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Fatal Message"),
|
||||
QT_TRANSLATE_NOOP("QmlProfiler", "Info Message"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Debug Message"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Warning Message"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Critical Message"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Fatal Message"),
|
||||
QT_TRANSLATE_NOOP("::QmlProfiler", "Info Message"),
|
||||
};
|
||||
|
||||
void DebugMessagesModelTest::testLabels()
|
||||
|
||||
Reference in New Issue
Block a user