summaryrefslogtreecommitdiffhomepage
path: root/tracker-hatire
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-05 13:26:24 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-05 13:26:32 +0100
commit8ddd1a58cbdef54bff6da4536b4f81cd8e021cf4 (patch)
treed218429a7342965270601ebd68ae9d0198789ce3 /tracker-hatire
parent6da6fdaea31dd7b774c72f1b9dded06509d8f1de (diff)
tracker/hatire: add more translatable strings
Diffstat (limited to 'tracker-hatire')
-rw-r--r--tracker-hatire/thread.cpp25
1 files changed, 16 insertions, 9 deletions
diff --git a/tracker-hatire/thread.cpp b/tracker-hatire/thread.cpp
index f3c3f15c..fa09e5da 100644
--- a/tracker-hatire/thread.cpp
+++ b/tracker-hatire/thread.cpp
@@ -153,13 +153,13 @@ void hatire_thread::serial_debug_info_str(const QString& str)
serial_result hatire_thread::init_serial_port_impl()
{
#ifndef HATIRE_DEBUG_LOGFILE
- Log("Setting serial port name");
+ Log(tr("Setting serial port name"));
com_port.setPortName(s.QSerialPortName);
- Log("Opening serial port");
+ Log(tr("Opening serial port"));
if (com_port.open(QIODevice::ReadWrite))
{
- Log("Port Open");
+ Log(tr("Port Open"));
if (
com_port.setBaudRate((QSerialPort::BaudRate)s.pBaudRate)
&& com_port.setDataBits((QSerialPort::DataBits)s.pDataBits)
@@ -170,18 +170,25 @@ serial_result hatire_thread::init_serial_port_impl()
&& com_port.setDataErrorPolicy(QSerialPort::IgnorePolicy)
)
{
- Log("Port Parameters set");
- qDebug() << QTime::currentTime() << " HAT OPEN on " << com_port.portName() << com_port.baudRate() << com_port.dataBits() << com_port.parity() << com_port.stopBits() << com_port.flowControl();
+ Log(tr("Port Parameters set"));
+ qDebug() << QTime::currentTime()
+ << " HAT OPEN on"
+ << com_port.portName()
+ << com_port.baudRate()
+ << com_port.dataBits()
+ << com_port.parity()
+ << com_port.stopBits()
+ << com_port.flowControl();
if (com_port.flowControl() == QSerialPort::HardwareControl)
{
// Raise DTR
- Log("Raising DTR");
+ Log(tr("Raising DTR"));
if (!com_port.setDataTerminalReady(true))
Log("Couldn't set DTR");
// Raise RTS/CTS
- Log("Raising RTS");
+ Log(tr("Raising RTS"));
if (!com_port.setRequestToSend(true))
Log("Couldn't set RTS");
}
@@ -190,7 +197,7 @@ serial_result hatire_thread::init_serial_port_impl()
{
if (com_port.waitForReadyRead(50)) break;
}
- Log("Waiting on init");
+ Log(tr("Waiting on init"));
qDebug() << QTime::currentTime() << " HAT send INIT ";
sendcmd_str(s.CmdInit);
// Wait init MPU sequence
@@ -207,7 +214,7 @@ serial_result hatire_thread::init_serial_port_impl()
{
if (com_port.waitForReadyRead(50)) break;
}
- Log("Port setup, waiting for HAT frames to process");
+ Log(tr("Port setup, waiting for HAT frames to process"));
qDebug() << QTime::currentTime() << " HAT wait MPU ";
return serial_result();