Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
f3526074
Commit
f3526074
authored
Jun 11, 2015
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1661 from dogmaphobic/gibberishToEnglish
A few more gibberish into English translations.
parents
f8508f9d
ea5d2ed2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
QGCAudioWorker.cpp
src/audio/QGCAudioWorker.cpp
+17
-3
No files found.
src/audio/QGCAudioWorker.cpp
View file @
f3526074
...
@@ -191,14 +191,28 @@ QString QGCAudioWorker::_fixTextMessageForAudio(const QString& string) {
...
@@ -191,14 +191,28 @@ QString QGCAudioWorker::_fixTextMessageForAudio(const QString& string) {
QString
match
;
QString
match
;
QString
newNumber
;
QString
newNumber
;
QString
result
=
string
;
QString
result
=
string
;
//-- Look for modes
//-- Look for codified terms
if
(
result
.
contains
(
"ERR "
,
Qt
::
CaseInsensitive
))
{
result
.
replace
(
"ERR "
,
"error "
,
Qt
::
CaseInsensitive
);
}
if
(
result
.
contains
(
"ERR:"
,
Qt
::
CaseInsensitive
))
{
result
.
replace
(
"ERR:"
,
"error."
,
Qt
::
CaseInsensitive
);
}
if
(
result
.
contains
(
"POSCTL"
,
Qt
::
CaseInsensitive
))
{
if
(
result
.
contains
(
"POSCTL"
,
Qt
::
CaseInsensitive
))
{
result
.
replace
(
"POSCTL"
,
"Position Control"
,
Qt
::
CaseInsensitive
);
result
.
replace
(
"POSCTL"
,
"Position Control"
,
Qt
::
CaseInsensitive
);
}
else
if
(
result
.
contains
(
"ALTCTL"
,
Qt
::
CaseInsensitive
))
{
}
if
(
result
.
contains
(
"ALTCTL"
,
Qt
::
CaseInsensitive
))
{
result
.
replace
(
"ALTCTL"
,
"Altitude Control"
,
Qt
::
CaseInsensitive
);
result
.
replace
(
"ALTCTL"
,
"Altitude Control"
,
Qt
::
CaseInsensitive
);
}
else
if
(
result
.
contains
(
"RTL"
,
Qt
::
CaseInsensitive
))
{
}
if
(
result
.
contains
(
"RTL"
,
Qt
::
CaseInsensitive
))
{
result
.
replace
(
"RTL"
,
"Return To Land"
,
Qt
::
CaseInsensitive
);
result
.
replace
(
"RTL"
,
"Return To Land"
,
Qt
::
CaseInsensitive
);
}
}
if
(
result
.
contains
(
"ACCEL "
,
Qt
::
CaseInsensitive
))
{
result
.
replace
(
"ACCEL "
,
"accelerometer "
,
Qt
::
CaseInsensitive
);
}
if
(
result
.
contains
(
"RC_MAP_MODE_SW"
,
Qt
::
CaseInsensitive
))
{
result
.
replace
(
"RC_MAP_MODE_SW"
,
"RC mode switch"
,
Qt
::
CaseInsensitive
);
}
int
number
;
int
number
;
if
(
_getMillisecondString
(
string
,
match
,
number
)
&&
number
>
1000
)
{
if
(
_getMillisecondString
(
string
,
match
,
number
)
&&
number
>
1000
)
{
if
(
number
<
60000
)
{
if
(
number
<
60000
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment