Skip to content

Commit

Permalink
use env to pass localized msg
Browse files Browse the repository at this point in the history
  • Loading branch information
royqh1979 committed Dec 26, 2024
1 parent d998539 commit 9295932
Show file tree
Hide file tree
Showing 6 changed files with 736 additions and 669 deletions.
2 changes: 2 additions & 0 deletions RedPandaIDE/compiler/executablerunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ void ExecutableRunner::run()
path = pathAdded.join(PATH_SEPARATOR);
}
env.insert("PATH",path);
env.insert("RCP_USAGE_MSG", tr("Process exited after %.4f seconds with return value %lu (%.4f ms cpu time, %lld KB mem used)."));
env.insert("RCP_EXIT_MSG", tr("Press ANY key to exit..."));
process.setProcessEnvironment(env);
connect(
&process, &QProcess::errorOccurred,
Expand Down
Loading

0 comments on commit 9295932

Please sign in to comment.