Skip to content

Commit

Permalink
STYLE: Removed translation from log messages
Browse files Browse the repository at this point in the history
Log messages should not be translated (it is not intended for users and would make it harder for developers to interpret the logs).
  • Loading branch information
lassoan committed Apr 5, 2023
1 parent f612c68 commit 66e8146
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Plugins/org.commontk.eventbus/ctkEventDefinitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ctkBusEvent;
ctkBusEvent *properties = new ctkBusEvent(topic, ctkEventBus::ctkEventTypeLocal, ctkEventBus::ctkSignatureTypeSignal, static_cast<QObject*>(sender), signature); \
bool ok = ctkEventBus::ctkEventBusManager::instance()->addEventProperty(*properties);\
if(!ok) {\
qWarning("%s", tr("Some problem occourred during the signal registration with ID '%1'.").arg(topic).toUtf8().data());\
qWarning("%s", QString("Some problem occourred during the signal registration with ID '%1'.").arg(topic).toUtf8().data());\
if(properties) {delete properties; properties = NULL;} \
}\
}
Expand All @@ -52,7 +52,7 @@ class ctkBusEvent;
ctkBusEvent *properties = new ctkBusEvent(topic, ctkEventBus::ctkEventTypeRemote, ctkEventBus::ctkSignatureTypeSignal, static_cast<QObject*>(sender), signature); \
bool ok = ctkEventBus::ctkEventBusManager::instance()->addEventProperty(*properties);\
if(!ok) {\
qWarning("%s", tr("Some problem occourred during the signal registration with ID '%1'.").arg(topic).toUtf8().data());\
qWarning("%s", QString("Some problem occourred during the signal registration with ID '%1'.").arg(topic).toUtf8().data());\
if(properties) {delete properties; properties = NULL;} \
}\
}
Expand All @@ -62,7 +62,7 @@ class ctkBusEvent;
ctkBusEvent *properties = new ctkBusEvent(topic, ctkEventBus::ctkEventTypeLocal, ctkEventBus::ctkSignatureTypeCallback, static_cast<QObject*>(observer), signature); \
bool ok = ctkEventBus::ctkEventBusManager::instance()->addEventProperty(*properties);\
if(!ok) {\
qWarning("%s", tr("Some problem occourred during the callback registration with ID '%1'.").arg(topic).toUtf8().data());\
qWarning("%s", QString("Some problem occourred during the callback registration with ID '%1'.").arg(topic).toUtf8().data());\
if(properties) {delete properties; properties = NULL;} \
}\
}
Expand All @@ -72,7 +72,7 @@ class ctkBusEvent;
ctkBusEvent *properties = new ctkBusEvent(topic, ctkEventBus::ctkEventTypeRemote, ctkEventBus::ctkSignatureTypeCallback, static_cast<QObject*>(sender), signature); \
bool ok = ctkEventBus::ctkEventBusManager::instance()->addEventProperty(*properties);\
if(!ok) {\
qWarning("%s", tr("Some problem occourred during the callback registration with ID '%1'.").arg(topic).toUtf8().data());\
qWarning("%s", QString("Some problem occourred during the callback registration with ID '%1'.").arg(topic).toUtf8().data());\
if(properties) {delete properties; properties = NULL;} \
}\
}
Expand Down

0 comments on commit 66e8146

Please sign in to comment.