summaryrefslogtreecommitdiffhomepage
path: root/tracker-rs
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-18 20:05:11 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-18 20:05:11 +0100
commit93a1bfcdd795b436cb41d419a1aa8064b9f2987d (patch)
tree7ca2f5ab153a5ee72b6ff7ba30df3c6d00bef466 /tracker-rs
parentd26048617d78396cc6381eaf06f19fee484d811c (diff)
gui, modules: add more translatable strings
Diffstat (limited to 'tracker-rs')
-rw-r--r--tracker-rs/ftnoir_tracker_rs.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/tracker-rs/ftnoir_tracker_rs.cpp b/tracker-rs/ftnoir_tracker_rs.cpp
index 6eae0693..d2c77f12 100644
--- a/tracker-rs/ftnoir_tracker_rs.cpp
+++ b/tracker-rs/ftnoir_tracker_rs.cpp
@@ -87,7 +87,10 @@ bool RSTracker::startSdkInstallationProcess()
bool pStarted = QProcess::startDetached(contrib_path + "intel_rs_sdk_runtime_websetup_10.0.26.0396.exe --finstall=core,face3d --fnone=all");
if(!pStarted){
- QMessageBox::warning(0, "Intel® RealSense™ Runtime Installation", "Installation process failed to start.", QMessageBox::Ok);
+ QMessageBox::warning(nullptr,
+ tr("Intel® RealSense™ Runtime Installation"),
+ tr("Installation process failed to start."),
+ QMessageBox::Ok);
}
return pStarted;
}
@@ -100,19 +103,19 @@ void RSTracker::showRealSenseErrorMessageBox(int exitCode)
switch(exitCode){
case -101: //The implementation got an invalid handle from the RealSense SDK session/modules
- msgBox.setInformativeText("Couldn't initialize RealSense tracking. Please make sure SDK Runtime 2016 R2 is installed.");
+ msgBox.setInformativeText(tr("Couldn't initialize RealSense tracking. Please make sure SDK Runtime 2016 R2 is installed."));
break;
case -301: //RealSense SDK runtime execution aborted.
- msgBox.setInformativeText("Tracking stopped after the RealSense SDK Runtime execution has aborted.");
+ msgBox.setInformativeText(tr("Tracking stopped after the RealSense SDK Runtime execution has aborted."));
break;
case -601: //RealSense Camera stream configuration has changed.
- msgBox.setInformativeText("Tracking stopped after another program changed camera streams configuration.");
+ msgBox.setInformativeText(tr("Tracking stopped after another program changed camera streams configuration."));
break;
default:
msgBox.setInformativeText("Status code: " + QString::number(exitCode) + ".\n\nNote that you need the latest camera drivers and the SDK runtime 2016 R2 to be installed.");
}
- QPushButton* triggerSdkInstallation = msgBox.addButton("Install Runtime", QMessageBox::ActionRole);
+ QPushButton* triggerSdkInstallation = msgBox.addButton(tr("Install Runtime"), QMessageBox::ActionRole);
msgBox.addButton(QMessageBox::Ok);
msgBox.exec();