Skip to content

Commit

Permalink
Fix lupdate warning on incorrect tr context
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov committed Jul 30, 2024
1 parent 13b2f5f commit 3159082
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#define NOTIFY_DISABLED(methodName) do {\
QLOG_WARN() << "Script tried to use disabled method:" << #methodName; \
(Q_EMIT textInStdOut(tr("'%1' is disabled\n").arg(#methodName))); \
(Q_EMIT textInStdOut(TwoDExecutionControl::tr("'%1' is disabled\n").arg(#methodName))); \
} while(0)

TwoDExecutionControl::TwoDExecutionControl(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@
<context>
<name>TwoDExecutionControl</name>
<message>
<location filename="../../../../plugins/robots/interpreters/trikKitInterpreterCommon/src/twoDExecutionControl.cpp" line="+46"/>
<location filename="../../../../plugins/robots/interpreters/trikKitInterpreterCommon/src/twoDExecutionControl.cpp" line="+28"/>
<source>&apos;%1&apos; is disabled
</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+18"/>
<source>No cofigured random device</source>
<translation type="unfinished"></translation>
</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,13 @@
<context>
<name>TwoDExecutionControl</name>
<message>
<location filename="../../../../plugins/robots/interpreters/trikKitInterpreterCommon/src/twoDExecutionControl.cpp" line="+46"/>
<location filename="../../../../plugins/robots/interpreters/trikKitInterpreterCommon/src/twoDExecutionControl.cpp" line="+28"/>
<source>&apos;%1&apos; is disabled
</source>
<translation type="unfinished"></translation>
</message>
<message>
<location line="+18"/>
<source>No cofigured random device</source>
<translation>Генератор случайных чисел не сконфигурирован</translation>
</message>
Expand Down

0 comments on commit 3159082

Please sign in to comment.