@ -153,7 +153,7 @@ Rectangle {
@@ -153,7 +153,7 @@ Rectangle {
text: QGroundControl . mapEngineManager . errorMessage
icon: StandardIcon . Critical
standardButtons: StandardButton . Ok
title: "Errror Message"
title: qsTr ( "Errror Message")
onYes: {
errorDialog . visible = false
}
@ -170,13 +170,13 @@ Rectangle {
@@ -170,13 +170,13 @@ Rectangle {
anchors.verticalCenter: parent . verticalCenter
QGCLabel {
id: labelTitle
text: "Offline Maps"
text: qsTr ( "Offline Maps")
font.pixelSize: ScreenTools . mediumFontPixelSize
anchors.verticalCenter: parent . verticalCenter
}
QGCCheckBox {
id: showTilePreview
text: "Show tile min/max zoom level preview"
text: qsTr ( "Show tile min/max zoom level preview")
checked: false
visible: _mapView . visible
anchors.verticalCenter: parent . verticalCenter
@ -202,7 +202,7 @@ Rectangle {
@@ -202,7 +202,7 @@ Rectangle {
anchors.horizontalCenter: parent . horizontalCenter
OfflineMapButton {
text: "Add new set"
text: qsTr ( "Add new set")
anchors.left: parent . left
anchors.right: parent . right
height: ( ScreenTools . defaultFontPixelHeight * 2 ) . toFixed ( 0 )
@ -231,7 +231,7 @@ Rectangle {
@@ -231,7 +231,7 @@ Rectangle {
QGCButton {
id: _optionsButton
text: "Options"
text: qsTr ( "Options")
visible: _tileSetList . visible
anchors.bottom: parent . bottom
anchors.right: parent . right
@ -359,14 +359,14 @@ Rectangle {
@@ -359,14 +359,14 @@ Rectangle {
Column {
anchors.verticalCenter: parent . verticalCenter
Label {
text: "Min"
text: qsTr ( "Min")
color: "black"
width: ScreenTools . defaultFontPixelWidth * 5
font.pixelSize: ScreenTools . smallFontPixelSize
horizontalAlignment: Text . AlignHCenter
}
Label {
text: "Zoom"
text: qsTr ( "Zoom")
color: "black"
width: ScreenTools . defaultFontPixelWidth * 5
font.pixelSize: ScreenTools . smallFontPixelSize
@ -423,14 +423,14 @@ Rectangle {
@@ -423,14 +423,14 @@ Rectangle {
Column {
anchors.verticalCenter: parent . verticalCenter
Label {
text: "Max"
text: qsTr ( "Max")
color: "black"
width: ScreenTools . defaultFontPixelWidth * 5
font.pixelSize: ScreenTools . smallFontPixelSize
horizontalAlignment: Text . AlignHCenter
}
Label {
text: "Zoom"
text: qsTr ( "Zoom")
color: "black"
width: ScreenTools . defaultFontPixelWidth * 5
font.pixelSize: ScreenTools . smallFontPixelSize
@ -485,7 +485,7 @@ Rectangle {
@@ -485,7 +485,7 @@ Rectangle {
spacing: ScreenTools . defaultFontPixelHeight * 0.5
anchors.verticalCenter: parent . verticalCenter
Label {
text: "Tile Count"
text: qsTr ( "Tile Count")
color: "black"
width: ScreenTools . defaultFontPixelWidth * 12
font.pixelSize: ScreenTools . smallFontPixelSize
@ -498,7 +498,7 @@ Rectangle {
@@ -498,7 +498,7 @@ Rectangle {
horizontalAlignment: Text . AlignHCenter
}
Label {
text: "Set Size (Est)"
text: qsTr ( "Set Size (Est)")
color: "black"
width: ScreenTools . defaultFontPixelWidth * 12
font.pixelSize: ScreenTools . smallFontPixelSize
@ -519,7 +519,7 @@ Rectangle {
@@ -519,7 +519,7 @@ Rectangle {
Row {
spacing: ScreenTools . defaultFontPixelWidth * 2
QGCLabel {
text: "Name:"
text: qsTr ( "Name:")
width: ScreenTools . defaultFontPixelWidth * 10
anchors.verticalCenter: parent . verticalCenter
horizontalAlignment: Text . AlignRight
@ -533,14 +533,14 @@ Rectangle {
@@ -533,14 +533,14 @@ Rectangle {
Row {
spacing: ScreenTools . defaultFontPixelWidth * 2
QGCLabel {
text: "Description:"
text: qsTr ( "Description:")
width: ScreenTools . defaultFontPixelWidth * 10
anchors.verticalCenter: parent . verticalCenter
horizontalAlignment: Text . AlignRight
}
QGCTextField {
id: setDescription
text: "Description"
text: qsTr ( "Description")
width: ScreenTools . defaultFontPixelWidth * 24
anchors.verticalCenter: parent . verticalCenter
}
@ -548,7 +548,7 @@ Rectangle {
@@ -548,7 +548,7 @@ Rectangle {
Row {
spacing: ScreenTools . defaultFontPixelWidth * 2
QGCLabel {
text: "Map Type:"
text: qsTr ( "Map Type:")
width: ScreenTools . defaultFontPixelWidth * 10
anchors.verticalCenter: parent . verticalCenter
horizontalAlignment: Text . AlignRight
@ -566,7 +566,7 @@ Rectangle {
@@ -566,7 +566,7 @@ Rectangle {
Component.onCompleted: {
var index = mapCombo . find ( mapType )
if ( index === - 1 ) {
console . warn ( "Active map name not in combo", mapType )
console . warn ( qsTr ( "Active map name not in combo") , mapType )
} else {
mapCombo . currentIndex = index
}
@ -582,7 +582,7 @@ Rectangle {
@@ -582,7 +582,7 @@ Rectangle {
anchors.verticalCenter: parent . verticalCenter
spacing: ScreenTools . defaultFontPixelHeight * 0.5
QGCButton {
text: "Download"
text: qsTr ( "Download")
enabled: setName . text . length > 0
width: ScreenTools . defaultFontPixelWidth * 10
onClicked: {
@ -600,7 +600,7 @@ Rectangle {
@@ -600,7 +600,7 @@ Rectangle {
}
}
QGCButton {
text: "Cancel"
text: qsTr ( "Cancel")
width: ScreenTools . defaultFontPixelWidth * 10
onClicked: {
showList ( )
@ -611,8 +611,8 @@ Rectangle {
@@ -611,8 +611,8 @@ Rectangle {
visible: false
icon: StandardIcon . Warning
standardButtons: StandardButton . Ok
title: "Tile Set Already Exists"
text: "Tile Set \"" + setName . text + "\" already exists.\nPlease select a different name."
title: qsTr ( "Tile Set Already Exists")
text: qsTr ( "Tile Set \"%1\" already exists.\nPlease select a different name." ) . arg ( setName . text )
onYes: {
duplicateName . visible = false
}
@ -676,7 +676,7 @@ Rectangle {
@@ -676,7 +676,7 @@ Rectangle {
rowSpacing: ScreenTools . defaultFontPixelWidth
columnSpacing: ScreenTools . defaultFontPixelHeight * 2
QGCLabel {
text: "Map Type:"
text: qsTr ( "Map Type:")
visible: ! isDefaultSet
}
QGCLabel {
@ -684,7 +684,7 @@ Rectangle {
@@ -684,7 +684,7 @@ Rectangle {
visible: ! isDefaultSet
}
QGCLabel {
text: "Min Zoom:"
text: qsTr ( "Min Zoom:")
visible: ! isDefaultSet
}
QGCLabel {
@ -692,7 +692,7 @@ Rectangle {
@@ -692,7 +692,7 @@ Rectangle {
visible: ! isDefaultSet
}
QGCLabel {
text: "Max Zoom:"
text: qsTr ( "Max Zoom:")
visible: ! isDefaultSet
}
QGCLabel {
@ -700,31 +700,31 @@ Rectangle {
@@ -700,31 +700,31 @@ Rectangle {
visible: ! isDefaultSet
}
QGCLabel {
text: isDefaultSet ? "Default Set Size:" : "Total Size:"
text: isDefaultSet ? qsTr ( "Default Set Size:") : qsTr ( "Total Size:")
}
QGCLabel {
text: _offlineMapRoot . _currentSelection ? _offlineMapRoot . _currentSelection . tilesSizeStr : ""
}
QGCLabel {
text: isDefaultSet ? "Default Set Tile Count:" : "Total Tile Count:"
text: isDefaultSet ? qsTr ( "Default Set Tile Count:") : qsTr ( "Total Tile Count:")
}
QGCLabel {
text: _offlineMapRoot . _currentSelection ? _offlineMapRoot . _currentSelection . numTilesStr : ""
}
QGCLabel {
text: isDefaultSet ? "Total Size (All Sets):" : "Downloaded Size:"
text: isDefaultSet ? qsTr ( "Total Size (All Sets):") : qsTr ( "Downloaded Size:")
}
QGCLabel {
text: _offlineMapRoot . _currentSelection ? _offlineMapRoot . _currentSelection . savedSizeStr : ""
}
QGCLabel {
text: isDefaultSet ? "Total Count (All Sets):" : "Downloaded Count:"
text: isDefaultSet ? qsTr ( "Total Count (All Sets):") : qsTr ( "Downloaded Count:")
}
QGCLabel {
text: _offlineMapRoot . _currentSelection ? _offlineMapRoot . _currentSelection . savedTilesStr : ""
}
QGCLabel {
text: "Error Count:"
text: qsTr ( "Error Count:")
visible: ! isDefaultSet && _offlineMapRoot . _currentSelection && ! _offlineMapRoot . _currentSelection . complete
}
QGCLabel {
@ -742,7 +742,7 @@ Rectangle {
@@ -742,7 +742,7 @@ Rectangle {
spacing: ScreenTools . defaultFontPixelWidth
QGCButton {
width: ScreenTools . defaultFontPixelWidth * 18
text: "Delete"
text: qsTr ( "Delete")
enabled: _offlineMapRoot . _currentSelection && ( ! _offlineMapRoot . _currentSelection . deleting )
onClicked: {
if ( _offlineMapRoot . _currentSelection )
@ -753,12 +753,12 @@ Rectangle {
@@ -753,12 +753,12 @@ Rectangle {
visible: false
icon: StandardIcon . Warning
standardButtons: StandardButton . Yes | StandardButton . No
title: "Delete Tile Set"
title: qsTr ( "Delete Tile Set")
text: {
if ( _offlineMapRoot . _currentSelection ) {
var blurb = "Delete " + _offlineMapRoot . _currentSelection . name + " and all its tiles.\nIs this really what you want?"
var blurb = qsTr ( "Delete %1 and all its tiles.\nIs this really what you want?" ) . arg ( _offlineMapRoot . _currentSelection . name )
if ( _offlineMapRoot . _currentSelection . defaultSet )
return blurb + "\nNote that deleteting the Default Set deletes all tiles from all sets."
return blurb + qsTr ( "\nNote that deleteting the Default Set deletes all tiles from all sets.")
else
return blurb
}
@ -776,7 +776,7 @@ Rectangle {
@@ -776,7 +776,7 @@ Rectangle {
}
}
QGCButton {
text: "Resume Download"
text: qsTr ( "Resume Download")
width: ScreenTools . defaultFontPixelWidth * 18
enabled: _offlineMapRoot . _currentSelection && ( ! _offlineMapRoot . _currentSelection . deleting && ! _offlineMapRoot . _currentSelection . downloading )
visible: ! isDefaultSet && _offlineMapRoot . _currentSelection && ( ! _offlineMapRoot . _currentSelection . complete && ! _offlineMapRoot . _currentSelection . downloading )
@ -786,7 +786,7 @@ Rectangle {
@@ -786,7 +786,7 @@ Rectangle {
}
}
QGCButton {
text: "Cancel Download"
text: qsTr ( "Cancel Download")
width: ScreenTools . defaultFontPixelWidth * 18
enabled: _offlineMapRoot . _currentSelection && ( ! _offlineMapRoot . _currentSelection . deleting && _offlineMapRoot . _currentSelection . downloading )
visible: ! isDefaultSet && _offlineMapRoot . _currentSelection && ( ! _offlineMapRoot . _currentSelection . complete && _offlineMapRoot . _currentSelection . downloading )
@ -796,7 +796,7 @@ Rectangle {
@@ -796,7 +796,7 @@ Rectangle {
}
}
QGCButton {
text: "Back"
text: qsTr ( "Back")
width: ScreenTools . defaultFontPixelWidth * 18
onClicked: showList ( )
}
@ -861,7 +861,7 @@ Rectangle {
@@ -861,7 +861,7 @@ Rectangle {
rowSpacing: ScreenTools . defaultFontPixelWidth * 1.5
columnSpacing: ScreenTools . defaultFontPixelHeight * 2
QGCLabel {
text: "Max Cache Disk Size (MB):"
text: qsTr ( "Max Cache Disk Size (MB):")
}
QGCTextField {
id: maxCacheSize
@ -870,7 +870,7 @@ Rectangle {
@@ -870,7 +870,7 @@ Rectangle {
validator: IntValidator { bottom: 1 ; top: 262144 ; }
}
QGCLabel {
text: "Max Cache Memory Size (MB):"
text: qsTr ( "Max Cache Memory Size (MB):")
}
QGCTextField {
id: maxCacheMemSize
@ -884,7 +884,7 @@ Rectangle {
@@ -884,7 +884,7 @@ Rectangle {
implicitHeight: ScreenTools . defaultFontPixelHeight * 1.5
QGCLabel {
anchors.centerIn: parent
text: "Memory cache changes require a restart to take effect."
text: qsTr ( "Memory cache changes require a restart to take effect.")
font.pixelSize: ScreenTools . defaultFontPixelSize * 0.85
}
}
@ -895,7 +895,7 @@ Rectangle {
@@ -895,7 +895,7 @@ Rectangle {
color: qgcPal . text
}
QGCLabel {
text: "MapBox Access Token"
text: qsTr ( "MapBox Access Token")
}
QGCTextField {
id: mapBoxToken
@ -909,7 +909,7 @@ Rectangle {
@@ -909,7 +909,7 @@ Rectangle {
implicitHeight: ScreenTools . defaultFontPixelHeight * 1.5
QGCLabel {
anchors.centerIn: parent
text: "With an access token, you can use MapBox Maps."
text: qsTr ( "With an access token, you can use MapBox Maps.")
font.pixelSize: ScreenTools . defaultFontPixelSize * 0.85
}
}
@ -919,7 +919,7 @@ Rectangle {
@@ -919,7 +919,7 @@ Rectangle {
anchors.horizontalCenter: parent . horizontalCenter
spacing: ScreenTools . defaultFontPixelWidth
QGCButton {
text: "Save"
text: qsTr ( "Save")
width: ScreenTools . defaultFontPixelWidth * 18
onClicked: {
QGroundControl . mapEngineManager . mapboxToken = mapBoxToken . text
@ -929,7 +929,7 @@ Rectangle {
@@ -929,7 +929,7 @@ Rectangle {
}
}
QGCButton {
text: "Cancel"
text: qsTr ( "Cancel")
width: ScreenTools . defaultFontPixelWidth * 18
onClicked: {
showList ( )