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
b8d13084
Commit
b8d13084
authored
Apr 04, 2016
by
Tomaz Canabrava
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing qsTr on QML files
Signed-off-by:
Tomaz Canabrava
<
tomaz.canabrava@intel.com
>
parent
89658a57
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
18 deletions
+19
-18
SensorsComponentSummary.qml
src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml
+1
-1
FlightDisplayViewWidgets.qml
src/FlightDisplay/FlightDisplayViewWidgets.qml
+2
-2
QGCCompassWidget.qml
src/FlightMap/Widgets/QGCCompassWidget.qml
+1
-1
ValuesWidget.qml
src/FlightMap/Widgets/ValuesWidget.qml
+4
-4
MissionItemStatus.qml
src/MissionEditor/MissionItemStatus.qml
+1
-0
SimpleItemEditor.qml
src/MissionEditor/SimpleItemEditor.qml
+1
-1
SurveyItemEditor.qml
src/MissionEditor/SurveyItemEditor.qml
+4
-4
MissionItemEditor.qml
src/QmlControls/MissionItemEditor.qml
+1
-1
ParameterEditor.qml
src/QmlControls/ParameterEditor.qml
+3
-3
ParameterEditorDialog.qml
src/QmlControls/ParameterEditorDialog.qml
+1
-1
No files found.
src/AutoPilotPlugins/PX4/SensorsComponentSummary.qml
View file @
b8d13084
...
...
@@ -31,7 +31,7 @@ FactPanel {
VehicleSummaryRow
{
labelText
:
qsTr
(
"
Compass 0:
"
)
valueText
:
mag0IdFact
?
(
mag0IdFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
(
"
Ready
"
))
:
""
valueText
:
mag0IdFact
?
(
mag0IdFact
.
value
===
0
?
qsTr
(
"
Setup required
"
)
:
qsTr
(
"
Ready
"
))
:
""
}
VehicleSummaryRow
{
...
...
src/FlightDisplay/FlightDisplayViewWidgets.qml
View file @
b8d13084
...
...
@@ -75,7 +75,7 @@ Item {
z
:
QGroundControl
.
zOrderTopMost
color
:
mapPal
.
text
font.pixelSize
:
ScreenTools
.
largeFontPixelSize
text
:
"
No GPS Lock for Vehicle
"
text
:
qsTr
(
"
No GPS Lock for Vehicle
"
)
}
QGCLabel
{
...
...
@@ -421,7 +421,7 @@ Item {
guidedModeConfirm
.
confirmText
=
qsTr
(
"
land
"
)
break
;
case
confirmHome
:
guidedModeConfirm
.
confirmText
=
"
return to launch
"
guidedModeConfirm
.
confirmText
=
qsTr
(
"
return to launch
"
)
break
;
case
confirmChangeAlt
:
altitudeSlider
.
visible
=
true
...
...
src/FlightMap/Widgets/QGCCompassWidget.qml
View file @
b8d13084
...
...
@@ -89,7 +89,7 @@ Item {
color
:
Qt
.
rgba
(
0
,
0
,
0
,
0.65
)
QGCLabel
{
text
:
active
?
heading
.
toFixed
(
0
)
:
"
OFF
"
text
:
active
?
heading
.
toFixed
(
0
)
:
qsTr
(
"
OFF
"
)
font.weight
:
active
?
Font
.
DemiBold
:
Font
.
Light
font.pixelSize
:
_fontSize
<
1
?
1
:
_fontSize
;
color
:
"
white
"
...
...
src/FlightMap/Widgets/ValuesWidget.qml
View file @
b8d13084
...
...
@@ -52,7 +52,7 @@ QGCFlickable {
}
function
showPicker
()
{
qgcView
.
showDialog
(
propertyPicker
,
"
Value Widget Setup
"
,
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Ok
)
qgcView
.
showDialog
(
propertyPicker
,
qsTr
(
"
Value Widget Setup
"
)
,
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Ok
)
}
function
listContains
(
list
,
value
)
{
...
...
@@ -163,7 +163,7 @@ QGCFlickable {
QGCLabel
{
id
:
_label
text
:
"
Select the values you want to display:
"
text
:
qsTr
(
"
Select the values you want to display:
"
)
}
Loader
{
...
...
@@ -195,7 +195,7 @@ QGCFlickable {
QGCLabel
{
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
text
:
factGroup
?
factGroupName
:
"
Vehicle must be connected to assign values.
"
text
:
factGroup
?
factGroupName
:
qsTr
(
"
Vehicle must be connected to assign values.
"
)
}
Repeater
{
...
...
@@ -254,7 +254,7 @@ QGCFlickable {
QGCCheckBox
{
id
:
_largeCheckBox
text
:
"
large
"
text
:
qsTr
(
"
large
"
)
checked
:
listContains
(
controller
.
largeValues
,
propertyName
)
enabled
:
_addCheckBox
.
checked
onClicked
:
updateValues
()
...
...
src/MissionEditor/MissionItemStatus.qml
View file @
b8d13084
...
...
@@ -82,6 +82,7 @@ Rectangle {
QGCLabel
{
text
:
qsTr
(
"
Azimuth:
"
)
}
QGCLabel
{
text
:
_azimuthText
}
}
QGCFlickable
{
anchors.leftMargin
:
_margins
...
...
src/MissionEditor/SimpleItemEditor.qml
View file @
b8d13084
...
...
@@ -114,7 +114,7 @@ Rectangle {
}
QGCButton
{
text
:
"
Move Home to map center
"
text
:
qsTr
(
"
Move Home to map center
"
)
visible
:
missionItem
.
homePosition
onClicked
:
editorRoot
.
moveHomeToMapCenter
()
anchors.horizontalCenter
:
parent
.
horizontalCenter
...
...
src/MissionEditor/SurveyItemEditor.qml
View file @
b8d13084
...
...
@@ -73,7 +73,7 @@ Rectangle {
QGCCheckBox
{
anchors.left
:
parent
.
left
text
:
"
Relative altitude
"
text
:
qsTr
(
"
Relative altitude
"
)
checked
:
missionItem
.
gridAltitudeRelative
onClicked
:
missionItem
.
gridAltitudeRelative
=
checked
}
...
...
@@ -81,7 +81,7 @@ Rectangle {
QGCCheckBox
{
id
:
cameraTrigger
anchors.left
:
parent
.
left
text
:
"
Camera trigger:
"
text
:
qsTr
(
"
Camera trigger:
"
)
checked
:
missionItem
.
cameraTrigger
onClicked
:
missionItem
.
cameraTrigger
=
checked
}
...
...
@@ -96,7 +96,7 @@ Rectangle {
QGCLabel
{
anchors.baseline
:
textField
.
baseline
anchors.left
:
parent
.
left
text
:
"
Distance:
"
text
:
qsTr
(
"
Distance:
"
)
}
FactTextField
{
...
...
@@ -109,7 +109,7 @@ Rectangle {
}
QGCButton
{
text
:
_addPointsMode
?
"
Finish Polygon
"
:
"
Draw Polygon
"
text
:
_addPointsMode
?
qsTr
(
"
Finish Polygon
"
)
:
qsTr
(
"
Draw Polygon
"
)
onClicked
:
{
if
(
_addPointsMode
)
{
_addPointsMode
=
false
...
...
src/QmlControls/MissionItemEditor.qml
View file @
b8d13084
...
...
@@ -140,7 +140,7 @@ Rectangle {
anchors.fill
:
commandPicker
visible
:
missionItem
.
sequenceNumber
==
0
||
!
missionItem
.
isCurrentItem
||
!
missionItem
.
isSimpleItem
verticalAlignment
:
Text
.
AlignVCenter
text
:
missionItem
.
sequenceNumber
==
0
?
"
Home Position
"
:
(
missionItem
.
isSimpleItem
?
missionItem
.
commandName
:
"
Survey
"
)
text
:
missionItem
.
sequenceNumber
==
0
?
qsTr
(
"
Home Position
"
)
:
(
missionItem
.
isSimpleItem
?
missionItem
.
commandName
:
qsTr
(
"
Survey
"
)
)
color
:
_outerTextColor
}
...
...
src/QmlControls/ParameterEditor.qml
View file @
b8d13084
...
...
@@ -330,7 +330,7 @@ QGCView {
acceptedButtons
:
Qt
.
LeftButton
onClicked
:
{
_editorDialogFact
=
factRow
.
modelFact
showDialog
(
editorDialogComponent
,
"
Parameter Editor
"
,
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Cancel
|
StandardButton
.
Save
)
showDialog
(
editorDialogComponent
,
qsTr
(
"
Parameter Editor
"
)
,
qgcView
.
showDialogDefaultWidth
,
StandardButton
.
Cancel
|
StandardButton
.
Save
)
}
}
}
...
...
@@ -365,7 +365,7 @@ QGCView {
QGCLabel
{
id
:
searchForLabel
text
:
"
Search for:
"
text
:
qsTr
(
"
Search for:
"
)
}
QGCTextField
{
...
...
@@ -380,7 +380,7 @@ QGCView {
anchors.top
:
searchFor
.
bottom
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
text
:
"
Hint: Leave 'Search For' blank and click Apply to list all parameters sorted by name.
"
text
:
qsTr
(
"
Hint: Leave 'Search For' blank and click Apply to list all parameters sorted by name.
"
)
}
}
}
...
...
src/QmlControls/ParameterEditorDialog.qml
View file @
b8d13084
...
...
@@ -85,7 +85,7 @@ QGCViewDialog {
QGCLabel
{
width
:
parent
.
width
wrapMode
:
Text
.
WordWrap
text
:
fact
.
shortDescription
?
fact
.
shortDescription
:
"
Description missing
"
text
:
fact
.
shortDescription
?
fact
.
shortDescription
:
qsTr
(
"
Description missing
"
)
}
QGCLabel
{
...
...
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